view_genbank_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:7k
- /*
- * ===========================================================================
- * PRODUCTION $Log: view_genbank_.cpp,v $
- * PRODUCTION Revision 1000.3 2004/06/01 21:02:55 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.8
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: view_genbank_.cpp,v 1000.3 2004/06/01 21:02:55 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CViewGenbank::cb__i(Fl_Window*, void*) {
- OnExit();
- }
- void CViewGenbank::cb_(Fl_Window* o, void* v) {
- ((CViewGenbank*)(o->user_data()))->cb__i(o,v);
- }
- inline void CViewGenbank::cb_Helvetica_i(Fl_Menu_*, void*) {
- x_OnFontHelvetica();
- }
- void CViewGenbank::cb_Helvetica(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Helvetica_i(o,v);
- }
- inline void CViewGenbank::cb_Times_i(Fl_Menu_*, void*) {
- x_OnFontTimes();
- }
- void CViewGenbank::cb_Times(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Times_i(o,v);
- }
- inline void CViewGenbank::cb_Courier_i(Fl_Menu_*, void*) {
- x_OnFontCourier();
- }
- void CViewGenbank::cb_Courier(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Courier_i(o,v);
- }
- inline void CViewGenbank::cb_Small_i(Fl_Menu_*, void*) {
- x_OnFontSmall();
- }
- void CViewGenbank::cb_Small(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Small_i(o,v);
- }
- inline void CViewGenbank::cb_Normal_i(Fl_Menu_*, void*) {
- x_OnFontNormal();
- }
- void CViewGenbank::cb_Normal(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Normal_i(o,v);
- }
- inline void CViewGenbank::cb_Large_i(Fl_Menu_*, void*) {
- x_OnFontLarge();
- }
- void CViewGenbank::cb_Large(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Large_i(o,v);
- }
- inline void CViewGenbank::cb_Text_i(Fl_Menu_*, void*) {
- x_OnHelpTextViewHelp();
- }
- void CViewGenbank::cb_Text(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Text_i(o,v);
- }
- Fl_Menu_Item CViewGenbank::menu_m_Menu[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 12, 56},
- {0},
- {"&View", 0, 0, 0, 64, 0, 0, 12, 56},
- {"Text F&ont", 0, 0, 0, 64, 0, 0, 12, 56},
- {"Helvetica", 0, (Fl_Callback*)CViewGenbank::cb_Helvetica, 0, 0, 0, 0, 12, 56},
- {"Times", 0, (Fl_Callback*)CViewGenbank::cb_Times, 0, 0, 0, 0, 12, 56},
- {"Courier", 0, (Fl_Callback*)CViewGenbank::cb_Courier, 0, 0, 0, 0, 12, 56},
- {0},
- {"Text &Size", 0, 0, 0, 192, 0, 0, 12, 56},
- {"Small", 0, (Fl_Callback*)CViewGenbank::cb_Small, 0, 0, 0, 0, 12, 56},
- {"Normal", 0, (Fl_Callback*)CViewGenbank::cb_Normal, 0, 0, 0, 0, 12, 56},
- {"Large", 0, (Fl_Callback*)CViewGenbank::cb_Large, 0, 0, 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},
- {"&Text View Help", 0, (Fl_Callback*)CViewGenbank::cb_Text, 0, 0, 0, 0, 12, 56},
- {0},
- {0}
- };
- inline void CViewGenbank::cb_Small1_i(Fl_Menu_*, void*) {
- x_OnFontSmall();
- }
- void CViewGenbank::cb_Small1(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Small1_i(o,v);
- }
- inline void CViewGenbank::cb_Normal1_i(Fl_Menu_*, void*) {
- x_OnFontNormal();
- }
- void CViewGenbank::cb_Normal1(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Normal1_i(o,v);
- }
- inline void CViewGenbank::cb_Large1_i(Fl_Menu_*, void*) {
- x_OnFontLarge();
- }
- void CViewGenbank::cb_Large1(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Large1_i(o,v);
- }
- Fl_Menu_Item CViewGenbank::menu_m_TextSize[] = {
- {"Small", 0, (Fl_Callback*)CViewGenbank::cb_Small1, 0, 0, 0, 0, 10, 56},
- {"Normal", 0, (Fl_Callback*)CViewGenbank::cb_Normal1, 0, 0, 0, 0, 12, 56},
- {"Large", 0, (Fl_Callback*)CViewGenbank::cb_Large1, 0, 0, 0, 0, 14, 56},
- {0}
- };
- inline void CViewGenbank::cb_Helvetica1_i(Fl_Menu_*, void*) {
- x_OnFontHelvetica();
- }
- void CViewGenbank::cb_Helvetica1(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Helvetica1_i(o,v);
- }
- inline void CViewGenbank::cb_Times1_i(Fl_Menu_*, void*) {
- x_OnFontTimes();
- }
- void CViewGenbank::cb_Times1(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Times1_i(o,v);
- }
- inline void CViewGenbank::cb_Courier1_i(Fl_Menu_*, void*) {
- x_OnFontCourier();
- }
- void CViewGenbank::cb_Courier1(Fl_Menu_* o, void* v) {
- ((CViewGenbank*)(o->parent()->parent()->user_data()))->cb_Courier1_i(o,v);
- }
- Fl_Menu_Item CViewGenbank::menu_m_TextFont[] = {
- {"Helvetica", 0, (Fl_Callback*)CViewGenbank::cb_Helvetica1, 0, 0, 0, 0, 12, 56},
- {"Times", 0, (Fl_Callback*)CViewGenbank::cb_Times1, 0, 0, 0, 8, 12, 56},
- {"Courier", 0, (Fl_Callback*)CViewGenbank::cb_Courier1, 0, 0, 0, 4, 12, 56},
- {0}
- };
- Fl_Window* CViewGenbank::x_CreateWindow() {
- Fl_Window* w;
- { Fl_Window* o = new Fl_Window(599, 640);
- 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_Group* o = new Fl_Group(0, 0, 595, 55);
- { Fl_Menu_Bar* o = m_Menu = new Fl_Menu_Bar(0, 0, 595, 25);
- o->box(FL_FLAT_BOX);
- o->labelsize(12);
- o->menu(menu_m_Menu);
- }
- { Fl_Choice* o = m_TextSize = new Fl_Choice(70, 30, 80, 25, "Text Size");
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->menu(menu_m_TextSize);
- }
- { Fl_Choice* o = m_TextFont = new Fl_Choice(230, 30, 115, 25, "Text Font");
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->menu(menu_m_TextFont);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 61, 589, 569);
- o->box(FL_THIN_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- { Fl_Scroll* o = m_Editor = new Fl_Scroll(5, 61, 589, 569);
- o->box(FL_DOWN_FRAME);
- o->color((Fl_Color)55);
- o->selection_color((Fl_Color)184);
- o->labelcolor(FL_FOREGROUND_COLOR);
- { Fl_Pack* o = m_EditPack = new Fl_Pack(5, 61, 589, 569);
- o->color((Fl_Color)48);
- o->selection_color((Fl_Color)184);
- o->labelsize(12);
- o->labelcolor(FL_FOREGROUND_COLOR);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- o->resizable(o);
- }
- return w;
- }