test_treebrowser_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: test_treebrowser_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:10:10 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- #include <ncbi_pch.hpp>
- #include "test_treebrowser_.hpp"
- /* $Id: test_treebrowser_.cpp,v 1000.1 2004/06/01 21:10:10 gouriano Exp $ */
- inline void CTreeBrowserTestUI::cb_Add_i(Fl_Button*, void*) {
- x_OnAddLeaf();
- }
- void CTreeBrowserTestUI::cb_Add(Fl_Button* o, void* v) {
- ((CTreeBrowserTestUI*)(o->parent()->parent()->user_data()))->cb_Add_i(o,v);
- }
- inline void CTreeBrowserTestUI::cb_Add1_i(Fl_Button*, void*) {
- x_OnAddSub();
- }
- void CTreeBrowserTestUI::cb_Add1(Fl_Button* o, void* v) {
- ((CTreeBrowserTestUI*)(o->parent()->parent()->user_data()))->cb_Add1_i(o,v);
- }
- inline void CTreeBrowserTestUI::cb_Add2_i(Fl_Button*, void*) {
- x_OnAddLeaf();
- }
- void CTreeBrowserTestUI::cb_Add2(Fl_Button* o, void* v) {
- ((CTreeBrowserTestUI*)(o->parent()->parent()->user_data()))->cb_Add2_i(o,v);
- }
- Fl_Double_Window* CTreeBrowserTestUI::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(370, 355);
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(5, 5, 360, 315);
- o->box(FL_DOWN_FRAME);
- { CTreeBrowser* o = m_Tree = new CTreeBrowser(7, 7, 356, 311);
- o->box(FL_NO_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color((Fl_Color)4);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(8);
- o->labelsize(20);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(5, 325, 360, 25);
- { Fl_Button* o = new Fl_Button(115, 325, 80, 25, "Add Leaf");
- o->callback((Fl_Callback*)cb_Add);
- }
- { Fl_Button* o = new Fl_Button(200, 325, 80, 25, "Add Sub");
- o->callback((Fl_Callback*)cb_Add1);
- }
- { Fl_Button* o = new Fl_Button(285, 325, 80, 25, "Add");
- o->callback((Fl_Callback*)cb_Add2);
- }
- { Fl_Group* o = new Fl_Group(5, 325, 110, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }