filter_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:5k
源码类别:

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: filter_dlg_.cpp,v $
  4.  * PRODUCTION Revision 1000.1  2004/06/01 21:00:49  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.8
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: filter_dlg_.cpp,v 1000.1 2004/06/01 21:00:49 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CFilterDlg::cb_m_FilterList_i(Fl_Browser*, void*) {
  13.   x_UpdateSelected();
  14. }
  15. void CFilterDlg::cb_m_FilterList(Fl_Browser* o, void* v) {
  16.   ((CFilterDlg*)(o->parent()->parent()->user_data()))->cb_m_FilterList_i(o,v);
  17. }
  18. inline void CFilterDlg::cb_Enabled_i(Fl_Light_Button*, void*) {
  19.   x_OnEnableCurrent();
  20. }
  21. void CFilterDlg::cb_Enabled(Fl_Light_Button* o, void* v) {
  22.   ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Enabled_i(o,v);
  23. }
  24. inline void CFilterDlg::cb_Add_i(Fl_Button*, void*) {
  25.   x_OnAdd();
  26. }
  27. void CFilterDlg::cb_Add(Fl_Button* o, void* v) {
  28.   ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Add_i(o,v);
  29. }
  30. inline void CFilterDlg::cb_Delete_i(Fl_Button*, void*) {
  31.   x_OnDeleteCurrent();
  32. }
  33. void CFilterDlg::cb_Delete(Fl_Button* o, void* v) {
  34.   ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Delete_i(o,v);
  35. }
  36. inline void CFilterDlg::cb_m_Column_i(Fl_Choice*, void*) {
  37.   x_OnChangeColumn();
  38. }
  39. void CFilterDlg::cb_m_Column(Fl_Choice* o, void* v) {
  40.   ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_Column_i(o,v);
  41. }
  42. inline void CFilterDlg::cb_m_Mode_i(Fl_Choice*, void*) {
  43.   x_OnChangeMode();
  44. }
  45. void CFilterDlg::cb_m_Mode(Fl_Choice* o, void* v) {
  46.   ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_Mode_i(o,v);
  47. }
  48. inline void CFilterDlg::cb_m_FilterName_i(Fl_Input*, void*) {
  49.   x_OnChangeName();
  50. }
  51. void CFilterDlg::cb_m_FilterName(Fl_Input* o, void* v) {
  52.   ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_FilterName_i(o,v);
  53. }
  54. inline void CFilterDlg::cb_m_FilterData_i(Fl_Input*, void*) {
  55.   x_OnChangeData();
  56. }
  57. void CFilterDlg::cb_m_FilterData(Fl_Input* o, void* v) {
  58.   ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_FilterData_i(o,v);
  59. }
  60. inline void CFilterDlg::cb_OK_i(Fl_Return_Button*, void*) {
  61.   x_OnOK();
  62. }
  63. void CFilterDlg::cb_OK(Fl_Return_Button* o, void* v) {
  64.   ((CFilterDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  65. }
  66. Fl_Double_Window* CFilterDlg::x_CreateWindow() {
  67.   Fl_Double_Window* w;
  68.   { Fl_Double_Window* o = new Fl_Double_Window(405, 440, "Filter Manager");
  69.     w = o;
  70.     o->user_data((void*)(this));
  71.     { Fl_Group* o = new Fl_Group(5, 5, 395, 215, "Active Filters");
  72.       o->box(FL_ENGRAVED_FRAME);
  73.       o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
  74.       { Fl_Browser* o = m_FilterList = new Fl_Browser(15, 35, 375, 145);
  75.         o->type(2);
  76.         o->callback((Fl_Callback*)cb_m_FilterList);
  77.         o->when(3);
  78.         Fl_Group::current()->resizable(o);
  79.       }
  80.       { Fl_Group* o = new Fl_Group(15, 185, 375, 25);
  81.         { Fl_Light_Button* o = new Fl_Light_Button(155, 185, 75, 25, "Enabled");
  82.           o->callback((Fl_Callback*)cb_Enabled);
  83.         }
  84.         { Fl_Button* o = new Fl_Button(235, 185, 75, 25, "Add");
  85.           o->callback((Fl_Callback*)cb_Add);
  86.         }
  87.         { Fl_Button* o = new Fl_Button(315, 185, 75, 25, "Delete");
  88.           o->callback((Fl_Callback*)cb_Delete);
  89.         }
  90.         { Fl_Group* o = new Fl_Group(15, 185, 140, 25);
  91.           o->end();
  92.           Fl_Group::current()->resizable(o);
  93.         }
  94.         o->end();
  95.       }
  96.       o->end();
  97.     }
  98.     { Fl_Group* o = new Fl_Group(5, 225, 395, 180, "Current Filter");
  99.       o->box(FL_ENGRAVED_FRAME);
  100.       o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
  101.       { Fl_Group* o = new Fl_Group(15, 255, 375, 145);
  102.         { Fl_Choice* o = m_Column = new Fl_Choice(15, 295, 185, 25);
  103.           o->down_box(FL_BORDER_BOX);
  104.           o->callback((Fl_Callback*)cb_m_Column);
  105.           o->when(FL_WHEN_CHANGED);
  106.         }
  107.         { Fl_Choice* o = m_Mode = new Fl_Choice(205, 295, 185, 25);
  108.           o->down_box(FL_BORDER_BOX);
  109.           o->callback((Fl_Callback*)cb_m_Mode);
  110.           o->when(FL_WHEN_CHANGED);
  111.         }
  112.         { Fl_Input* o = m_FilterName = new Fl_Input(100, 255, 290, 30, "Filter Name:");
  113.           o->callback((Fl_Callback*)cb_m_FilterName);
  114.           o->when(FL_WHEN_CHANGED);
  115.         }
  116.         { Fl_Input* o = m_FilterData = new Fl_Input(15, 335, 375, 60);
  117.           o->type(4);
  118.           o->callback((Fl_Callback*)cb_m_FilterData);
  119.           o->when(FL_WHEN_CHANGED);
  120.         }
  121.         o->end();
  122.       }
  123.       o->end();
  124.     }
  125.     { Fl_Group* o = new Fl_Group(15, 405, 375, 30);
  126.       { Fl_Return_Button* o = new Fl_Return_Button(315, 410, 75, 25, "OK");
  127.         o->callback((Fl_Callback*)cb_OK);
  128.       }
  129.       { Fl_Group* o = new Fl_Group(15, 405, 300, 25);
  130.         o->end();
  131.         Fl_Group::current()->resizable(o);
  132.       }
  133.       o->end();
  134.     }
  135.     o->end();
  136.   }
  137.   return w;
  138. }