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

void Main_window::abstractLayerGetSpeed (  ) [private, slot]

Get speed.

Abstract Layer for get the speed, it stored in MaxSpeedValueInt

See also:
MaxSpeedValueInt

Definition at line 2300 of file Mwindow.cpp.

References CopyThread, MaxSpeedValueInt, copyThread::setMaxSpeed(), and UpdateSliderSpeedText().

Referenced by Main_window().

{
      if(comboBox_TypeSpeedMax->currentText()==tr("Direct value"))
      {
            MaxSpeedValueInt=0;
            if(checkBox_limitSpeed->isChecked())
                  MaxSpeedValueInt=limitSpeed->value();
      }
      else
      {
            MaxSpeedValueInt=SliderSpeed->sliderPosition();
            if(MaxSpeedValueInt<0 || MaxSpeedValueInt>7)
                  MaxSpeedValueInt=0;
            switch(MaxSpeedValueInt)
            {
                  case 1:
                        MaxSpeedValueInt=1024;
                  break;
                  case 2:
                        MaxSpeedValueInt=4*1024;
                  break;
                  case 3:
                        MaxSpeedValueInt=8*1024;
                  break;
                  case 4:
                        MaxSpeedValueInt=16*1024;
                  break;
                  case 5:
                        MaxSpeedValueInt=32*1024;
                  break;
                  case 6:
                        MaxSpeedValueInt=64*1024;
                  break;
                  case 7:
                        MaxSpeedValueInt=128*1024;
                  break;
            }
            UpdateSliderSpeedText();
      }
      DEBUGCONSOLE(70,"Main_window::abstractLayerGetSpeed","MaxSpeedValueInt: "+QString::number(MaxSpeedValueInt));
      CopyThread->setMaxSpeed(MaxSpeedValueInt);
}

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