view_fasta_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:7k
- /*
- * ===========================================================================
- * PRODUCTION $Log: view_fasta_.cpp,v $
- * PRODUCTION Revision 1000.3 2004/06/01 21:02:44 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.8
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: view_fasta_.cpp,v 1000.3 2004/06/01 21:02:44 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CViewFasta::cb__i(Fl_Window*, void*) {
- OnExit();
- }
- void CViewFasta::cb_(Fl_Window* o, void* v) {
- ((CViewFasta*)(o->user_data()))->cb__i(o,v);
- }
- inline void CViewFasta::cb_Helvetica_i(Fl_Menu_*, void*) {
- x_OnFontHelvetica();
- }
- void CViewFasta::cb_Helvetica(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Helvetica_i(o,v);
- }
- inline void CViewFasta::cb_Times_i(Fl_Menu_*, void*) {
- x_OnFontTimes();
- }
- void CViewFasta::cb_Times(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Times_i(o,v);
- }
- inline void CViewFasta::cb_Courier_i(Fl_Menu_*, void*) {
- x_OnFontCourier();
- }
- void CViewFasta::cb_Courier(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Courier_i(o,v);
- }
- inline void CViewFasta::cb_Small_i(Fl_Menu_*, void*) {
- x_OnFontSmall();
- }
- void CViewFasta::cb_Small(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Small_i(o,v);
- }
- inline void CViewFasta::cb_Normal_i(Fl_Menu_*, void*) {
- x_OnFontNormal();
- }
- void CViewFasta::cb_Normal(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Normal_i(o,v);
- }
- inline void CViewFasta::cb_Large_i(Fl_Menu_*, void*) {
- x_OnFontLarge();
- }
- void CViewFasta::cb_Large(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Large_i(o,v);
- }
- inline void CViewFasta::cb_FastA_i(Fl_Menu_*, void*) {
- x_OnHelpTextViewHelp();
- }
- void CViewFasta::cb_FastA(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_FastA_i(o,v);
- }
- Fl_Menu_Item CViewFasta::menu_m_Menu[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 12, 56},
- {"&Save", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Save &as...", 0, 0, 0, 128, 0, 0, 12, 56},
- {"&Close", 0, 0, 0, 0, 0, 0, 12, 56},
- {0},
- {"&Search", 0, 0, 0, 64, 0, 0, 12, 56},
- {"&Find", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Find &Next", 0, 0, 0, 0, 0, 0, 12, 56},
- {"&Replace", 0, 0, 0, 0, 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*)CViewFasta::cb_Helvetica, 0, 0, 0, 0, 12, 56},
- {"Times", 0, (Fl_Callback*)CViewFasta::cb_Times, 0, 0, 0, 0, 12, 56},
- {"Courier", 0, (Fl_Callback*)CViewFasta::cb_Courier, 0, 0, 0, 0, 12, 56},
- {0},
- {"Text &Size", 0, 0, 0, 192, 0, 0, 12, 56},
- {"Small", 0, (Fl_Callback*)CViewFasta::cb_Small, 0, 0, 0, 0, 12, 56},
- {"Normal", 0, (Fl_Callback*)CViewFasta::cb_Normal, 0, 0, 0, 0, 12, 56},
- {"Large", 0, (Fl_Callback*)CViewFasta::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},
- {"&FastA Help", 0, (Fl_Callback*)CViewFasta::cb_FastA, 0, 0, 0, 0, 12, 56},
- {0},
- {0}
- };
- inline void CViewFasta::cb_Small1_i(Fl_Menu_*, void*) {
- x_OnFontSmall();
- }
- void CViewFasta::cb_Small1(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Small1_i(o,v);
- }
- inline void CViewFasta::cb_Normal1_i(Fl_Menu_*, void*) {
- x_OnFontNormal();
- }
- void CViewFasta::cb_Normal1(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Normal1_i(o,v);
- }
- inline void CViewFasta::cb_Large1_i(Fl_Menu_*, void*) {
- x_OnFontLarge();
- }
- void CViewFasta::cb_Large1(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Large1_i(o,v);
- }
- Fl_Menu_Item CViewFasta::menu_m_TextSize[] = {
- {"Small", 0, (Fl_Callback*)CViewFasta::cb_Small1, 0, 0, 0, 0, 10, 56},
- {"Normal", 0, (Fl_Callback*)CViewFasta::cb_Normal1, 0, 0, 0, 0, 12, 56},
- {"Large", 0, (Fl_Callback*)CViewFasta::cb_Large1, 0, 0, 0, 0, 14, 56},
- {0}
- };
- inline void CViewFasta::cb_Helvetica1_i(Fl_Menu_*, void*) {
- x_OnFontHelvetica();
- }
- void CViewFasta::cb_Helvetica1(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Helvetica1_i(o,v);
- }
- inline void CViewFasta::cb_Times1_i(Fl_Menu_*, void*) {
- x_OnFontTimes();
- }
- void CViewFasta::cb_Times1(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Times1_i(o,v);
- }
- inline void CViewFasta::cb_Courier1_i(Fl_Menu_*, void*) {
- x_OnFontCourier();
- }
- void CViewFasta::cb_Courier1(Fl_Menu_* o, void* v) {
- ((CViewFasta*)(o->parent()->parent()->user_data()))->cb_Courier1_i(o,v);
- }
- Fl_Menu_Item CViewFasta::menu_m_TextFont[] = {
- {"Helvetica", 0, (Fl_Callback*)CViewFasta::cb_Helvetica1, 0, 0, 0, 0, 12, 56},
- {"Times", 0, (Fl_Callback*)CViewFasta::cb_Times1, 0, 0, 0, 8, 12, 56},
- {"Courier", 0, (Fl_Callback*)CViewFasta::cb_Courier1, 0, 0, 0, 4, 12, 56},
- {0}
- };
- Fl_Window* CViewFasta::x_CreateWindow() {
- Fl_Window* w;
- { Fl_Window* o = new Fl_Window(595, 635);
- 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->textsize(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->textsize(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(2, 62, 591, 571);
- { CFastaTextDisplay* o = m_Text = new CFastaTextDisplay(2, 62, 591, 571);
- o->box(FL_THIN_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color(FL_SELECTION_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(12);
- o->labelcolor(FL_BLACK);
- o->textsize(12);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- return w;
- }