gl3d_demo_ui_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: gl3d_demo_ui_.cpp,v $
- * PRODUCTION Revision 1000.2 2004/06/01 20:52:24 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: gl3d_demo_ui_.cpp,v 1000.2 2004/06/01 20:52:24 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CGl3dDemoUI::cb__i(Fl_Double_Window*, void*) {
- x_OnFileExit();
- }
- void CGl3dDemoUI::cb_(Fl_Double_Window* o, void* v) {
- ((CGl3dDemoUI*)(o->user_data()))->cb__i(o,v);
- }
- inline void CGl3dDemoUI::cb_E_i(Fl_Menu_*, void*) {
- x_OnFileExit();
- }
- void CGl3dDemoUI::cb_E(Fl_Menu_* o, void* v) {
- ((CGl3dDemoUI*)(o->parent()->user_data()))->cb_E_i(o,v);
- }
- Fl_Menu_Item CGl3dDemoUI::menu_[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"E&xit", 0, (Fl_Callback*)CGl3dDemoUI::cb_E, 0, 0, 0, 0, 14, 56},
- {0},
- {0}
- };
- Fl_Double_Window* CGl3dDemoUI::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(530, 520);
- w = o;
- o->callback((Fl_Callback*)cb_, (void*)(this));
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 530, 25);
- o->box(FL_FLAT_BOX);
- o->menu(menu_);
- }
- { CGl3dWindow* o = m_Canvas = new CGl3dWindow(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;
- }