edit_styles_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: edit_styles_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:45:42 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.5
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: edit_styles_dlg_.cpp,v 1000.1 2004/06/01 20:45:42 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CEditStylesDlg::cb_m_StyleBrowser_i(Fl_Browser*, void*) {
- x_UpdateSetBtns();
- }
- void CEditStylesDlg::cb_m_StyleBrowser(Fl_Browser* o, void* v) {
- ((CEditStylesDlg*)(o->parent()->user_data()))->cb_m_StyleBrowser_i(o,v);
- }
- inline void CEditStylesDlg::cb_Add_i(Fl_Button*, void*) {
- x_OnAdd();
- }
- void CEditStylesDlg::cb_Add(Fl_Button* o, void* v) {
- ((CEditStylesDlg*)(o->parent()->parent()->user_data()))->cb_Add_i(o,v);
- }
- inline void CEditStylesDlg::cb_Copy_i(Fl_Button*, void*) {
- x_OnCopy();
- }
- void CEditStylesDlg::cb_Copy(Fl_Button* o, void* v) {
- ((CEditStylesDlg*)(o->parent()->parent()->user_data()))->cb_Copy_i(o,v);
- }
- inline void CEditStylesDlg::cb_m_RenameBtn_i(Fl_Button*, void*) {
- x_OnRename();
- }
- void CEditStylesDlg::cb_m_RenameBtn(Fl_Button* o, void* v) {
- ((CEditStylesDlg*)(o->parent()->parent()->user_data()))->cb_m_RenameBtn_i(o,v);
- }
- inline void CEditStylesDlg::cb_m_DeleteBtn_i(Fl_Button*, void*) {
- x_OnDelete();
- }
- void CEditStylesDlg::cb_m_DeleteBtn(Fl_Button* o, void* v) {
- ((CEditStylesDlg*)(o->parent()->parent()->user_data()))->cb_m_DeleteBtn_i(o,v);
- }
- inline void CEditStylesDlg::cb_Done_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CEditStylesDlg::cb_Done(Fl_Return_Button* o, void* v) {
- ((CEditStylesDlg*)(o->parent()->parent()->user_data()))->cb_Done_i(o,v);
- }
- Fl_Window* CEditStylesDlg::x_CreateWindow() {
- Fl_Window* w;
- { Fl_Window* o = new Fl_Window(245, 310, "Preferences");
- w = o;
- o->user_data((void*)(this));
- new Fl_Box(10, 5, 225, 25, "Saved Styles");
- { Fl_Browser* o = m_StyleBrowser = new Fl_Browser(10, 35, 150, 265);
- o->type(2);
- o->callback((Fl_Callback*)cb_m_StyleBrowser);
- o->align(FL_ALIGN_TOP);
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = m_SetBtnGroup = new Fl_Group(165, 35, 70, 265, "set buttons");
- o->labeltype(FL_NO_LABEL);
- { Fl_Button* o = new Fl_Button(165, 35, 70, 25, "Add");
- o->callback((Fl_Callback*)cb_Add);
- }
- { Fl_Button* o = new Fl_Button(165, 65, 70, 25, "Copy");
- o->callback((Fl_Callback*)cb_Copy);
- }
- { Fl_Button* o = m_RenameBtn = new Fl_Button(165, 95, 70, 25, "Rename");
- o->callback((Fl_Callback*)cb_m_RenameBtn);
- }
- { Fl_Button* o = m_DeleteBtn = new Fl_Button(165, 125, 70, 25, "Delete");
- o->callback((Fl_Callback*)cb_m_DeleteBtn);
- }
- { Fl_Box* o = new Fl_Box(165, 155, 70, 79, "resizable");
- o->labeltype(FL_NO_LABEL);
- o->hide();
- o->deactivate();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(165, 275, 70, 25, "Done");
- o->callback((Fl_Callback*)cb_Done);
- }
- o->end();
- }
- o->set_modal();
- o->end();
- }
- return w;
- }