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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: plugin_dlg_.cpp,v $
  4.  * PRODUCTION Revision 1000.0  2004/06/01 21:17:28  gouriano
  5.  * PRODUCTION PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.1
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: plugin_dlg_.cpp,v 1000.0 2004/06/01 21:17:28 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CPluginDlg::cb_m_PluginList_i(Fl_Browser*, void*) {
  13.   x_OnPluginChanged();
  14. }
  15. void CPluginDlg::cb_m_PluginList(Fl_Browser* o, void* v) {
  16.   ((CPluginDlg*)(o->parent()->user_data()))->cb_m_PluginList_i(o,v);
  17. }
  18. inline void CPluginDlg::cb_Cancel_i(Fl_Button*, void*) {
  19.   x_OnCancel();
  20. }
  21. void CPluginDlg::cb_Cancel(Fl_Button* o, void* v) {
  22.   ((CPluginDlg*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
  23. }
  24. inline void CPluginDlg::cb_OK_i(Fl_Return_Button*, void*) {
  25.   x_OnOK();
  26. }
  27. void CPluginDlg::cb_OK(Fl_Return_Button* o, void* v) {
  28.   ((CPluginDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  29. }
  30. Fl_Double_Window* CPluginDlg::x_CreateWindow() {
  31.   Fl_Double_Window* w;
  32.   { Fl_Double_Window* o = new Fl_Double_Window(673, 304);
  33.     w = o;
  34.     o->user_data((void*)(this));
  35.     { Fl_Browser* o = m_PluginList = new Fl_Browser(5, 5, 160, 240);
  36.       o->type(2);
  37.       o->labelsize(12);
  38.       o->textsize(12);
  39.       o->callback((Fl_Callback*)cb_m_PluginList);
  40.     }
  41.     { CPluginArgForm* o = m_Form = new CPluginArgForm(170, 5, 500, 240);
  42.       o->box(FL_NO_BOX);
  43.       o->color(FL_BACKGROUND_COLOR);
  44.       o->selection_color(FL_BACKGROUND_COLOR);
  45.       o->labeltype(FL_NORMAL_LABEL);
  46.       o->labelfont(0);
  47.       o->labelsize(12);
  48.       o->labelcolor(FL_BLACK);
  49.       o->align(FL_ALIGN_TOP);
  50.       o->when(FL_WHEN_RELEASE);
  51.       o->end();
  52.       Fl_Group::current()->resizable(o);
  53.     }
  54.     { Fl_Group* o = new Fl_Group(5, 275, 665, 25);
  55.       o->labelsize(12);
  56.       { Fl_Button* o = new Fl_Button(585, 275, 85, 25, "Cancel");
  57.         o->labelsize(12);
  58.         o->callback((Fl_Callback*)cb_Cancel);
  59.       }
  60.       { Fl_Return_Button* o = new Fl_Return_Button(495, 275, 85, 25, "OK");
  61.         o->labelsize(12);
  62.         o->callback((Fl_Callback*)cb_OK);
  63.       }
  64.       { Fl_Group* o = new Fl_Group(5, 275, 490, 25);
  65.         o->labelsize(12);
  66.         o->end();
  67.         Fl_Group::current()->resizable(o);
  68.       }
  69.       o->end();
  70.     }
  71.     { CStatusBar* o = m_StatusBar = new CStatusBar(5, 250, 665, 20);
  72.       o->box(FL_THIN_DOWN_BOX);
  73.       o->color(FL_BACKGROUND_COLOR);
  74.       o->selection_color(FL_BACKGROUND_COLOR);
  75.       o->labeltype(FL_NORMAL_LABEL);
  76.       o->labelfont(0);
  77.       o->labelsize(12);
  78.       o->labelcolor(FL_BLACK);
  79.       o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  80.       o->when(FL_WHEN_RELEASE);
  81.       o->end();
  82.     }
  83.     o->end();
  84.   }
  85.   return w;
  86. }