phylo_tree_demo_ui_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: phylo_tree_demo_ui_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:12:09 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: phylo_tree_demo_ui_.cpp,v 1000.1 2004/06/01 21:12:09 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CPhyloTreeDemoUI::cb_Close_i(Fl_Button*, void*) {
- x_QuitApp();
- }
- void CPhyloTreeDemoUI::cb_Close(Fl_Button* o, void* v) {
- ((CPhyloTreeDemoUI*)(o->parent()->user_data()))->cb_Close_i(o,v);
- }
- Fl_Double_Window* CPhyloTreeDemoUI::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = m_MainWindow = new Fl_Double_Window(658, 502, "Phylogenetic Tree Demo");
- w = o;
- o->user_data((void*)(this));
- { CPhyloTreeWidget* o = m_AlnWidget = new CPhyloTreeWidget(15, 19, 625, 426);
- o->box(FL_DOWN_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- m_AlnWidget->Create();
- }
- { Fl_Button* o = new Fl_Button(540, 466, 95, 25, "Close");
- o->tooltip("Click to close the window");
- o->callback((Fl_Callback*)cb_Close);
- }
- { Fl_Box* o = new Fl_Box(15, 450, 625, 5);
- o->box(FL_THIN_DOWN_FRAME);
- o->labeltype(FL_NO_LABEL);
- }
- { Fl_Choice* o = m_Renderer = new Fl_Choice(136, 466, 200, 25, "Select Draph Type");
- o->down_box(FL_BORDER_BOX);
- }
- o->end();
- o->resizable(o);
- }
- return w;
- }