plugin_arg_dialog_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: plugin_arg_dialog_.cpp,v $
- * PRODUCTION Revision 1000.4 2004/06/01 20:44:19 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.5
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: plugin_arg_dialog_.cpp,v 1000.4 2004/06/01 20:44:19 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CPluginArgDialog::cb__i(Fl_Double_Window*, void*) {
- x_OnCancel();
- }
- void CPluginArgDialog::cb_(Fl_Double_Window* o, void* v) {
- ((CPluginArgDialog*)(o->user_data()))->cb__i(o,v);
- }
- inline void CPluginArgDialog::cb_Save_i(Fl_Button*, void*) {
- x_OnSaveOptions();
- }
- void CPluginArgDialog::cb_Save(Fl_Button* o, void* v) {
- ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_Save_i(o,v);
- }
- inline void CPluginArgDialog::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CPluginArgDialog::cb_OK(Fl_Return_Button* o, void* v) {
- ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CPluginArgDialog::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CPluginArgDialog::cb_Cancel(Fl_Button* o, void* v) {
- ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- inline void CPluginArgDialog::cb_m_HelpButton_i(Fl_Button*, void*) {
- x_OnHelp();
- }
- void CPluginArgDialog::cb_m_HelpButton(Fl_Button* o, void* v) {
- ((CPluginArgDialog*)(o->parent()->parent()->user_data()))->cb_m_HelpButton_i(o,v);
- }
- Fl_Double_Window* CPluginArgDialog::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(550, 585);
- w = o;
- o->callback((Fl_Callback*)cb_, (void*)(this));
- { CPluginArgForm* o = m_Form = new CPluginArgForm(5, 5, 540, 535);
- o->box(FL_NO_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(5, 540, 540, 5);
- o->box(FL_THIN_DOWN_FRAME);
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 550, 540, 25);
- { Fl_Button* o = new Fl_Button(5, 550, 110, 25, "Save Options");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Save);
- }
- { Fl_Group* o = new Fl_Group(115, 550, 180, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(380, 550, 80, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(465, 550, 80, 25, "Cancel");
- o->shortcut(0xff1b);
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Cancel);
- }
- { Fl_Button* o = m_HelpButton = new Fl_Button(295, 550, 80, 25, "Help");
- o->shortcut(0xff1b);
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_m_HelpButton);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }