NCBI C++ ToolKit
autodef_org_panel.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: autodef_org_panel.hpp 34927 2016-03-02 20:22:56Z asztalos $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Colleen Bollin
27  */
28 // Generated by DialogBlocks (unregistered), 21/06/2013 14:02:01
29 
30 #ifndef _AUTODEF_ORG_PANEL_H_
31 #define _AUTODEF_ORG_PANEL_H_
32 
33 #include <corelib/ncbistd.hpp>
34 
37 
38 /*!
39  * Includes
40  */
41 
42 ////@begin includes
43 ////@end includes
44 
45 #include <wx/sizer.h>
46 #include <wx/panel.h>
47 #include <wx/choice.h>
48 #include <wx/stattext.h>
49 #include <wx/checkbox.h>
50 #include <wx/radiobox.h>
51 #include <wx/statbox.h>
52 
53 /*!
54  * Forward declarations
55  */
56 
57 ////@begin forward declarations
58 class wxFlexGridSizer;
59 class wxBoxSizer;
60 ////@end forward declarations
61 
63 
64 /*!
65  * Control identifiers
66  */
67 
68 ////@begin control identifiers
69 #define ID_CAUTODEFORGPANEL 10204
70 #define ID_MOD_LIST_TYPE 10190
71 #define ID_AD_MODLIMIT 10191
72 #define ID_AD_USE_LABELS 10199
73 #define ID_AD_LEAVE_PARENTHETICAL 10192
74 #define ID_AD_INCLUDE_COUNTRY_TEXT 10193
75 #define ID_AD_KEEP_AFTER_SEMICOLON 10194
76 #define ID_AD_DO_NOT_APPLY_TO_SP 10195
77 #define ID_AD_DO_NOT_APPLY_TO_CF 10196
78 #define ID_AD_DO_NOT_APPLY_TO_AFF 10196
79 #define ID_AD_DO_NOT_APPLY_TO_NR 10197
80 #define ID_AD_NO_MATCH_TAXNAME 10198
81 #define SYMBOL_CAUTODEFORGPANEL_STYLE wxTAB_TRAVERSAL
82 #define SYMBOL_CAUTODEFORGPANEL_TITLE _("AutodefOrgPanel")
83 #define SYMBOL_CAUTODEFORGPANEL_IDNAME ID_CAUTODEFORGPANEL
84 #define SYMBOL_CAUTODEFORGPANEL_SIZE wxSize(400, 300)
85 #define SYMBOL_CAUTODEFORGPANEL_POSITION wxDefaultPosition
86 ////@end control identifiers
87 
88 
89 /*!
90  * CAutodefOrgPanel class declaration
91  */
92 
93 class CAutodefOrgPanel: public wxPanel
94 {
95  DECLARE_DYNAMIC_CLASS( CAutodefOrgPanel )
96  DECLARE_EVENT_TABLE()
97 
98 public:
99  /// Constructors
101  CAutodefOrgPanel( wxWindow* parent, wxWindowID id = SYMBOL_CAUTODEFORGPANEL_IDNAME, const wxPoint& pos = SYMBOL_CAUTODEFORGPANEL_POSITION, const wxSize& size = SYMBOL_CAUTODEFORGPANEL_SIZE, long style = SYMBOL_CAUTODEFORGPANEL_STYLE );
102 
103  /// Creation
104  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CAUTODEFORGPANEL_IDNAME, const wxPoint& pos = SYMBOL_CAUTODEFORGPANEL_POSITION, const wxSize& size = SYMBOL_CAUTODEFORGPANEL_SIZE, long style = SYMBOL_CAUTODEFORGPANEL_STYLE );
105 
106  /// Destructor
108 
109  /// Initialises member variables
110  void Init();
111 
112  /// Creates the controls and sizers
113  void CreateControls();
114 
115 ////@begin CAutodefOrgPanel event handler declarations
116 
117 ////@end CAutodefOrgPanel event handler declarations
118 
119 ////@begin CAutodefOrgPanel member function declarations
120 
121  /// Retrieves bitmap resources
122  wxBitmap GetBitmapResource( const wxString& name );
123 
124  /// Retrieves icon resources
125  wxIcon GetIconResource( const wxString& name );
126 ////@end CAutodefOrgPanel member function declarations
127 
128  /// Should we show tooltips?
129  static bool ShowToolTips();
130 
131 ////@begin CAutodefOrgPanel member variables
132  wxChoice* m_ModListType;
133  wxStaticText* m_MaxMods;
134  wxChoice* m_MaxModifiers;
135  wxCheckBox* m_UseLabels;
137  wxFlexGridSizer* m_ModifierSizer;
138  wxFlexGridSizer* m_OtherOptionsGrid;
139  wxCheckBox* m_LeaveParen;
140  wxCheckBox* m_IncludeCountry;
141  wxCheckBox* m_KeepAfterSemicolon;
142  wxCheckBox* m_NoSp;
143  wxCheckBox* m_NoCf;
144  wxCheckBox* m_NoAff;
145  wxCheckBox* m_NoNr;
146  wxCheckBox* m_NoMatchTaxname;
147  wxBoxSizer* m_HIVRuleSizer;
148 ////@end CAutodefOrgPanel member variables
149 
150  void SetParams(SAutodefParams* params);
151  void PopulateParams(SAutodefParams& params);
152 
153  void Clear();
154 
155 private:
156  vector<wxCheckBox *> m_ModifierButtons;
157  wxRadioBox* m_HIVRule;
158 
159  // number of columns of m_ModifierSizer
161 
162  void x_AddHIVRule();
163  // returns the number of listed modifiers;
164  int x_ListModifiers(SAutodefParams& params);
165 };
166 
168 
169 #endif
170  // _AUTODEF_ORG_PANEL_H_
#define SYMBOL_CAUTODEFORGPANEL_STYLE
#define SYMBOL_CAUTODEFORGPANEL_IDNAME
#define SYMBOL_CAUTODEFORGPANEL_SIZE
#define SYMBOL_CAUTODEFORGPANEL_POSITION
vector< wxCheckBox * > m_ModifierButtons
wxBoxSizer * m_HIVRuleSizer
wxCheckBox * m_IncludeCountry
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CAutodefOrgPanel()
Destructor.
CAutodefOrgPanel()
Constructors.
void SetParams(SAutodefParams *params)
wxStaticText * m_MaxMods
int x_ListModifiers(SAutodefParams &params)
wxFlexGridSizer * m_OtherOptionsGrid
wxCheckBox * m_UseLabels
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10204, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
wxCheckBox * m_LeaveParen
wxStaticBox * m_AvailableModifiersSizer
wxCheckBox * m_NoMatchTaxname
static bool ShowToolTips()
Should we show tooltips?
wxFlexGridSizer * m_ModifierSizer
void PopulateParams(SAutodefParams &params)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxCheckBox * m_KeepAfterSemicolon
void Init()
Initialises member variables.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Sat Jul 13 13:37:16 2024 by modify_doxy.py rev. 669887