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

Go to the SVN repository for this file.

1 /* $Id: existingtextdlg.hpp 34511 2016-01-19 16:21:35Z 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 #ifndef _EXISTINGTEXTDLG_H_
29 #define _EXISTINGTEXTDLG_H_
30 
31 #include <corelib/ncbistd.hpp>
33 #include <wx/radiobut.h>
34 #include <wx/sizer.h>
35 #include <wx/dialog.h>
36 
37 /*!
38  * Includes
39  */
40 
41 ////@begin includes
42 ////@end includes
43 
44 /*!
45  * Forward declarations
46  */
47 
48 ////@begin forward declarations
49 class wxBoxSizer;
50 ////@end forward declarations
51 
53 
54 /*!
55  * Control identifiers
56  */
57 
58 ////@begin control identifiers
59 #define ID_CEXISTINGTEXTDLG 10131
60 #define ID_APPEND_BTN 10132
61 #define ID_PREFIX_BTN 10133
62 #define ID_IGNORE_BTN 10134
63 #define ID_ADD_QUAL_BTN 10260
64 #define ID_SEMICOLON_BTN 10135
65 #define ID_SPACE_BTN 10136
66 #define ID_COLON_BTN 10137
67 #define ID_COMMA_BTN 10138
68 #define ID_NODELIMITER_BTN 10139
69 #define SYMBOL_CEXISTINGTEXTDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
70 #define SYMBOL_CEXISTINGTEXTDLG_TITLE _("How to Add New Text")
71 #define SYMBOL_CEXISTINGTEXTDLG_IDNAME ID_CEXISTINGTEXTDLG
72 #define SYMBOL_CEXISTINGTEXTDLG_SIZE wxSize(400, 300)
73 #define SYMBOL_CEXISTINGTEXTDLG_POSITION wxDefaultPosition
74 ////@end control identifiers
75 
76 
77 /*!
78  * CExistingTextDlg class declaration
79  */
80 
81 class CExistingTextDlg: public wxDialog
82 {
83  DECLARE_DYNAMIC_CLASS( CExistingTextDlg )
84  DECLARE_EVENT_TABLE()
85 
86 public:
87  /// Constructors
89  CExistingTextDlg( wxWindow* parent, wxWindowID id = SYMBOL_CEXISTINGTEXTDLG_IDNAME, const wxString& caption = SYMBOL_CEXISTINGTEXTDLG_TITLE, const wxPoint& pos = SYMBOL_CEXISTINGTEXTDLG_POSITION, const wxSize& size = SYMBOL_CEXISTINGTEXTDLG_SIZE, long style = SYMBOL_CEXISTINGTEXTDLG_STYLE );
90 
91  /// Creation
92  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CEXISTINGTEXTDLG_IDNAME, const wxString& caption = SYMBOL_CEXISTINGTEXTDLG_TITLE, const wxPoint& pos = SYMBOL_CEXISTINGTEXTDLG_POSITION, const wxSize& size = SYMBOL_CEXISTINGTEXTDLG_SIZE, long style = SYMBOL_CEXISTINGTEXTDLG_STYLE );
93 
94  /// Destructor
96 
97  /// Initialises member variables
98  void Init();
99 
100  /// Creates the controls and sizers
101  void CreateControls();
102 
103 ////@begin CExistingTextDlg event handler declarations
104 
105  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_APPEND_BTN
106  void OnAppendBtnSelected( wxCommandEvent& event );
107 
108  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_PREFIX_BTN
109  void OnPrefixBtnSelected( wxCommandEvent& event );
110 
111  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_IGNORE_BTN
112  void OnIgnoreBtnSelected( wxCommandEvent& event );
113 
114  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ADD_QUAL_BTN
115  void OnAddQualBtnSelected( wxCommandEvent& event );
116 
117 ////@end CExistingTextDlg event handler declarations
118 
119 ////@begin CExistingTextDlg 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 CExistingTextDlg member function declarations
127 
128  /// Should we show tooltips?
129  static bool ShowToolTips();
130 
131 ////@begin CExistingTextDlg member variables
132  wxBoxSizer* m_Position;
133  wxRadioButton* m_Append;
134  wxRadioButton* m_Prefix;
135  wxRadioButton* m_LeaveOld;
136  wxRadioButton* m_AddQual;
137  wxBoxSizer* m_Delimiters;
138  wxRadioButton* m_Semicolon;
139  wxRadioButton* m_Space;
140  wxRadioButton* m_Colon;
141  wxRadioButton* m_Comma;
142  wxRadioButton* m_NoDelimiter;
143 ////@end CExistingTextDlg member variables
144 
146  void AllowAdditionalQual(bool val);
147 
148 private:
149  void x_EnableDelimiters(bool val);
150 };
151 
153 
154 #endif
155  // _EXISTINGTEXTDLG_H_
wxRadioButton * m_LeaveOld
wxRadioButton * m_Comma
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxRadioButton * m_Space
~CExistingTextDlg()
Destructor.
void x_EnableDelimiters(bool val)
wxRadioButton * m_Prefix
void OnIgnoreBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_IGNORE_BTN
wxBoxSizer * m_Position
void OnPrefixBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_PREFIX_BTN
wxBoxSizer * m_Delimiters
static bool ShowToolTips()
Should we show tooltips?
objects::edit::EExistingText GetExistingTextHandler()
void OnAppendBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_APPEND_BTN
wxRadioButton * m_AddQual
bool Create(wxWindow *parent, wxWindowID id=10131, const wxString &caption=_("How to Add New Text"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxRadioButton * m_Colon
wxRadioButton * m_NoDelimiter
CExistingTextDlg()
Constructors.
void OnAddQualBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ADD_QUAL_BTN
wxRadioButton * m_Append
void AllowAdditionalQual(bool val)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxRadioButton * m_Semicolon
void Init()
Initialises member variables.
void CreateControls()
Creates the controls and sizers.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CEXISTINGTEXTDLG_POSITION
#define SYMBOL_CEXISTINGTEXTDLG_STYLE
#define SYMBOL_CEXISTINGTEXTDLG_TITLE
#define SYMBOL_CEXISTINGTEXTDLG_IDNAME
#define SYMBOL_CEXISTINGTEXTDLG_SIZE
#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
EExistingText
Modified on Mon Apr 22 04:05:10 2024 by modify_doxy.py rev. 669887