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

void Main_window::setStatusOfCopy (  ) [private]

Set the status of the copy.

Show what it do, and if is in copy or moving mode

See also:
movingMode and copyMode

Definition at line 735 of file Mwindow.cpp.

References AddingFolderThread, CopyThread, copyThread::getCurrentStat(), movingMode, showTheStatus, and sysTrayIcon.

Referenced by ListingIsFinish().

{
      DEBUGCONSOLE(90,"Main_window::setStatusOfCopy","start");
      QString text="";
      //for the window title
      if(showTheStatus)
      {
            if(CopyThread->getCurrentStat()!=copyThread::Stopped)
                  text+=" - "+tr("Coping...");
            else
                  if(CopyThread->getCurrentStat()==copyThread::Paused)
                        text+=" - "+tr("Copy paused");
            if(AddingFolderThread->isRunning())
                  text+=" - "+tr("Listing...");
      }
      if(!showTheStatus || text=="")
      {
            if(movingMode)
                  this->setWindowTitle("Ultracopier - "+tr("Move"));
            else
                  this->setWindowTitle("Ultracopier - "+tr("Copy"));
      }
      else
      {
            if(movingMode)
                  this->setWindowTitle(tr("Move")+text);
            else
                  this->setWindowTitle(tr("Copy")+text);
      }
      //for the systray icon
      if(sysTrayIcon!=NULL)
      {
            if(CopyThread->getCurrentStat()!=copyThread::Stopped)
                  sysTrayIcon->setToolTip(QString(tr("Coping...")));
            else if(CopyThread->getCurrentStat()==copyThread::Paused)
                  sysTrayIcon->setToolTip(QString(tr("[Paused]")));
            else if(AddingFolderThread->isRunning())
                  sysTrayIcon->setToolTip(QString(tr("Listing...")));
            else
                  sysTrayIcon->setToolTip(QString(tr("Done")));
      }
      else
      {
            DEBUGCONSOLE(10,"Main_window::changePriority","sysTrayIcon==NULL");
      }
}

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