view_alninfo_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: view_alninfo_.cpp,v $
- * PRODUCTION Revision 1000.4 2004/06/01 20:59:02 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.16
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: view_alninfo_.cpp,v 1000.4 2004/06/01 20:59:02 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CAlnInfoView::cb__i(Fl_Window*, void*) {
- OnExit();
- }
- void CAlnInfoView::cb_(Fl_Window* o, void* v) {
- ((CAlnInfoView*)(o->user_data()))->cb__i(o,v);
- }
- inline void CAlnInfoView::cb_Close_i(Fl_Menu_*, void*) {
- x_OnFileClose();
- }
- void CAlnInfoView::cb_Close(Fl_Menu_* o, void* v) {
- ((CAlnInfoView*)(o->parent()->user_data()))->cb_Close_i(o,v);
- }
- inline void CAlnInfoView::cb_Show_i(Fl_Menu_*, void*) {
- x_OnShowSegments();
- }
- void CAlnInfoView::cb_Show(Fl_Menu_* o, void* v) {
- ((CAlnInfoView*)(o->parent()->user_data()))->cb_Show_i(o,v);
- }
- inline void CAlnInfoView::cb_Show1_i(Fl_Menu_*, void*) {
- x_OnShowSequence();
- }
- void CAlnInfoView::cb_Show1(Fl_Menu_* o, void* v) {
- ((CAlnInfoView*)(o->parent()->user_data()))->cb_Show1_i(o,v);
- }
- inline void CAlnInfoView::cb_Show2_i(Fl_Menu_*, void*) {
- x_OnShowScores();
- }
- void CAlnInfoView::cb_Show2(Fl_Menu_* o, void* v) {
- ((CAlnInfoView*)(o->parent()->user_data()))->cb_Show2_i(o,v);
- }
- inline void CAlnInfoView::cb_Alignment_i(Fl_Menu_*, void*) {
- x_OnHelp();
- }
- void CAlnInfoView::cb_Alignment(Fl_Menu_* o, void* v) {
- ((CAlnInfoView*)(o->parent()->user_data()))->cb_Alignment_i(o,v);
- }
- Fl_Menu_Item CAlnInfoView::menu_m_Menu[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 12, 56},
- {"&Close", 0, (Fl_Callback*)CAlnInfoView::cb_Close, 0, 0, 0, 0, 12, 56},
- {0},
- {"&View", 0, 0, 0, 64, 0, 0, 12, 56},
- {"Show Se&gments", 0, (Fl_Callback*)CAlnInfoView::cb_Show, 0, 0, 0, 0, 12, 56},
- {"Show &Sequence", 0, (Fl_Callback*)CAlnInfoView::cb_Show1, 0, 0, 0, 0, 12, 56},
- {"Show S&cores", 0, (Fl_Callback*)CAlnInfoView::cb_Show2, 0, 0, 0, 0, 12, 56},
- {"Set &Anchor", 0, 0, 0, 192, 0, 0, 12, 56},
- {0},
- {"Active Views", 0, 0, 0, 64, 0, 0, 12, 56},
- {0},
- {"&New View", 0, 0, 0, 64, 0, 0, 12, 56},
- {0},
- {0},
- {"&Help", 0, 0, 0, 64, 0, 0, 12, 56},
- {"&Alignment View Help", 0, (Fl_Callback*)CAlnInfoView::cb_Alignment, 0, 0, 0, 0, 12, 56},
- {"&About Alignment View", 0, 0, 0, 0, 0, 0, 12, 56},
- {0},
- {0}
- };
- Fl_Window* CAlnInfoView::x_CreateWindow() {
- Fl_Window* w;
- { Fl_Window* o = new Fl_Window(600, 500);
- 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, 600, 25);
- o->box(FL_FLAT_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->menu(menu_m_Menu);
- }
- { Fl_Group* o = new Fl_Group(0, 25, 600, 475);
- o->box(FL_THIN_DOWN_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- { CAlnInfoTable* o = m_AlnInfo = new CAlnInfoTable(0, 25, 600, 475);
- 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(10);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- return w;
- }