spline_demo_ui_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: spline_demo_ui_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:52:39 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: spline_demo_ui_.cpp,v 1000.1 2004/06/01 20:52:39 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CSplineDemoUI::cb_Spline_i(Fl_Double_Window*, void*) {
- x_OnFileExit();
- }
- void CSplineDemoUI::cb_Spline(Fl_Double_Window* o, void* v) {
- ((CSplineDemoUI*)(o->user_data()))->cb_Spline_i(o,v);
- }
- inline void CSplineDemoUI::cb_E_i(Fl_Menu_*, void*) {
- x_OnFileExit();
- }
- void CSplineDemoUI::cb_E(Fl_Menu_* o, void* v) {
- ((CSplineDemoUI*)(o->parent()->user_data()))->cb_E_i(o,v);
- }
- inline void CSplineDemoUI::cb_Lines_i(Fl_Menu_*, void*) {
- x_OnToggleLines();
- }
- void CSplineDemoUI::cb_Lines(Fl_Menu_* o, void* v) {
- ((CSplineDemoUI*)(o->parent()->user_data()))->cb_Lines_i(o,v);
- }
- inline void CSplineDemoUI::cb_Points_i(Fl_Menu_*, void*) {
- x_OnTogglePoints();
- }
- void CSplineDemoUI::cb_Points(Fl_Menu_* o, void* v) {
- ((CSplineDemoUI*)(o->parent()->user_data()))->cb_Points_i(o,v);
- }
- inline void CSplineDemoUI::cb_Control_i(Fl_Menu_*, void*) {
- x_OnToggleControlPoints();
- }
- void CSplineDemoUI::cb_Control(Fl_Menu_* o, void* v) {
- ((CSplineDemoUI*)(o->parent()->user_data()))->cb_Control_i(o,v);
- }
- Fl_Menu_Item CSplineDemoUI::menu_[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"E&xit", 0, (Fl_Callback*)CSplineDemoUI::cb_E, 0, 0, 0, 0, 14, 56},
- {0},
- {"Rendering", 0, 0, 0, 64, 0, 0, 14, 56},
- {"Lines", 0, (Fl_Callback*)CSplineDemoUI::cb_Lines, 0, 2, 0, 0, 14, 56},
- {"Points", 0, (Fl_Callback*)CSplineDemoUI::cb_Points, 0, 2, 0, 0, 14, 56},
- {"Control Points", 0, (Fl_Callback*)CSplineDemoUI::cb_Control, 0, 2, 0, 0, 14, 56},
- {0},
- {0}
- };
- Fl_Double_Window* CSplineDemoUI::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(530, 520, "Spline Demo");
- w = o;
- o->callback((Fl_Callback*)cb_Spline, (void*)(this));
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 530, 25);
- o->box(FL_FLAT_BOX);
- o->menu(menu_);
- }
- { CSplineWindow* o = m_Canvas = new CSplineWindow(0, 25, 530, 495);
- o->box(FL_THIN_DOWN_FRAME);
- 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;
- }