testtl_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: testtl_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:14:37 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.5
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: testtl_.cpp,v 1000.1 2004/06/01 21:14:37 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CTestTL::cb_E_i(Fl_Menu_*, void*) {
- x_OnExit();
- }
- void CTestTL::cb_E(Fl_Menu_* o, void* v) {
- ((CTestTL*)(o->parent()->user_data()))->cb_E_i(o,v);
- }
- inline void CTestTL::cb_New_i(Fl_Menu_*, void*) {
- x_OnNewChild();
- }
- void CTestTL::cb_New(Fl_Menu_* o, void* v) {
- ((CTestTL*)(o->parent()->user_data()))->cb_New_i(o,v);
- }
- inline void CTestTL::cb_Delete_i(Fl_Menu_*, void*) {
- x_OnDeleteCurrent();
- }
- void CTestTL::cb_Delete(Fl_Menu_* o, void* v) {
- ((CTestTL*)(o->parent()->user_data()))->cb_Delete_i(o,v);
- }
- inline void CTestTL::cb_Cascade_i(Fl_Menu_*, void*) {
- x_OnCascade();
- }
- void CTestTL::cb_Cascade(Fl_Menu_* o, void* v) {
- ((CTestTL*)(o->parent()->user_data()))->cb_Cascade_i(o,v);
- }
- inline void CTestTL::cb_Tile_i(Fl_Menu_*, void*) {
- x_OnTile();
- }
- void CTestTL::cb_Tile(Fl_Menu_* o, void* v) {
- ((CTestTL*)(o->parent()->user_data()))->cb_Tile_i(o,v);
- }
- Fl_Menu_Item CTestTL::menu_[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"E&xit", 0, (Fl_Callback*)CTestTL::cb_E, 0, 0, 0, 0, 14, 56},
- {0},
- {"&Children", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&New Child", 0, (Fl_Callback*)CTestTL::cb_New, 0, 0, 0, 0, 14, 56},
- {"&Delete Current", 0, (Fl_Callback*)CTestTL::cb_Delete, 0, 128, 0, 0, 14, 56},
- {"&Cascade", 0, (Fl_Callback*)CTestTL::cb_Cascade, 0, 0, 0, 0, 14, 56},
- {"&Tile", 0, (Fl_Callback*)CTestTL::cb_Tile, 0, 0, 0, 0, 14, 56},
- {0},
- {0}
- };
- CTestTL::CTestTL() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(800, 600, "TopLevel Test");
- w = o;
- o->user_data((void*)(this));
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 1024, 25);
- o->menu(menu_);
- }
- { CTopLevel* o = m_TopLevel = new CTopLevel(0, 25, 800, 575);
- o->box(FL_DOWN_BOX);
- o->color((Fl_Color)41);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(65);
- o->when(FL_WHEN_RELEASE);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- m_MainWin.reset(w);
- x_PostConstruction();
- }