graph_demo_ui_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: graph_demo_ui_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:49:55 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: graph_demo_ui_.cpp,v 1000.1 2004/06/01 20:49:55 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CGraphDemoUI::cb_Load_i(Fl_Menu_*, void*) {
- x_OnLoadData();
- }
- void CGraphDemoUI::cb_Load(Fl_Menu_* o, void* v) {
- ((CGraphDemoUI*)(o->parent()->user_data()))->cb_Load_i(o,v);
- }
- inline void CGraphDemoUI::cb_E_i(Fl_Menu_*, void*) {
- x_OnExit();
- }
- void CGraphDemoUI::cb_E(Fl_Menu_* o, void* v) {
- ((CGraphDemoUI*)(o->parent()->user_data()))->cb_E_i(o,v);
- }
- Fl_Menu_Item CGraphDemoUI::menu_[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&Load Data", 0, (Fl_Callback*)CGraphDemoUI::cb_Load, 0, 0, 0, 0, 14, 56},
- {"E&xit", 0, (Fl_Callback*)CGraphDemoUI::cb_E, 0, 0, 0, 0, 14, 56},
- {0},
- {"&View", 0, 0, 0, 64, 0, 0, 14, 56},
- {"Menu Type", 0, 0, 0, 64, 0, 0, 14, 56},
- {"Bar", 0, 0, 0, 0, 0, 0, 14, 56},
- {"Scatter", 0, 0, 0, 0, 0, 0, 14, 56},
- {"Pie", 0, 0, 0, 0, 0, 0, 14, 56},
- {"Line", 0, 0, 0, 0, 0, 0, 14, 56},
- {"Area", 0, 0, 0, 0, 0, 0, 14, 56},
- {"Surface", 0, 0, 0, 0, 0, 0, 14, 56},
- {0},
- {0},
- {0}
- };
- Fl_Double_Window* CGraphDemoUI::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(575, 510);
- w = o;
- o->user_data((void*)(this));
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 575, 25);
- o->menu(menu_);
- }
- { CGraphWindow* o = m_Widget = new CGraphWindow(0, 25, 575, 485);
- o->box(FL_NO_BOX);
- o->color(FL_BACKGROUND_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);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- return w;
- }