1 /** 2 * Copyright Mikael H�gdahl - triyana@users.sourceforge.net 3 * 4 * This source is distributed under the terms of the Q Public License version 1.0, 5 * created by Trolltech (www.trolltech.com). 6 */ 7 8 #ifndef DownloadDlg_h 9 #define DownloadDlg_h 10 11 #include <fl/Fl_Dialog.h> 12 #include <FL/Fl_Check_Browser.H> 13 #include <FL/Fl_Choice.H> 14 #include <FL/Fl_Box.H> 15 #include <FL/Fl_Input.H> 16 #include <FL/Fl_Round_Button.H> 17 #include <FL/Fl_Button.H> 18 #include <download/BaseDownload.h> 19 20 class Report; 21 class Fl_File_Chooser; 22 23 24 25 /** 26 * Export database to XTrader import format. 27 */ 28 class DownloadDlg : public Fl_Dialog { 29 public: 30 DownloadDlg (); 31 32 void cb1 (); 33 void cb2 (); 34 void cb3 (); 35 void cb4 (); 36 void cb5 (); 37 38 private: 39 Fl_Input* aFile; 40 Fl_Box* aImport; 41 Fl_Round_Button* aYes; 42 Fl_Round_Button* aNo; 43 Fl_Input* aStartDate; 44 Fl_Input* aStopDate; 45 Fl_Choice* aType; 46 Fl_Check_Browser* aSet; 47 Fl_Check_Browser* aSecurity; 48 Fl_Button* aLatest; 49 Fl_Button* aHistory; 50 Fl_Button* aBrowse; 51 Fl_Button* aHelp; 52 Fl_Button* aClose; 53 54 void download (int type, const char* start, const char* stop, int action); 55 56 friend void dlg_fc_callback(Fl_File_Chooser *fc, void *data); 57 }; 58 59 #endif 60 61