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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: plugin_arg_dialog_.cpp,v $
  4.  * PRODUCTION Revision 1000.4  2004/06/01 20:44:19  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.5
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: plugin_arg_dialog_.cpp,v 1000.4 2004/06/01 20:44:19 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CPluginArgDialog::cb__i(Fl_Double_Window*, void*) {
  13.   x_OnCancel();
  14. }
  15. void CPluginArgDialog::cb_(Fl_Double_Window* o, void* v) {
  16.   ((CPluginArgDialog*)(o->user_data()))->cb__i(o,v);
  17. }
  18. inline void CPluginArgDialog::cb_Save_i(Fl_Button*, void*) {
  19.   x_OnSaveOptions();
  20. }
  21. void CPluginArgDialog::cb_Save(Fl_Button* o, void* v) {
  22.   ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_Save_i(o,v);
  23. }
  24. inline void CPluginArgDialog::cb_OK_i(Fl_Return_Button*, void*) {
  25.   x_OnOK();
  26. }
  27. void CPluginArgDialog::cb_OK(Fl_Return_Button* o, void* v) {
  28.   ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  29. }
  30. inline void CPluginArgDialog::cb_Cancel_i(Fl_Button*, void*) {
  31.   x_OnCancel();
  32. }
  33. void CPluginArgDialog::cb_Cancel(Fl_Button* o, void* v) {
  34.   ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
  35. }
  36. inline void CPluginArgDialog::cb_m_HelpButton_i(Fl_Button*, void*) {
  37.   x_OnHelp();
  38. }
  39. void CPluginArgDialog::cb_m_HelpButton(Fl_Button* o, void* v) {
  40.   ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_m_HelpButton_i(o,v);
  41. }
  42. Fl_Double_Window* CPluginArgDialog::x_CreateWindow() {
  43.   Fl_Double_Window* w;
  44.   { Fl_Double_Window* o = new Fl_Double_Window(550, 585);
  45.     w = o;
  46.     o->callback((Fl_Callback*)cb_, (void*)(this));
  47.     { CPluginArgForm* o = m_Form = new CPluginArgForm(5, 5, 540, 535);
  48.       o->box(FL_NO_BOX);
  49.       o->color(FL_BACKGROUND_COLOR);
  50.       o->selection_color(FL_BACKGROUND_COLOR);
  51.       o->labeltype(FL_NORMAL_LABEL);
  52.       o->labelfont(0);
  53.       o->labelsize(14);
  54.       o->labelcolor(FL_BLACK);
  55.       o->align(FL_ALIGN_TOP);
  56.       o->when(FL_WHEN_RELEASE);
  57.       o->end();
  58.       Fl_Group::current()->resizable(o);
  59.     }
  60.     { Fl_Group* o = new Fl_Group(5, 540, 540, 5);
  61.       o->box(FL_THIN_DOWN_FRAME);
  62.       o->end();
  63.     }
  64.     { Fl_Group* o = new Fl_Group(5, 550, 540, 25);
  65.       { Fl_Button* o = new Fl_Button(5, 550, 110, 25, "Save Options");
  66.         o->labelsize(12);
  67.         o->callback((Fl_Callback*)cb_Save);
  68.       }
  69.       { Fl_Group* o = new Fl_Group(115, 550, 180, 25);
  70.         o->end();
  71.         Fl_Group::current()->resizable(o);
  72.       }
  73.       { Fl_Return_Button* o = new Fl_Return_Button(380, 550, 80, 25, "OK");
  74.         o->labelsize(12);
  75.         o->callback((Fl_Callback*)cb_OK);
  76.       }
  77.       { Fl_Button* o = new Fl_Button(465, 550, 80, 25, "Cancel");
  78.         o->shortcut(0xff1b);
  79.         o->labelsize(12);
  80.         o->callback((Fl_Callback*)cb_Cancel);
  81.       }
  82.       { Fl_Button* o = m_HelpButton = new Fl_Button(295, 550, 80, 25, "Help");
  83.         o->shortcut(0xff1b);
  84.         o->labelsize(12);
  85.         o->callback((Fl_Callback*)cb_m_HelpButton);
  86.       }
  87.       o->end();
  88.     }
  89.     o->end();
  90.   }
  91.   return w;
  92. }