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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: theme_dlg_.cpp,v $
  4.  * PRODUCTION Revision 1000.1  2004/06/01 20:45:59  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: theme_dlg_.cpp,v 1000.1 2004/06/01 20:45:59 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CThemeDlg::cb_m_ThemeList_i(Fl_Choice*, void*) {
  13.   x_OnUse();
  14. }
  15. void CThemeDlg::cb_m_ThemeList(Fl_Choice* o, void* v) {
  16.   ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_m_ThemeList_i(o,v);
  17. }
  18. inline void CThemeDlg::cb__i(Fl_Button*, void*) {
  19.   x_OnShowStateDlg();
  20. }
  21. void CThemeDlg::cb_(Fl_Button* o, void* v) {
  22.   ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb__i(o,v);
  23. }
  24. inline void CThemeDlg::cb_Default_i(Fl_Button*, void*) {
  25.   x_OnDefVals();
  26. }
  27. void CThemeDlg::cb_Default(Fl_Button* o, void* v) {
  28.   ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_Default_i(o,v);
  29. }
  30. inline void CThemeDlg::cb_OK_i(Fl_Return_Button*, void*) {
  31.   x_OnOK();
  32. }
  33. void CThemeDlg::cb_OK(Fl_Return_Button* o, void* v) {
  34.   ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  35. }
  36. inline void CThemeDlg::cb_Cancel_i(Fl_Button*, void*) {
  37.   x_OnCancel();
  38. }
  39. void CThemeDlg::cb_Cancel(Fl_Button* o, void* v) {
  40.   ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
  41. }
  42. Fl_Double_Window* CThemeDlg::x_CreateWindow() {
  43.   Fl_Double_Window* w;
  44.   { Fl_Double_Window* o = new Fl_Double_Window(325, 300, "Preferences");
  45.     w = o;
  46.     o->user_data((void*)(this));
  47.     { Fl_Group* o = new Fl_Group(0, 0, 324, 38);
  48.       new Fl_Box(12, 8, 55, 25, "Theme");
  49.       { Fl_Choice* o = m_ThemeList = new Fl_Choice(68, 8, 211, 25);
  50.         o->down_box(FL_BORDER_BOX);
  51.         o->labeltype(FL_NO_LABEL);
  52.         o->callback((Fl_Callback*)cb_m_ThemeList);
  53.       }
  54.       { Fl_Box* o = new Fl_Box(82, 33, 169, 1, "resizable");
  55.         o->labeltype(FL_NO_LABEL);
  56.         o->hide();
  57.         o->deactivate();
  58.         Fl_Group::current()->resizable(o);
  59.       }
  60.       { Fl_Button* o = new Fl_Button(287, 8, 28, 25, "...");
  61.         o->labelfont(1);
  62.         o->callback((Fl_Callback*)cb_);
  63.       }
  64.       o->end();
  65.     }
  66.     { Fl_Group* o = m_ConfigPanelHolder = new Fl_Group(2, 40, 321, 225);
  67.       o->end();
  68.       Fl_Group::current()->resizable(o);
  69.     }
  70.     { Fl_Group* o = m_ValueBtnGroup = new Fl_Group(5, 270, 315, 25, "value buttons");
  71.       o->labeltype(FL_NO_LABEL);
  72.       { Fl_Button* o = new Fl_Button(11, 270, 105, 25, "Default Values");
  73.         o->callback((Fl_Callback*)cb_Default);
  74.       }
  75.       { Fl_Box* o = new Fl_Box(8, 270, 1, 25, "resizable");
  76.         o->hide();
  77.         o->deactivate();
  78.         Fl_Group::current()->resizable(o);
  79.       }
  80.       { Fl_Return_Button* o = new Fl_Return_Button(240, 270, 80, 25, "OK");
  81.         o->callback((Fl_Callback*)cb_OK);
  82.       }
  83.       { Fl_Button* o = new Fl_Button(155, 270, 80, 25, "Cancel");
  84.         o->callback((Fl_Callback*)cb_Cancel);
  85.       }
  86.       o->end();
  87.     }
  88.     o->set_modal();
  89.     o->end();
  90.   }
  91.   return w;
  92. }