📄 style_dialog.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: style_dialog.hpp,v $ * PRODUCTION Revision 1000.2 2004/06/01 18:29:41 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.13 * PRODUCTION * =========================================================================== *//* $Id: style_dialog.hpp,v 1000.2 2004/06/01 18:29:41 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: Paul Thiessen** File Description:* dialog for setting styles** ===========================================================================*/#ifndef CN3D_STYLE_DIALOG__HPP#define CN3D_STYLE_DIALOG__HPP#include <corelib/ncbistd.hpp>#include <corelib/ncbistl.hpp>#ifdef __WXMSW__#include <windows.h>#include <wx/msw/winundef.h>#endif#include <wx/wx.h>#include <map>#include <string>#include "style_manager.hpp"#include "cn3d_tools.hpp"BEGIN_SCOPE(Cn3D)class StructureSet;class FloatingPointSpinCtrl;class StyleDialog : public wxDialog{public: StyleDialog(wxWindow* parent, StyleSettings *settingsToEdit, const StructureSet *set); ~StyleDialog(void); // set the StyleSettings from values in the panel; returns true if all values are valid bool GetValues(StyleSettings *settings); // set the controls according to the given StyleSettings bool SetControls(const StyleSettings& settings);private: StyleSettings *editedSettings; const StyleSettings originalSettings; const StructureSet *structureSet; bool changedSinceApply, changedEver; FloatingPointSpinCtrl *fpSpaceFill, *fpBallRadius, *fpStickRadius, *fpTubeRadius, *fpTubeWormRadius, *fpHelixRadius, *fpStrandWidth, *fpStrandThickness; bool HandleColorButton(int bID); static TypeStringAssociator < StyleSettings::eBackboneType > BackboneTypeStrings; static TypeStringAssociator < StyleSettings::eDrawingStyle > DrawingStyleStrings; static TypeStringAssociator < StyleSettings::eColorScheme > ColorSchemeStrings; static TypeStringAssociator < StyleSettings::eLabelType > LabelTypeStrings; static TypeStringAssociator < StyleSettings::eNumberType > NumberTypeStrings; static void SetupStyleStrings(void); bool GetBackboneStyle(StyleSettings::BackboneStyle *bbStyle, int showID, int renderID, int colorID, int userID); bool SetBackboneStyle(const StyleSettings::BackboneStyle& bbStyle, int showID, int renderID, int colorID, int userID); bool GetGeneralStyle(StyleSettings::GeneralStyle *gStyle, int showID, int renderID, int colorID, int userID); bool SetGeneralStyle(const StyleSettings::GeneralStyle& gStyle, int showID, int renderID, int colorID, int userID); bool GetLabelStyle(StyleSettings::LabelStyle *lStyle, int spacingID, int typeID, int numberingID, int terminiID, int whiteID); bool SetLabelStyle(const StyleSettings::LabelStyle& lStyle, int spacingID, int typeID, int numberingID, int terminiID, int whiteID); void OnCloseWindow(wxCloseEvent& event); void OnButton(wxCommandEvent& event); void OnChange(wxCommandEvent& event); DECLARE_EVENT_TABLE()};END_SCOPE(Cn3D)#endif // CN3D_STYLE_DIALOG__HPP/** ---------------------------------------------------------------------------* $Log: style_dialog.hpp,v $* Revision 1000.2 2004/06/01 18:29:41 gouriano* PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.13** Revision 1.13 2004/05/28 21:01:45 thiessen* namespace/typename fixes for GCC 3.4** Revision 1.12 2004/02/19 17:05:18 thiessen* remove cn3d/ from include paths; add pragma to disable annoying msvc warning** Revision 1.11 2003/02/03 19:20:07 thiessen* format changes: move CVS Log to bottom of file, remove std:: from .cpp files, and use new diagnostic macros** Revision 1.10 2002/08/15 22:13:17 thiessen* update for wx2.3.2+ only; add structure pick dialog; fix MultitextDialog bug** Revision 1.9 2002/05/17 19:09:27 thiessen* undo spin button event workaround for wxmac** Revision 1.8 2002/05/16 18:46:10 thiessen* Mac fixes** Revision 1.7 2002/04/27 16:32:15 thiessen* fix small leaks/bugs found by BoundsChecker** Revision 1.6 2002/04/21 12:21:23 thiessen* minor fixes for AIX** Revision 1.5 2001/08/21 01:10:13 thiessen* add labeling** Revision 1.4 2001/08/06 20:22:48 thiessen* add preferences dialog ; make sure OnCloseWindow get wxCloseEvent** Revision 1.3 2001/06/08 14:46:47 thiessen* fully functional (modal) render settings panel** Revision 1.2 2001/06/07 19:04:50 thiessen* functional (although incomplete) render settings panel** Revision 1.1 2001/05/31 18:46:28 thiessen* add preliminary style dialog; remove LIST_TYPE; add thread single and delete all; misc tweaks**/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -