theme_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: theme_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:45:59 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: theme_dlg_.cpp,v 1000.1 2004/06/01 20:45:59 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CThemeDlg::cb_m_ThemeList_i(Fl_Choice*, void*) {
- x_OnUse();
- }
- void CThemeDlg::cb_m_ThemeList(Fl_Choice* o, void* v) {
- ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_m_ThemeList_i(o,v);
- }
- inline void CThemeDlg::cb__i(Fl_Button*, void*) {
- x_OnShowStateDlg();
- }
- void CThemeDlg::cb_(Fl_Button* o, void* v) {
- ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb__i(o,v);
- }
- inline void CThemeDlg::cb_Default_i(Fl_Button*, void*) {
- x_OnDefVals();
- }
- void CThemeDlg::cb_Default(Fl_Button* o, void* v) {
- ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_Default_i(o,v);
- }
- inline void CThemeDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CThemeDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CThemeDlg::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CThemeDlg::cb_Cancel(Fl_Button* o, void* v) {
- ((CThemeDlg*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- Fl_Double_Window* CThemeDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(325, 300, "Preferences");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(0, 0, 324, 38);
- new Fl_Box(12, 8, 55, 25, "Theme");
- { Fl_Choice* o = m_ThemeList = new Fl_Choice(68, 8, 211, 25);
- o->down_box(FL_BORDER_BOX);
- o->labeltype(FL_NO_LABEL);
- o->callback((Fl_Callback*)cb_m_ThemeList);
- }
- { Fl_Box* o = new Fl_Box(82, 33, 169, 1, "resizable");
- o->labeltype(FL_NO_LABEL);
- o->hide();
- o->deactivate();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Button* o = new Fl_Button(287, 8, 28, 25, "...");
- o->labelfont(1);
- o->callback((Fl_Callback*)cb_);
- }
- o->end();
- }
- { Fl_Group* o = m_ConfigPanelHolder = new Fl_Group(2, 40, 321, 225);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = m_ValueBtnGroup = new Fl_Group(5, 270, 315, 25, "value buttons");
- o->labeltype(FL_NO_LABEL);
- { Fl_Button* o = new Fl_Button(11, 270, 105, 25, "Default Values");
- o->callback((Fl_Callback*)cb_Default);
- }
- { Fl_Box* o = new Fl_Box(8, 270, 1, 25, "resizable");
- o->hide();
- o->deactivate();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(240, 270, 80, 25, "OK");
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(155, 270, 80, 25, "Cancel");
- o->callback((Fl_Callback*)cb_Cancel);
- }
- o->end();
- }
- o->set_modal();
- o->end();
- }
- return w;
- }