RangeWindow.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef __RANGEWINDOW
  2. #define __RANGEWINDOW
  3. #include <FL/Fl.H>
  4. #include <FL/Fl_Window.H>
  5. #include <FL/Fl_Menu_Bar.H>
  6. #include <FL/Fl_Menu_Item.H>
  7. #include <FL/Fl_Browser.H>
  8. #include <FL/Fl_Widget.H>
  9. #include <FL/Fl_File_Chooser.H>
  10. #include <stdlib.h>
  11. #include <stdio.h>
  12. #include "GBCSolution.h"
  13. #include "hpdf.h"
  14. class RangeWindow : public Fl_Window {
  15. public:
  16. RangeWindow(int w, int h, GBCSolution* inSLN);
  17. ~RangeWindow();
  18. int* colwidths;
  19. int min,max,step,maxvalid;
  20. Fl_Menu_Bar* menu;
  21. Fl_Browser* tbl;
  22. GBCSolution* Sln;
  23. private:
  24. static void cb_Nothing(Fl_Widget* , void* );
  25. static void cb_Min0(Fl_Widget* , void*);
  26. static void cb_Min50(Fl_Widget* , void*);
  27. static void cb_Min100(Fl_Widget* , void*);
  28. static void cb_Min250(Fl_Widget* , void*);
  29. static void cb_Min500(Fl_Widget* , void*);
  30. static void cb_Min750(Fl_Widget* , void*);
  31. static void cb_Min1000(Fl_Widget* , void*);
  32. static void cb_Min2000(Fl_Widget* , void*);
  33. static void cb_Max100(Fl_Widget* , void*);
  34. static void cb_Max250(Fl_Widget* , void*);
  35. static void cb_Max500(Fl_Widget* , void*);
  36. static void cb_Max750(Fl_Widget* , void*);
  37. static void cb_Max1000(Fl_Widget* , void*);
  38. static void cb_Max1760(Fl_Widget* , void*);
  39. static void cb_Max2000(Fl_Widget* , void*);
  40. static void cb_MaxMax(Fl_Widget* , void*);
  41. static void cb_Step1(Fl_Widget* , void*);
  42. static void cb_Step5(Fl_Widget* , void*);
  43. static void cb_Step10(Fl_Widget* , void*);
  44. static void cb_Step25(Fl_Widget* , void*);
  45. static void cb_Step50(Fl_Widget* , void*);
  46. static void cb_Step100(Fl_Widget* , void*);
  47. static void cb_Step250(Fl_Widget* , void*);
  48. static void cb_ExportCSV(Fl_Widget*, void*);
  49. static void cb_ExportExcel(Fl_Widget*, void*);
  50. static void cb_ExportHTML(Fl_Widget*, void*);
  51. static void cb_ExportSQL(Fl_Widget*, void*);
  52. static void cb_ExportXML(Fl_Widget*, void*);
  53. static void cb_ExportOO(Fl_Widget*, void*);
  54. static void cb_ExportPDF(Fl_Widget*, void*);
  55. static void cb_Close(Fl_Widget*, void*);
  56. void GenTable(void);
  57. };
  58. #endif