browser_config_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: browser_config_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:47:49 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: browser_config_dlg_.cpp,v 1000.1 2004/06/01 20:47:49 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- Fl_Menu_Item CBrowserConfigDlg::menu_m_ForWhomChoice[] = {
- {"Configure for current user only", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Configure for whole computer", 0, 0, 0, 0, 0, 0, 12, 56},
- {0}
- };
- Fl_Menu_Item* CBrowserConfigDlg::m_ForCurrentUser = CBrowserConfigDlg::menu_m_ForWhomChoice + 0;
- Fl_Menu_Item* CBrowserConfigDlg::m_ForWholeComputer = CBrowserConfigDlg::menu_m_ForWhomChoice + 1;
- Fl_Menu_Item CBrowserConfigDlg::menu_m_ReuseChoice[] = {
- {"Reuse gbench if already running (recommended)", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Always launch a new instance of gbench", 0, 0, 0, 0, 0, 0, 12, 56},
- {0}
- };
- Fl_Menu_Item* CBrowserConfigDlg::m_Reuse = CBrowserConfigDlg::menu_m_ReuseChoice + 0;
- Fl_Menu_Item* CBrowserConfigDlg::m_NoReuse = CBrowserConfigDlg::menu_m_ReuseChoice + 1;
- inline void CBrowserConfigDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CBrowserConfigDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CBrowserConfigDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CBrowserConfigDlg::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CBrowserConfigDlg::cb_Cancel(Fl_Button* o, void* v) {
- ((CBrowserConfigDlg*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- Fl_Double_Window* CBrowserConfigDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(381, 169, "Web Browser Configuration");
- w = o;
- o->user_data((void*)(this));
- { Fl_Choice* o = m_ForWhomChoice = new Fl_Choice(5, 65, 370, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->menu(menu_m_ForWhomChoice);
- }
- { Fl_Choice* o = m_ReuseChoice = new Fl_Choice(5, 100, 370, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->menu(menu_m_ReuseChoice);
- }
- { Fl_Box* o = new Fl_Box(0, 0, 375, 60, "Configure web browsers to use Genome Workbench as a helper application");
- o->labelsize(12);
- o->align(FL_ALIGN_WRAP);
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(5, 135, 370, 25);
- { Fl_Group* o = new Fl_Group(5, 135, 205, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(210, 135, 80, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(295, 135, 80, 25, "Cancel");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Cancel);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }