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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: plugin_mgr_dlg_.cpp,v $
  4.  * PRODUCTION Revision 1000.2  2004/06/01 20:48:40  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: plugin_mgr_dlg_.cpp,v 1000.2 2004/06/01 20:48:40 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CPluginMgrDlg::cb_Add_i(Fl_Button*, void*) {
  13.   x_OnAddPath();
  14. }
  15. void CPluginMgrDlg::cb_Add(Fl_Button* o, void* v) {
  16.   ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Add_i(o,v);
  17. }
  18. inline void CPluginMgrDlg::cb_Remove_i(Fl_Button*, void*) {
  19.   x_OnRemovePath();
  20. }
  21. void CPluginMgrDlg::cb_Remove(Fl_Button* o, void* v) {
  22.   ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Remove_i(o,v);
  23. }
  24. inline void CPluginMgrDlg::cb_Rescan_i(Fl_Button*, void*) {
  25.   x_OnRescanPlugins();
  26. }
  27. void CPluginMgrDlg::cb_Rescan(Fl_Button* o, void* v) {
  28.   ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Rescan_i(o,v);
  29. }
  30. inline void CPluginMgrDlg::cb_8_i(Fl_Button*, void*) {
  31.   x_OnPathUp();
  32. }
  33. void CPluginMgrDlg::cb_8(Fl_Button* o, void* v) {
  34.   ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_8_i(o,v);
  35. }
  36. inline void CPluginMgrDlg::cb_2_i(Fl_Button*, void*) {
  37.   x_OnPathDown();
  38. }
  39. void CPluginMgrDlg::cb_2(Fl_Button* o, void* v) {
  40.   ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_2_i(o,v);
  41. }
  42. inline void CPluginMgrDlg::cb_Disable_i(Fl_Button*, void*) {
  43.   x_OnToggleEnable();
  44. }
  45. void CPluginMgrDlg::cb_Disable(Fl_Button* o, void* v) {
  46.   ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Disable_i(o,v);
  47. }
  48. Fl_Double_Window* CPluginMgrDlg::x_CreateWindow() {
  49.   Fl_Double_Window* w;
  50.   { Fl_Double_Window* o = new Fl_Double_Window(470, 437, "Manage Plugins");
  51.     w = o;
  52.     o->user_data((void*)(this));
  53.     { Fl_Group* o = new Fl_Group(5, 5, 460, 175, "Plugin Search Paths");
  54.       o->box(FL_ENGRAVED_FRAME);
  55.       o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
  56.       { Fl_Browser* o = m_PathsList = new Fl_Browser(15, 30, 440, 110);
  57.         o->type(3);
  58.         o->labelsize(12);
  59.         o->textsize(12);
  60.       }
  61.       { Fl_Group* o = new Fl_Group(15, 145, 440, 25);
  62.         { Fl_Button* o = new Fl_Button(220, 145, 75, 25, "Add");
  63.           o->labelsize(12);
  64.           o->callback((Fl_Callback*)cb_Add);
  65.         }
  66.         { Fl_Button* o = new Fl_Button(300, 145, 75, 25, "Remove");
  67.           o->labelsize(12);
  68.           o->callback((Fl_Callback*)cb_Remove);
  69.         }
  70.         { Fl_Button* o = new Fl_Button(380, 145, 75, 25, "Rescan");
  71.           o->labelsize(12);
  72.           o->callback((Fl_Callback*)cb_Rescan);
  73.         }
  74.         { Fl_Button* o = new Fl_Button(15, 145, 25, 25, "@8>");
  75.           o->labelsize(12);
  76.           o->callback((Fl_Callback*)cb_8);
  77.         }
  78.         { Fl_Button* o = new Fl_Button(40, 145, 25, 25, "@2>");
  79.           o->labelsize(12);
  80.           o->callback((Fl_Callback*)cb_2);
  81.         }
  82.         { Fl_Group* o = new Fl_Group(65, 145, 155, 25);
  83.           o->end();
  84.           Fl_Group::current()->resizable(o);
  85.         }
  86.         o->end();
  87.       }
  88.       o->end();
  89.     }
  90.     { Fl_Group* o = new Fl_Group(5, 190, 460, 240, "Plugins");
  91.       o->box(FL_ENGRAVED_FRAME);
  92.       o->labelsize(12);
  93.       o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
  94.       { Fl_Group* o = new Fl_Group(15, 220, 440, 170);
  95.         o->box(FL_FLAT_BOX);
  96.         o->color(FL_BACKGROUND2_COLOR);
  97.         { CPluginTable* o = m_PluginTable = new CPluginTable(15, 220, 440, 170);
  98.           o->box(FL_THIN_DOWN_FRAME);
  99.           o->color(FL_BACKGROUND2_COLOR);
  100.           o->selection_color((Fl_Color)177);
  101.           o->labeltype(FL_NORMAL_LABEL);
  102.           o->labelfont(0);
  103.           o->labelsize(12);
  104.           o->labelcolor(FL_BLACK);
  105.           o->align(FL_ALIGN_CENTER);
  106.           o->when(FL_WHEN_RELEASE);
  107.           o->end();
  108.         }
  109.         o->end();
  110.       }
  111.       { Fl_Group* o = new Fl_Group(20, 400, 440, 25);
  112.         { Fl_Button* o = new Fl_Button(335, 400, 125, 25, "Disable/Enable");
  113.           o->labelsize(12);
  114.           o->callback((Fl_Callback*)cb_Disable);
  115.         }
  116.         { Fl_Group* o = new Fl_Group(30, 400, 305, 25);
  117.           o->end();
  118.           Fl_Group::current()->resizable(o);
  119.         }
  120.         o->end();
  121.       }
  122.       o->end();
  123.       Fl_Group::current()->resizable(o);
  124.     }
  125.     o->end();
  126.   }
  127.   return w;
  128. }