view_featid_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: view_featid_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:01:22 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: view_featid_.cpp,v 1000.1 2004/06/01 21:01:22 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CViewFeatId::cb__i(Fl_Window*, void*) {
- OnExit();
- }
- void CViewFeatId::cb_(Fl_Window* o, void* v) {
- ((CViewFeatId*)(o->user_data()))->cb__i(o,v);
- }
- inline void CViewFeatId::cb_Close_i(Fl_Menu_*, void*) {
- Hide();
- }
- void CViewFeatId::cb_Close(Fl_Menu_* o, void* v) {
- ((CViewFeatId*)(o->parent()->user_data()))->cb_Close_i(o,v);
- }
- inline void CViewFeatId::cb_ID_i(Fl_Menu_*, void*) {
- x_OnHelp();
- }
- void CViewFeatId::cb_ID(Fl_Menu_* o, void* v) {
- ((CViewFeatId*)(o->parent()->user_data()))->cb_ID_i(o,v);
- }
- Fl_Menu_Item CViewFeatId::menu_m_Menu[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&Import", 0, 0, 0, 64, 0, 0, 14, 56},
- {0},
- {"&Save", 0, 0, 0, 64, 0, 0, 14, 56},
- {0},
- {"Save &as", 0, 0, 0, 192, 0, 0, 14, 56},
- {0},
- {"&Close", 0, (Fl_Callback*)CViewFeatId::cb_Close, 0, 0, 0, 0, 14, 56},
- {0},
- {"&Tools", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&Plugins", 0, 0, 0, 64, 0, 0, 14, 56},
- {0},
- {0},
- {"&View", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&New View", 0, 0, 0, 64, 0, 0, 14, 56},
- {0},
- {"&Active Views", 0, 0, 0, 64, 0, 0, 14, 56},
- {0},
- {0},
- {"&Help", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&ID Cross-reference Help", 0, (Fl_Callback*)CViewFeatId::cb_ID, 0, 0, 0, 0, 14, 56},
- {0},
- {0}
- };
- inline void CViewFeatId::cb_m_FeatIdTable_i(CFeatIdTable*, void*) {
- x_OnSelChanged();
- }
- void CViewFeatId::cb_m_FeatIdTable(CFeatIdTable* o, void* v) {
- ((CViewFeatId*)(o->parent()->parent()->user_data()))->cb_m_FeatIdTable_i(o,v);
- }
- Fl_Window* CViewFeatId::x_CreateWindow() {
- Fl_Window* w;
- { Fl_Window* o = new Fl_Window(375, 450);
- w = o;
- o->box(FL_FLAT_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NO_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->callback((Fl_Callback*)cb_, (void*)(this));
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- { Fl_Menu_Bar* o = m_Menu = new Fl_Menu_Bar(0, 0, 375, 25);
- o->box(FL_FLAT_BOX);
- o->menu(menu_m_Menu);
- }
- { Fl_Group* o = new Fl_Group(0, 25, 375, 395);
- o->box(FL_THIN_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- { CFeatIdTable* o = m_FeatIdTable = new CFeatIdTable(1, 26, 373, 393);
- o->box(FL_NO_BOX);
- o->color((Fl_Color)48);
- o->selection_color((Fl_Color)177);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->callback((Fl_Callback*)cb_m_FeatIdTable);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { CStatusBar* o = m_StatusBar = new CStatusBar(0, 425, 375, 20);
- o->box(FL_THIN_DOWN_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(12);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- o->when(FL_WHEN_RELEASE);
- }
- o->end();
- }
- return w;
- }