Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

void Main_window::ListingIsFinish (  ) [slot]

Listing is finish.

Function called when the listing is finish

Definition at line 810 of file Mwindow.cpp.

References actionInDialog, addingBuffer, cancel_copy_window(), CopyThread, fileTot, GetAction(), copyThread::intToQtringSize(), LastDestination, OrderUpdateStyle(), PauseButton(), spaceWindowDialog::replaceText(), setStatusOfCopy(), shouldBeClosed, sizeCur, sizeTot, updatePlayPauseSkipButton(), UpdateStyle(), and updateTheCopyStat().

Referenced by Main_window().

{
      DEBUGCONSOLE(70,"Main_window::ListingIsFinish","start");
      if(shouldBeClosed)
      {
            cancel_copy_window();
            return;
      }
      DEBUGCONSOLE(90,"Main_window::ListingIsFinish","size of the copy (or move): "+QString::number(sizeTot));
      progressBar_all->setMaximum(32767);
      CopyList->addTopLevelItems(addingBuffer);
      addingBuffer.clear();
      setStatusOfCopy();
      updateTheCopyStat();
      QString MountPoint=getMountPoint(LastDestination);
      //if mount point located check free space
      if(MountPoint!="")
      {
            qint64 freeSpace=freeSpaceDrive(MountPoint);
            DEBUGCONSOLE(70,"Main_window::ListingIsFinish","Free space on: "+MountPoint+" = "+QString::number(freeSpace));
            if(freeSpace!=-1 && freeSpace<(sizeTot-sizeCur))
            {
                  spaceWindowDialog *TheSpaceWindow = new spaceWindowDialog(this);
                  connect(TheSpaceWindow, SIGNAL(ActionClicked(int)), this, SLOT(GetAction(int)));
                  connect(this, SIGNAL(OrderUpdateStyle()), TheSpaceWindow, SLOT(UpdateStyle()));
                  TheSpaceWindow->replaceText(QStringList() << QString::number(fileTot) << copyThread::intToQtringSize(sizeTot-sizeCur) << LastDestination << copyThread::intToQtringSize(freeSpace) << copyThread::intToQtringSize((sizeTot-sizeCur)-freeSpace));
                  //default action if window is close for example
                  TheSpaceWindow->exec();
                  disconnect(TheSpaceWindow, SIGNAL(ActionClicked(int)));
                  disconnect(TheSpaceWindow, SLOT(UpdateStyle()));
                  delete TheSpaceWindow;
                  if(actionInDialog==SPACE_DIAL_CANCEL)
                  {
                        cancel_copy_window();
                        return;
                  }
            }
      }
      if(!CopyThread->isRunning() && !checkBoxDisableAutoStart->isChecked())
      {
            DEBUGCONSOLE(70,"Main_window::ListingIsFinish","start the copy thread");
            PauseButton();
      }
      updatePlayPauseSkipButton();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index