entry_form_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: entry_form_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:46:34 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.9
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: entry_form_.cpp,v 1000.1 2004/06/01 20:46:34 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CEntryFormDialog::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CEntryFormDialog::cb_OK(Fl_Return_Button* o, void* v) {
- ((CEntryFormDialog*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CEntryFormDialog::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CEntryFormDialog::cb_Cancel(Fl_Button* o, void* v) {
- ((CEntryFormDialog*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- Fl_Double_Window* CEntryFormDialog::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(550, 585);
- w = o;
- o->user_data((void*)(this));
- { CFlForm* o = m_Form = new CFlForm(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(0, 540, 550, 5);
- o->box(FL_THIN_DOWN_FRAME);
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 550, 540, 25);
- { Fl_Return_Button* o = new Fl_Return_Button(380, 550, 80, 25, "OK");
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(465, 550, 80, 25, "Cancel");
- o->shortcut(0xff1b);
- o->callback((Fl_Callback*)cb_Cancel);
- }
- { Fl_Group* o = new Fl_Group(5, 550, 375, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }