Progress.cpp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. //---------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include <Common.h>
  5. #include <CoreMain.h>
  6. #include <TextsWin.h>
  7. #include <HelpWin.h>
  8. #include <WinInterface.h>
  9. #include <VCLCommon.h>
  10. #include <CustomWinConfiguration.h>
  11. #include <GUITools.h>
  12. #include <BaseUtils.hpp>
  13. #include <DateUtils.hpp>
  14. #include <Consts.hpp>
  15. #include "Progress.h"
  16. //---------------------------------------------------------------------
  17. #pragma link "HistoryComboBox"
  18. #pragma link "PathLabel"
  19. #ifndef NO_RESOURCES
  20. #pragma resource "*.dfm"
  21. #endif
  22. //---------------------------------------------------------------------
  23. UnicodeString __fastcall TProgressForm::OperationName(TFileOperation Operation, TOperationSide Side)
  24. {
  25. static const int Captions[] = { 0, 0, PROGRESS_DELETE,
  26. PROGRESS_SETPROPERTIES, 0, PROGRESS_CUSTOM_COMAND, PROGRESS_CALCULATE_SIZE,
  27. PROGRESS_REMOTE_MOVE, PROGRESS_REMOTE_COPY, PROGRESS_GETPROPERTIES,
  28. PROGRESS_CALCULATE_CHECKSUM };
  29. assert((unsigned int)Operation >= 1 && ((unsigned int)Operation - 1) < LENOF(Captions));
  30. int Id;
  31. if ((Operation == foCopy) || (Operation == foMove))
  32. {
  33. Id = (Side == osLocal) ? PROGRESS_UPLOAD : PROGRESS_DOWNLOAD;
  34. }
  35. else
  36. {
  37. Id = Captions[(int)Operation - 1];
  38. assert(Id != 0);
  39. }
  40. return LoadStr(Id);
  41. }
  42. //---------------------------------------------------------------------
  43. __fastcall TProgressForm::TProgressForm(TComponent * AOwner, bool AllowMoveToQueue)
  44. : FData(), TForm(AOwner)
  45. {
  46. FLastOperation = foNone;
  47. FLastTotalSizeSet = false;
  48. FDataGot = false;
  49. FDataReceived = false;
  50. FCancel = csContinue;
  51. FMoveToQueue = false;
  52. FMinimizedByMe = false;
  53. FUpdateCounter = 0;
  54. FDeleteToRecycleBin = false;
  55. FReadOnly = false;
  56. FShowAsModalStorage = NULL;
  57. FStarted = Now();
  58. FModalBeginHooked = false;
  59. FPrevApplicationModalBegin = NULL;
  60. FModalLevel = -1;
  61. FAllowMoveToQueue = AllowMoveToQueue;
  62. UseSystemSettings(this);
  63. ResetOnceDoneOperation();
  64. if (CustomWinConfiguration->OperationProgressOnTop)
  65. {
  66. FOperationProgress = TopProgress;
  67. FFileProgress = BottomProgress;
  68. }
  69. else
  70. {
  71. FOperationProgress = BottomProgress;
  72. FFileProgress = TopProgress;
  73. }
  74. SetGlobalMinimizeHandler(this, GlobalMinimize);
  75. if (FAllowMoveToQueue)
  76. {
  77. MenuButton(MinimizeButton);
  78. }
  79. }
  80. //---------------------------------------------------------------------------
  81. __fastcall TProgressForm::~TProgressForm()
  82. {
  83. // to prevent raising assertion (e.g. IsProgress == True)
  84. FData.Clear();
  85. ClearGlobalMinimizeHandler(GlobalMinimize);
  86. if (IsApplicationMinimized() && FMinimizedByMe)
  87. {
  88. ShowNotification(
  89. NULL, MainInstructions(LoadStr(BALLOON_OPERATION_COMPLETE)),
  90. qtInformation);
  91. }
  92. if (FModalBeginHooked)
  93. {
  94. assert(Application->OnModalBegin == ApplicationModalBegin);
  95. Application->OnModalBegin = FPrevApplicationModalBegin;
  96. FModalBeginHooked = false;
  97. }
  98. ReleaseAsModal(this, FShowAsModalStorage);
  99. }
  100. //---------------------------------------------------------------------
  101. void __fastcall TProgressForm::UpdateControls()
  102. {
  103. assert((FData.Operation >= foCopy) && (FData.Operation <= foCalculateChecksum) &&
  104. FData.Operation != foRename );
  105. CancelButton->Enabled = !FReadOnly && (FCancel == csContinue);
  106. OnceDoneOperationCombo2->Enabled =
  107. !FReadOnly && (FData.Operation != foCalculateSize) &&
  108. (FData.Operation != foGetProperties) &&
  109. (FData.Operation != foCalculateChecksum);
  110. OnceDoneOperationLabel->Enabled = OnceDoneOperationCombo2->Enabled;
  111. bool TransferOperation =
  112. ((FData.Operation == foCopy) || (FData.Operation == foMove));
  113. if (FData.Operation != FLastOperation)
  114. {
  115. bool AVisible;
  116. // Wine does have static text "Searching" instead of actual animations
  117. if (!IsWine())
  118. {
  119. try
  120. {
  121. THandle ShellModule;
  122. AVisible = true;
  123. TProgressBarStyle Style = pbstNormal;
  124. UnicodeString CancelCaption = Vcl_Consts_SMsgDlgCancel;
  125. switch (FData.Operation) {
  126. case foCopy:
  127. case foMove:
  128. case foRemoteMove:
  129. case foRemoteCopy:
  130. if (FData.Count == 1) Animate->CommonAVI = aviCopyFile;
  131. else Animate->CommonAVI = aviCopyFiles;
  132. break;
  133. case foDelete:
  134. Animate->CommonAVI = (DeleteToRecycleBin ? aviRecycleFile : aviDeleteFile);
  135. break;
  136. case foSetProperties:
  137. case foGetProperties:
  138. ShellModule = SafeLoadLibrary(L"shell32.dll");
  139. if (!ShellModule)
  140. {
  141. Abort();
  142. }
  143. // workaround, VCL is not able to set both ResId and ResHandle otherwise
  144. Animate->Active = false;
  145. Animate->ResHandle = 0;
  146. Animate->ComponentState << csLoading;
  147. Animate->ResId = 165;
  148. Animate->ResHandle = ShellModule;
  149. Animate->ComponentState >> csLoading;
  150. Animate->Active = true;
  151. break;
  152. case foCalculateSize:
  153. Animate->CommonAVI = aviNone;
  154. AVisible = false;
  155. Style = pbstMarquee;
  156. CancelCaption = LoadStr(SKIP_BUTTON);
  157. break;
  158. default:
  159. assert(FData.Operation == foCustomCommand ||
  160. FData.Operation == foCalculateChecksum);
  161. Animate->CommonAVI = aviNone;
  162. AVisible = false;
  163. }
  164. TopProgress->Style = Style;
  165. CancelButton->Caption = CancelCaption;
  166. }
  167. catch (...)
  168. {
  169. AVisible = false;
  170. };
  171. }
  172. else
  173. {
  174. Animate->CommonAVI = aviNone;
  175. AVisible = false;
  176. }
  177. int Delta = 0;
  178. if (AVisible && !Animate->Visible) Delta = Animate->Height;
  179. else
  180. if (!AVisible && Animate->Visible) Delta = -Animate->Height;
  181. MainPanel->Top = MainPanel->Top + Delta;
  182. TransferPanel->Top = TransferPanel->Top + Delta;
  183. Animate->Visible = AVisible;
  184. Animate->Active = AVisible;
  185. if (TransferOperation && !TransferPanel->Visible) Delta += TransferPanel->Height;
  186. else
  187. if (!TransferOperation && TransferPanel->Visible) Delta += -TransferPanel->Height;
  188. TransferPanel->Visible = TransferOperation;
  189. // when animation is hidden for transfers (on wine) speed panel does not fit,
  190. // so we hide it (temporary solution before window redesign)
  191. SpeedPanel->Visible = TransferOperation && AVisible;
  192. ClientHeight = ClientHeight + Delta;
  193. TargetLabel->Visible = TransferOperation;
  194. TargetPathLabel->Visible = TransferOperation;
  195. TargetPathLabel->UnixPath = (FData.Side == osLocal);
  196. FileLabel->UnixPath = (FData.Side == osRemote);
  197. FLastOperation = FData.Operation;
  198. FLastTotalSizeSet = !FData.TotalSizeSet;
  199. };
  200. if (FLastTotalSizeSet != FData.TotalSizeSet)
  201. {
  202. StartTimeLabelLabel->Visible = !FData.TotalSizeSet;
  203. StartTimeLabel->Visible = !FData.TotalSizeSet;
  204. TimeLeftLabelLabel->Visible = FData.TotalSizeSet;
  205. TimeLeftLabel->Visible = FData.TotalSizeSet;
  206. FLastTotalSizeSet = FData.TotalSizeSet;
  207. }
  208. if ((FData.Side == osRemote) || !FData.Temp)
  209. {
  210. FileLabel->Caption = FData.FileName;
  211. }
  212. else
  213. {
  214. FileLabel->Caption = ExtractFileName(FData.FileName);
  215. }
  216. int OverallProgress = FData.OverallProgress();
  217. FOperationProgress->Position = OverallProgress;
  218. FOperationProgress->Hint = FORMAT(L"%d%%", (OverallProgress));
  219. Caption = FormatFormCaption(this, FORMAT(L"%d%% %s", (OverallProgress, OperationName(FData.Operation, FData.Side))));
  220. if (TransferOperation)
  221. {
  222. if ((FData.Side == osLocal) || !FData.Temp)
  223. {
  224. TargetPathLabel->Caption = FData.Directory;
  225. }
  226. else
  227. {
  228. TargetPathLabel->Caption = LoadStr(PROGRESS_TEMP_DIR);
  229. }
  230. StartTimeLabel->Caption = FData.StartTime.TimeString();
  231. if (FData.TotalSizeSet)
  232. {
  233. TimeLeftLabel->Caption = FormatDateTimeSpan(Configuration->TimeFormat,
  234. FData.TotalTimeLeft());
  235. }
  236. TimeElapsedLabel->Caption = FormatDateTimeSpan(Configuration->TimeFormat, FData.TimeElapsed());
  237. BytesTransferedLabel->Caption = FormatBytes(FData.TotalTransfered);
  238. CPSLabel->Caption = FORMAT(L"%s/s", (FormatBytes(FData.CPS())));
  239. FFileProgress->Position = FData.TransferProgress();
  240. FFileProgress->Hint = FORMAT(L"%d%%", (FFileProgress->Position));
  241. }
  242. }
  243. //---------------------------------------------------------------------
  244. static TDateTime DelayStartInterval(static_cast<double>(OneSecond/5));
  245. static TDateTime UpdateInterval(static_cast<double>(OneSecond));
  246. //---------------------------------------------------------------------
  247. bool __fastcall TProgressForm::ReceiveData(bool Force, int ModalLevelOffset)
  248. {
  249. bool Result = false;
  250. if (FDataGot && !FDataReceived)
  251. {
  252. // CPS limit is set set only once from TFileOperationProgressType::Start.
  253. // Needs to be set even when data are not accepted yet, otherwise we would
  254. // write default value to FData in TProgressForm::SetProgressData
  255. FCPSLimit = FData.CPSLimit;
  256. // Never popup over dialog that appeared later than we started
  257. // (this can happen from UpdateTimerTimer when application is
  258. // restored while overwrite confirmation dialog [or any other]
  259. // is already shown).
  260. // TODO We should probably take as-modal windows into account too
  261. // (for extreme cases like restoring while reconnecting [as-modal TAuthenticateForm]).
  262. if ((FModalLevel < 0) || (Application->ModalLevel + ModalLevelOffset <= FModalLevel))
  263. {
  264. // delay showing the progress until the application is restored,
  265. // otherwise the form popups up unminimized.
  266. if (!IsApplicationMinimized() &&
  267. (Force || ((Now() - FStarted) > DelayStartInterval)))
  268. {
  269. FDataReceived = true;
  270. SpeedCombo->Text = SetSpeedLimit(FCPSLimit);
  271. ShowAsModal(this, FShowAsModalStorage);
  272. // particularly needed for the case, when we are showing the form delayed
  273. // because application was minimized when operation started
  274. Result = true;
  275. }
  276. else if (!FModalBeginHooked && ALWAYS_TRUE(FModalLevel < 0))
  277. {
  278. // record state as of time, the window should be shown,
  279. // had not we implemented delayed show
  280. FPrevApplicationModalBegin = Application->OnModalBegin;
  281. Application->OnModalBegin = ApplicationModalBegin;
  282. FModalBeginHooked = true;
  283. FModalLevel = Application->ModalLevel;
  284. }
  285. }
  286. }
  287. return Result;
  288. }
  289. //---------------------------------------------------------------------------
  290. void __fastcall TProgressForm::ApplicationModalBegin(TObject * Sender)
  291. {
  292. // Popup before any modal dialog shows (typically overwrite confirmation,
  293. // as that popups nerly instantly, i.e. less than DelayStartInterval).
  294. // The Application->ModalLevel is already incremented, but we should treat is as
  295. // if it were not as the dialog is not created yet (so we can popup if we are not yet).
  296. ReceiveData(true, -1);
  297. if (FPrevApplicationModalBegin != NULL)
  298. {
  299. FPrevApplicationModalBegin(Sender);
  300. }
  301. }
  302. //---------------------------------------------------------------------
  303. void __fastcall TProgressForm::SetProgressData(TFileOperationProgressType & AData)
  304. {
  305. TDateTime N = Now();
  306. bool InstantUpdate = false;
  307. // workaround: to force displaing first file data immediately,
  308. // otherwise form dialog uses to be blank for first second
  309. // (until UpdateTimerTimer)
  310. if (FileLabel->Caption.IsEmpty() && !AData.FileName.IsEmpty())
  311. {
  312. InstantUpdate = true;
  313. }
  314. FData.AssignButKeepSuspendState(AData);
  315. FDataGot = true;
  316. if (!UpdateTimer->Enabled)
  317. {
  318. UpdateTimer->Interval = static_cast<unsigned int>(MilliSecondsBetween(TDateTime(), DelayStartInterval));
  319. UpdateTimer->Enabled = true;
  320. FSinceLastUpdate = TDateTime();
  321. }
  322. if (ReceiveData(false, 0))
  323. {
  324. InstantUpdate = true;
  325. }
  326. if (InstantUpdate)
  327. {
  328. UpdateControls();
  329. Application->ProcessMessages();
  330. }
  331. if (ProcessGUI(FUpdateCounter % 5 == 0))
  332. {
  333. FUpdateCounter = 0;
  334. }
  335. FUpdateCounter++;
  336. AData.CPSLimit = FCPSLimit;
  337. }
  338. //---------------------------------------------------------------------------
  339. void __fastcall TProgressForm::UpdateTimerTimer(TObject * /*Sender*/)
  340. {
  341. // popup the progress window at least here, if SetProgressData is
  342. // not being called (typically this happens when using custom command
  343. // that launches long-lasting external process, such as visual diff)
  344. ReceiveData(false, 0);
  345. if (FDataReceived)
  346. {
  347. FSinceLastUpdate = IncMilliSecond(FSinceLastUpdate, UpdateTimer->Interval);
  348. if (FSinceLastUpdate >= UpdateInterval)
  349. {
  350. UpdateControls();
  351. FSinceLastUpdate = TDateTime();
  352. }
  353. }
  354. }
  355. //---------------------------------------------------------------------------
  356. void __fastcall TProgressForm::FormShow(TObject * /*Sender*/)
  357. {
  358. SpeedCombo->Items = CustomWinConfiguration->History[L"SpeedLimit"];
  359. ReceiveData(false, 0);
  360. if (FDataReceived)
  361. {
  362. UpdateControls();
  363. }
  364. }
  365. //---------------------------------------------------------------------------
  366. void __fastcall TProgressForm::FormHide(TObject * /*Sender*/)
  367. {
  368. // This is to counter the "infinite" timestamp in
  369. // TTerminalManager::ApplicationShowHint.
  370. // Because if form disappears on its own, hint is not hidden.
  371. Application->CancelHint();
  372. CustomWinConfiguration->History[L"SpeedLimit"] = SpeedCombo->Items;
  373. UpdateTimer->Enabled = false;
  374. }
  375. //---------------------------------------------------------------------------
  376. void __fastcall TProgressForm::CancelButtonClick(TObject * /*Sender*/)
  377. {
  378. CancelOperation();
  379. }
  380. //---------------------------------------------------------------------------
  381. void __fastcall TProgressForm::MinimizeButtonClick(TObject * Sender)
  382. {
  383. if (FAllowMoveToQueue)
  384. {
  385. MenuPopup(MinimizeMenu, MinimizeButton);
  386. }
  387. else
  388. {
  389. Minimize(Sender);
  390. }
  391. }
  392. //---------------------------------------------------------------------------
  393. void __fastcall TProgressForm::Minimize(TObject * Sender)
  394. {
  395. CallGlobalMinimizeHandler(Sender);
  396. }
  397. //---------------------------------------------------------------------------
  398. void __fastcall TProgressForm::MinimizeMenuItemClick(TObject * Sender)
  399. {
  400. Minimize(Sender);
  401. }
  402. //---------------------------------------------------------------------------
  403. void __fastcall TProgressForm::CancelOperation()
  404. {
  405. assert(FDataReceived);
  406. if (!FData.Suspended)
  407. {
  408. // mostly useless, as suspend is called over copy of actual progress data
  409. FData.Suspend();
  410. UpdateControls();
  411. try
  412. {
  413. TCancelStatus ACancel;
  414. if (FData.TransferingFile &&
  415. (FData.TimeExpected() > GUIConfiguration->IgnoreCancelBeforeFinish))
  416. {
  417. int Result = MessageDialog(LoadStr(CANCEL_OPERATION_FATAL2), qtWarning,
  418. qaYes | qaNo | qaCancel, HELP_PROGRESS_CANCEL);
  419. switch (Result)
  420. {
  421. case qaYes:
  422. ACancel = csCancelTransfer; break;
  423. case qaNo:
  424. ACancel = csCancel; break;
  425. default:
  426. ACancel = csContinue; break;
  427. }
  428. }
  429. else
  430. {
  431. ACancel = csCancel;
  432. }
  433. if (FCancel < ACancel)
  434. {
  435. FCancel = ACancel;
  436. UpdateControls();
  437. }
  438. }
  439. __finally
  440. {
  441. FData.Resume();
  442. }
  443. }
  444. }
  445. //---------------------------------------------------------------------------
  446. void __fastcall TProgressForm::GlobalMinimize(TObject * /*Sender*/)
  447. {
  448. ApplicationMinimize();
  449. FMinimizedByMe = true;
  450. }
  451. //---------------------------------------------------------------------------
  452. void __fastcall TProgressForm::SetOnceDoneOperation(TOnceDoneOperation value)
  453. {
  454. int Index = 0;
  455. switch (value)
  456. {
  457. case odoIdle:
  458. Index = 0;
  459. break;
  460. case odoDisconnect:
  461. Index = 1;
  462. break;
  463. case odoSuspend:
  464. Index = 2;
  465. break;
  466. case odoShutDown:
  467. Index = 3;
  468. break;
  469. default:
  470. FAIL;
  471. }
  472. OnceDoneOperationCombo2->ItemIndex = Index;
  473. OnceDoneOperationCombo2Select(NULL);
  474. }
  475. //---------------------------------------------------------------------------
  476. bool __fastcall TProgressForm::GetAllowMinimize()
  477. {
  478. return MinimizeButton->Visible;
  479. }
  480. //---------------------------------------------------------------------------
  481. void __fastcall TProgressForm::SetAllowMinimize(bool value)
  482. {
  483. MinimizeButton->Visible = value;
  484. }
  485. //---------------------------------------------------------------------------
  486. void __fastcall TProgressForm::SetReadOnly(bool value)
  487. {
  488. if (FReadOnly != value)
  489. {
  490. FReadOnly = value;
  491. if (!value)
  492. {
  493. ResetOnceDoneOperation();
  494. }
  495. UpdateControls();
  496. }
  497. }
  498. //---------------------------------------------------------------------------
  499. void __fastcall TProgressForm::ApplyCPSLimit()
  500. {
  501. try
  502. {
  503. FCPSLimit = GetSpeedLimit(SpeedCombo->Text);
  504. }
  505. catch(...)
  506. {
  507. SpeedCombo->SetFocus();
  508. throw;
  509. }
  510. SpeedCombo->Text = SetSpeedLimit(FCPSLimit);
  511. // visualize application
  512. SpeedCombo->SelectAll();
  513. ResetFocus();
  514. }
  515. //---------------------------------------------------------------------------
  516. void __fastcall TProgressForm::ResetFocus()
  517. {
  518. if (CancelButton->Enabled)
  519. {
  520. CancelButton->SetFocus();
  521. }
  522. }
  523. //---------------------------------------------------------------------------
  524. void __fastcall TProgressForm::SpeedComboExit(TObject * /*Sender*/)
  525. {
  526. SpeedCombo->Text = SetSpeedLimit(FCPSLimit);
  527. }
  528. //---------------------------------------------------------------------------
  529. void __fastcall TProgressForm::SpeedComboSelect(TObject * /*Sender*/)
  530. {
  531. ApplyCPSLimit();
  532. }
  533. //---------------------------------------------------------------------------
  534. void __fastcall TProgressForm::SpeedComboKeyPress(TObject * /*Sender*/,
  535. wchar_t & Key)
  536. {
  537. // using OnKeyPress instead of OnKeyDown to catch "enter" prevents
  538. // system beep for unhandled key
  539. if (Key == L'\r')
  540. {
  541. Key = L'\0';
  542. ApplyCPSLimit();
  543. }
  544. }
  545. //---------------------------------------------------------------------------
  546. void __fastcall TProgressForm::ResetOnceDoneOperation()
  547. {
  548. OnceDoneOperationCombo2->ItemIndex = 0;
  549. OnceDoneOperationCombo2Select(NULL);
  550. }
  551. //---------------------------------------------------------------------------
  552. void __fastcall TProgressForm::OnceDoneOperationCombo2Select(TObject * /*Sender*/)
  553. {
  554. switch (OnceDoneOperationCombo2->ItemIndex)
  555. {
  556. case 0:
  557. FOnceDoneOperation = odoIdle;
  558. break;
  559. case 1:
  560. FOnceDoneOperation = odoDisconnect;
  561. break;
  562. case 2:
  563. FOnceDoneOperation = odoSuspend;
  564. break;
  565. case 3:
  566. FOnceDoneOperation = odoShutDown;
  567. break;
  568. default:
  569. FAIL;
  570. }
  571. }
  572. //---------------------------------------------------------------------------
  573. void __fastcall TProgressForm::OnceDoneOperationCombo2CloseUp(TObject * /*Sender*/)
  574. {
  575. ResetFocus();
  576. }
  577. //---------------------------------------------------------------------------
  578. void __fastcall TProgressForm::Dispatch(void * AMessage)
  579. {
  580. TMessage & Message = *reinterpret_cast<TMessage *>(AMessage);
  581. if (Message.Msg == WM_CLOSE)
  582. {
  583. CancelOperation();
  584. }
  585. else
  586. {
  587. TForm::Dispatch(AMessage);
  588. }
  589. }
  590. //---------------------------------------------------------------------------
  591. void __fastcall TProgressForm::MoveToQueueMenuItemClick(TObject * /*Sender*/)
  592. {
  593. FMoveToQueue = true;
  594. }
  595. //---------------------------------------------------------------------------