registry_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: registry_.cpp,v $
- * PRODUCTION Revision 1000.2 2004/06/01 20:47:09 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: registry_.cpp,v 1000.2 2004/06/01 20:47:09 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CRegistryDlg::cb__i(Fl_Double_Window*, void*) {
- x_OnCancel();
- }
- void CRegistryDlg::cb_(Fl_Double_Window* o, void* v) {
- ((CRegistryDlg*)(o->user_data()))->cb__i(o,v);
- }
- Fl_Menu_Item CRegistryDlg::menu_[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&Close", 0, 0, 0, 0, 0, 0, 14, 56},
- {0},
- {"Edit", 0, 0, 0, 64, 0, 0, 14, 56},
- {"New &Key", 0, 0, 0, 0, 0, 0, 14, 56},
- {"New &Item", 0, 0, 0, 0, 0, 0, 14, 56},
- {0},
- {0}
- };
- inline void CRegistryDlg::cb_m_Tree_i(CTreeBrowser*, void*) {
- x_OnChooseKey();
- }
- void CRegistryDlg::cb_m_Tree(CTreeBrowser* o, void* v) {
- ((CRegistryDlg*)(o->parent()->parent()->user_data()))->cb_m_Tree_i(o,v);
- }
- inline void CRegistryDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CRegistryDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CRegistryDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- Fl_Double_Window* CRegistryDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(649, 363);
- w = o;
- o->callback((Fl_Callback*)cb_, (void*)(this));
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 645, 25);
- o->box(FL_NO_BOX);
- o->menu(menu_);
- }
- { Fl_Tile* o = new Fl_Tile(0, 25, 645, 295);
- { CTreeBrowser* o = m_Tree = new CTreeBrowser(5, 25, 210, 295);
- o->box(FL_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color((Fl_Color)4);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->callback((Fl_Callback*)cb_m_Tree);
- o->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- }
- { CRegistryItemPanel* o = m_List = new CRegistryItemPanel(215, 25, 430, 295);
- o->box(FL_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color((Fl_Color)4);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- o->end();
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(5, 335, 640, 25);
- { Fl_Group* o = new Fl_Group(5, 335, 560, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(565, 335, 80, 25, "OK");
- o->callback((Fl_Callback*)cb_OK);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 325, 640, 5);
- o->box(FL_THIN_DOWN_FRAME);
- o->end();
- }
- o->end();
- }
- return w;
- }