config_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:6k
- /*
- * ===========================================================================
- * PRODUCTION $Log: config_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:45:32 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: config_dlg_.cpp,v 1000.1 2004/06/01 20:45:32 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CConfigDlg::cb_m_StyleBrowser_i(Fl_Browser*, void*) {
- x_OnClicks();
- }
- void CConfigDlg::cb_m_StyleBrowser(Fl_Browser* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_StyleBrowser_i(o,v);
- }
- inline void CConfigDlg::cb_Use_i(Fl_Button*, void*) {
- x_OnUse();
- }
- void CConfigDlg::cb_Use(Fl_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_Use_i(o,v);
- }
- inline void CConfigDlg::cb_Add_i(Fl_Button*, void*) {
- x_OnAdd();
- }
- void CConfigDlg::cb_Add(Fl_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_Add_i(o,v);
- }
- inline void CConfigDlg::cb_Copy_i(Fl_Button*, void*) {
- x_OnCopy();
- }
- void CConfigDlg::cb_Copy(Fl_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_Copy_i(o,v);
- }
- inline void CConfigDlg::cb_m_RenameBtn_i(Fl_Button*, void*) {
- x_OnRename();
- }
- void CConfigDlg::cb_m_RenameBtn(Fl_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_RenameBtn_i(o,v);
- }
- inline void CConfigDlg::cb_m_DeleteBtn_i(Fl_Button*, void*) {
- x_OnDelete();
- }
- void CConfigDlg::cb_m_DeleteBtn(Fl_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_DeleteBtn_i(o,v);
- }
- inline void CConfigDlg::cb_Default_i(Fl_Button*, void*) {
- x_OnDefVals();
- }
- void CConfigDlg::cb_Default(Fl_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_Default_i(o,v);
- }
- inline void CConfigDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CConfigDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CConfigDlg::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CConfigDlg::cb_Cancel(Fl_Button* o, void* v) {
- ((CConfigDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- Fl_Window* CConfigDlg::x_CreateWindow() {
- Fl_Window* w;
- { Fl_Window* o = new Fl_Window(598, 306, "Preferences");
- w = o;
- o->user_data((void*)(this));
- { Fl_Tile* o = m_Tile = new Fl_Tile(0, 3, 594, 299);
- { Fl_Group* o = m_SetsGroup = new Fl_Group(5, 5, 235, 297);
- o->box(FL_THIN_DOWN_FRAME);
- new Fl_Box(10, 5, 225, 25, "Saved Styles");
- { Fl_Browser* o = m_StyleBrowser = new Fl_Browser(10, 32, 150, 263);
- o->type(2);
- o->callback((Fl_Callback*)cb_m_StyleBrowser);
- o->align(FL_ALIGN_TOP);
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = m_SetBtnGroup = new Fl_Group(165, 30, 70, 265, "set buttons");
- o->labeltype(FL_NO_LABEL);
- { Fl_Group* o = new Fl_Group(165, 55, 70, 125);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Button* o = new Fl_Button(166, 30, 69, 25, "Use @DnArrow");
- o->callback((Fl_Callback*)cb_Use);
- }
- { Fl_Button* o = new Fl_Button(165, 180, 70, 25, "Add");
- o->callback((Fl_Callback*)cb_Add);
- }
- { Fl_Button* o = new Fl_Button(165, 210, 70, 25, "Copy");
- o->callback((Fl_Callback*)cb_Copy);
- }
- { Fl_Button* o = m_RenameBtn = new Fl_Button(166, 240, 69, 25, "Rename");
- o->callback((Fl_Callback*)cb_m_RenameBtn);
- }
- { Fl_Button* o = m_DeleteBtn = new Fl_Button(165, 270, 69, 25, "Delete");
- o->callback((Fl_Callback*)cb_m_DeleteBtn);
- }
- o->resizable(NULL);
- o->end();
- }
- o->end();
- }
- { Fl_Group* o = m_RightGroup = new Fl_Group(240, 5, 354, 297);
- o->box(FL_THIN_DOWN_FRAME);
- { Fl_Group* o = new Fl_Group(240, 5, 348, 34);
- { Fl_Box* o = new Fl_Box(244, 10, 91, 25, "Current Style");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Output* o = m_CurrentStyleText = new Fl_Output(338, 10, 185, 25);
- o->box(FL_THIN_DOWN_BOX);
- }
- o->resizable(NULL);
- o->end();
- }
- { Fl_Group* o = m_ValueBtnGroup = new Fl_Group(245, 270, 346, 26, "value buttons");
- o->labeltype(FL_NO_LABEL);
- { Fl_Button* o = new Fl_Button(245, 270, 105, 25, "Default Values");
- o->callback((Fl_Callback*)cb_Default);
- }
- { Fl_Box* o = new Fl_Box(350, 270, 80, 25, "resizable");
- o->hide();
- o->deactivate();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(510, 270, 80, 25, "OK");
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(428, 270, 75, 25, "Cancel");
- o->callback((Fl_Callback*)cb_Cancel);
- }
- o->end();
- }
- { Fl_Group* o = m_ConfigPanelHolder = new Fl_Group(243, 39, 348, 226);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->set_modal();
- o->end();
- }
- return w;
- }