📄 theme_config_panel2.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: theme_config_panel2.hpp,v $ * PRODUCTION Revision 1000.1 2004/06/01 19:47:30 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.5 * PRODUCTION * =========================================================================== */#ifndef GUI_DIALOGS_CONFIG___THEME_CONFIG_PANEL2__HPP#define GUI_DIALOGS_CONFIG___THEME_CONFIG_PANEL2__HPP/* $Id: theme_config_panel2.hpp,v 1000.1 2004/06/01 19:47:30 gouriano Exp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors: Robert G. Smith * *//// @file theme_config_panel2.hpp///#include <corelib/ncbistd.hpp>// #include <gui/dialogs/config/config_panel.hpp>#include <gui/dialogs/config/theme_config_panel_base.hpp>#include <FL/Fl.H>#include <FL/Fl_Box.H>#include <FL/Fl_Group.H>#include <FL/Fl_Choice.H>#include <FL/Fl_Check_Button.H>//#include <gui/widgets/fl/combobox.hpp>/** @addtogroup Miscellaneous * * @{ */BEGIN_NCBI_SCOPE#define NCBI_THEME_PANEL_CHANGE_DIR_BTN 0class NCBI_GUIDIALOGS_EXPORT CThemeConfigPanel2 : public CThemeConfigPanelBase {public: enum ELayoutDirection { eLayoutDirection_Horizontal, eLayoutDirection_Vertical }; CThemeConfigPanel2(); virtual void MakeWidgets(); virtual void UpdateWidgets(); virtual Fl_Group* GetConfigPanel(); void SetLayoutDirection(ELayoutDirection); ELayoutDirection GetLayoutDirection(); private: typedef map<string, Fl_Choice*> TItemChoiceMap; Fl_Group* x_MakeWidgets(); void x_AddChoice(const string& item, Fl_Choice* widget); Fl_Choice* x_GetChoice(const string& item) const; string x_GetItem(const Fl_Choice* widget) const; void x_SetStyles(const string& item); TItemChoiceMap m_ChoiceWidgets; Fl_Group * m_ConfigPanel; Fl_Group * m_Preview; ELayoutDirection m_LayoutDirection; void x_StyleChosen(Fl_Choice * w); static void cb_StyleChosen(Fl_Choice* o, void* v); #if NCBI_THEME_PANEL_CHANGE_DIR_BTN Fl_Button * m_DirectionBtn; void x_SwitchDirections(); static void cb_SwitchDirections(Fl_Choice* o, void* v);#endif };END_NCBI_SCOPE/* @} *//* * =========================================================================== * $Log: theme_config_panel2.hpp,v $ * Revision 1000.1 2004/06/01 19:47:30 gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.5 * * Revision 1.5 2004/05/20 14:00:10 dicuccio * Added export specifiers * * Revision 1.4 2004/02/20 16:16:49 rsmith * Add and disable a button to dynamically switch the widget directions. * Not currently used since the dialog/mediator architecture makes it very hard for * this to work right with the dialog. * * Revision 1.3 2004/02/02 19:17:04 rsmith * Get rid of obsolete include and member. * * Revision 1.2 2004/02/02 18:35:23 rsmith * label virtual methods as such. * * Revision 1.1 2004/01/29 21:18:56 rsmith * initial checkin * * =========================================================================== */#endif /* GUI_DIALOGS_CONFIG___THEME_CONFIG_PANEL2__HPP */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -