test_taxtree_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: test_taxtree_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:13:34 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.5
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- #include <ncbi_pch.hpp>
- #include "test_taxtree_.hpp"
- /* $Id: test_taxtree_.cpp,v 1000.1 2004/06/01 21:13:34 gouriano Exp $ */
- inline void CTaxTreeTestDlg::cb_Exit_i(Fl_Menu_*, void*) {
- x_OnOK();
- }
- void CTaxTreeTestDlg::cb_Exit(Fl_Menu_* o, void* v) {
- ((CTaxTreeTestDlg*)(o->parent()->user_data()))->cb_Exit_i(o,v);
- }
- inline void CTaxTreeTestDlg::cb_Show_i(Fl_Menu_*, void*) {
- x_OnShowRelatedSeqs();
- }
- void CTaxTreeTestDlg::cb_Show(Fl_Menu_* o, void* v) {
- ((CTaxTreeTestDlg*)(o->parent()->user_data()))->cb_Show_i(o,v);
- }
- Fl_Menu_Item CTaxTreeTestDlg::menu_[] = {
- {"File", 0, 0, 0, 64, 0, 0, 12, 56},
- {"Exit", 0, (Fl_Callback*)CTaxTreeTestDlg::cb_Exit, 0, 0, 0, 0, 12, 56},
- {0},
- {"View", 0, 0, 0, 64, 0, 0, 12, 56},
- {"Show Related Sequences", 0, (Fl_Callback*)CTaxTreeTestDlg::cb_Show, 0, 0, 0, 0, 12, 56},
- {0},
- {0}
- };
- inline void CTaxTreeTestDlg::cb_Database_i(Fl_Box*, void*) {
- x_OnSubmitQuery();
- }
- void CTaxTreeTestDlg::cb_Database(Fl_Box* o, void* v) {
- ((CTaxTreeTestDlg*)(o->parent()->parent()->user_data()))->cb_Database_i(o,v);
- }
- inline void CTaxTreeTestDlg::cb_m_Query_i(Fl_Input*, void*) {
- x_OnSubmitQuery();
- }
- void CTaxTreeTestDlg::cb_m_Query(Fl_Input* o, void* v) {
- ((CTaxTreeTestDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_Query_i(o,v);
- }
- Fl_Menu_Item CTaxTreeTestDlg::menu_m_DB[] = {
- {"Nucleotide", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Protein", 0, 0, 0, 0, 0, 0, 12, 56},
- {0}
- };
- Fl_Double_Window* CTaxTreeTestDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(370, 425);
- w = o;
- o->user_data((void*)(this));
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 370, 25);
- o->box(FL_FLAT_BOX);
- o->labelsize(12);
- o->menu(menu_);
- }
- { Fl_Group* o = new Fl_Group(5, 25, 360, 55);
- o->labelsize(12);
- { Fl_Box* o = new Fl_Box(5, 25, 70, 25, "Query");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = new Fl_Box(5, 55, 70, 25, "Database");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Database);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Group* o = new Fl_Group(85, 25, 280, 55);
- o->labelsize(12);
- { Fl_Input* o = m_Query = new Fl_Input(85, 25, 280, 25);
- o->labelsize(12);
- o->textsize(12);
- o->callback((Fl_Callback*)cb_m_Query);
- o->when(FL_WHEN_ENTER_KEY);
- }
- { Fl_Choice* o = m_DB = new Fl_Choice(85, 55, 280, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->menu(menu_m_DB);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- { CTaxTreeBrowser* o = m_Tree = new CTaxTreeBrowser(5, 85, 360, 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->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- Fl_Group::current()->resizable(o);
- }
- { CStatusBarEx* o = m_StatusBar = new CStatusBarEx(5, 400, 360, 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(10);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- o->when(FL_WHEN_RELEASE);
- o->end();
- }
- o->end();
- }
- return w;
- }