document_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: document_dlg_.cpp,v $
- * PRODUCTION Revision 1000.2 2004/06/01 20:48:04 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: document_dlg_.cpp,v 1000.2 2004/06/01 20:48:04 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CDocumentDlg::cb_NCBI_i(Fl_Double_Window*, void*) {
- x_OnOK();
- }
- void CDocumentDlg::cb_NCBI(Fl_Double_Window* o, void* v) {
- ((CDocumentDlg*)(o->user_data()))->cb_NCBI_i(o,v);
- }
- inline void CDocumentDlg::cb_m_Records_i(CRecordsTable*, void*) {
- x_OnSelChanged();
- }
- void CDocumentDlg::cb_m_Records(CRecordsTable* o, void* v) {
- ((CDocumentDlg*)(o->parent()->parent()->user_data()))->cb_m_Records_i(o,v);
- }
- inline void CDocumentDlg::cb_Unload_i(Fl_Button*, void*) {
- x_OnUnload();
- }
- void CDocumentDlg::cb_Unload(Fl_Button* o, void* v) {
- ((CDocumentDlg*)(o->parent()->parent()->user_data()))->cb_Unload_i(o,v);
- }
- inline void CDocumentDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CDocumentDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CDocumentDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- Fl_Double_Window* CDocumentDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(460, 349, "NCBI Genome Workbench: All Loaded Records");
- w = o;
- o->callback((Fl_Callback*)cb_NCBI, (void*)(this));
- { Fl_Group* o = new Fl_Group(5, 5, 450, 310);
- o->box(FL_FLAT_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- { CRecordsTable* o = m_Records = new CRecordsTable(5, 5, 450, 310);
- o->box(FL_THIN_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color((Fl_Color)4);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(12);
- o->labelcolor(FL_BLACK);
- o->callback((Fl_Callback*)cb_m_Records);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(5, 320, 450, 25);
- { Fl_Menu_Button* o = m_ToolsButton = new Fl_Menu_Button(5, 320, 100, 25, "Tools");
- o->labelsize(12);
- o->textsize(12);
- }
- { Fl_Button* o = new Fl_Button(265, 320, 95, 25, "Unload");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Unload);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(365, 320, 90, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Group* o = new Fl_Group(105, 320, 160, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }