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

Go to the SVN repository for this file.

1 /* $Id: select_features.hpp 39649 2017-10-24 15:22:12Z 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: Igor Filippov
27  */
28 #ifndef _SELECT_FEATURES_H_
29 #define _SELECT_FEATURES_H_
30 
31 #include <corelib/ncbistd.hpp>
38 #include <wx/dialog.h>
39 #include <wx/sizer.h>
40 #include <wx/button.h>
41 
42 /*!
43  * Includes
44  */
45 
46 ////@begin includes
47 ////@end includes
48 
49 /*!
50  * Forward declarations
51  */
52 
53 ////@begin forward declarations
54 ////@end forward declarations
55 
57 
58 /*!
59  * Control identifiers
60  */
61 
62 ////@begin control identifiers
63 #define ID_CSELECTFEATURES 10409
64 #define ID_SEL_FEAT_ACCEPT 10411
65 #define ID_SEL_FEAT_CANCEL 10412
66 #define SYMBOL_CSELECTFEATURES_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
67 #define SYMBOL_CSELECTFEATURES_TITLE _("Select Features")
68 #define SYMBOL_CSELECTFEATURES_IDNAME ID_CSELECTFEATURES
69 #define SYMBOL_CSELECTFEATURES_SIZE wxSize(400, 300)
70 #define SYMBOL_CSELECTFEATURES_POSITION wxDefaultPosition
71 ////@end control identifiers
72 
73 
74 /*!
75  * CSelectFeatures class declaration
76  */
77 
79 {
80  DECLARE_DYNAMIC_CLASS( CSelectFeatures )
81  DECLARE_EVENT_TABLE()
82 
83 public:
84  /// Constructors
86  CSelectFeatures( wxWindow* parent, IWorkbench* wb, wxWindowID id = SYMBOL_CSELECTFEATURES_IDNAME, const wxString& caption = SYMBOL_CSELECTFEATURES_TITLE, const wxPoint& pos = SYMBOL_CSELECTFEATURES_POSITION, const wxSize& size = SYMBOL_CSELECTFEATURES_SIZE, long style = SYMBOL_CSELECTFEATURES_STYLE );
87 
88  /// Creation
89  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSELECTFEATURES_IDNAME, const wxString& caption = SYMBOL_CSELECTFEATURES_TITLE, const wxPoint& pos = SYMBOL_CSELECTFEATURES_POSITION, const wxSize& size = SYMBOL_CSELECTFEATURES_SIZE, long style = SYMBOL_CSELECTFEATURES_STYLE );
90 
91  /// Destructor
93 
94  /// Initialises member variables
95  void Init();
96 
97  /// Creates the controls and sizers
98  void CreateControls();
99 
100 ////@begin CSelectFeatures event handler declarations
101 
102  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_ACCEPT
103  void OnAccept( wxCommandEvent& event );
104 
105 
106  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_CANCEL
107  void OnCancel( wxCommandEvent& event );
108 
109 ////@end CSelectFeatures event handler declarations
110 
111 ////@begin CSelectFeatures member function declarations
112 
113  /// Retrieves bitmap resources
114  wxBitmap GetBitmapResource( const wxString& name );
115 
116  /// Retrieves icon resources
117  wxIcon GetIconResource( const wxString& name );
118 ////@end CSelectFeatures member function declarations
119 
120  /// Should we show tooltips?
121  static bool ShowToolTips();
122  void ProcessUpdateFeatEvent( wxCommandEvent& event );
123 
124 private:
125  void UpdateChildrenFeaturePanels( wxSizer* sizer );
132 };
133 
135 
136 #endif
137  // _SELECT_FEATURES_H_
void OnCancel(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_CANCEL
void ProcessUpdateFeatEvent(wxCommandEvent &event)
CSeq_entry_Handle m_TopSeqEntry
void OnAccept(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEL_TARGET_ACCEPT
void CreateControls()
Creates the controls and sizers.
CFeatureTypePanel * m_FeatureType
void Init()
Initialises member variables.
void UpdateChildrenFeaturePanels(wxSizer *sizer)
CSelectFeatures()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=10409, const wxString &caption=_("Select Features"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CStringConstraintPanel * m_StringConstraintPanel
static bool ShowToolTips()
Should we show tooltips?
CFeatureFieldNamePanel * m_FeatureConstraint
IWorkbench * m_Workbench
~CSelectFeatures()
Destructor.
CConstRef< CObject > GetMainObject()
CSeq_entry_Handle –.
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
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
#define SYMBOL_CSELECTFEATURES_TITLE
#define SYMBOL_CSELECTFEATURES_IDNAME
#define SYMBOL_CSELECTFEATURES_SIZE
#define SYMBOL_CSELECTFEATURES_STYLE
#define SYMBOL_CSELECTFEATURES_POSITION
Modified on Fri Sep 20 14:58:02 2024 by modify_doxy.py rev. 669887