📄 theme_mediator.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: theme_mediator.hpp,v $ * PRODUCTION Revision 1000.0 2004/04/12 18:18:56 gouriano * PRODUCTION PRODUCTION: IMPORTED [CATCHUP_003] Dev-tree R1.4 * PRODUCTION * =========================================================================== */#ifndef GUI_DIALOGS_CONFIG___THEME_MEDIATOR__HPP#define GUI_DIALOGS_CONFIG___THEME_MEDIATOR__HPP/* $Id: theme_mediator.hpp,v 1000.0 2004/04/12 18:18:56 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 Smith * * File Description: * Configuration Panel Interpreter default implementation. * The is the default implementation of those methods of the IConfigMediator * interface that any such mediator should have in common. * * Derived classes with this interface & implementation mediate between IConfigPanel's * and classes with the CSettingsSet base class, in the context of a * CConfigDlg. */#include <gui/dialogs/config/config_mediator.hpp> // base classBEGIN_NCBI_SCOPEclass CThemeSet;class IThemeConfigPanelBase;class NCBI_GUIDIALOGS_EXPORT CThemeMediator : public CConfigMediator{public: CThemeMediator(CThemeSet & data, IThemeConfigPanelBase& panel); virtual ~CThemeMediator(); /// What should we title the dialog window? string GetWindowTitle(void) const; /// Load data into that panel void Load(const string& state); /// Load 'factory default' data into that panel. void LoadDefault(void); /// Save the panel's data. void Save(const string& state); /// Has the data represented by the panel's widgets been modified? bool Modified(void) const;protected: void x_Load(const CThemeSet & data, IThemeConfigPanelBase& widget_group); void x_LoadFirst(); // load data into the widgets the first time. // the following accessors are just to hide the ugly down casts. CThemeSet& x_GetMyDataSet(void) ; const CThemeSet& x_GetMyDataSet(void) const; IThemeConfigPanelBase& x_GetMyPanel(void);};END_NCBI_SCOPE/* * =========================================================================== * $Log: theme_mediator.hpp,v $ * Revision 1000.0 2004/04/12 18:18:56 gouriano * PRODUCTION: IMPORTED [CATCHUP_003] Dev-tree R1.4 * * Revision 1.4 2004/02/02 18:37:58 rsmith * Our panel will be a descedant of IThemeConfigPanelBase, not CThemeConfigPanelBase. * * Revision 1.3 2004/01/29 21:25:13 rsmith * Do things in terms of base class IThemeConfigPanelBase. * * Revision 1.2 2004/01/02 21:03:47 rsmith * add x_LoadFirst method. * * Revision 1.1 2003/12/30 14:08:59 dicuccio * Initial check-in - moved from gui/config * * Revision 1.1 2003/12/29 14:25:29 rsmith * initial checkin * * * =========================================================================== */#endif /* GUI_DIALOGS_CONFIG___THEME_MEDIATOR__HPP */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -