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

Go to the SVN repository for this file.

1 /* $Id: feature_filter_dlg.hpp 22482 2010-11-02 14:33:02Z wuliangs $
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: Yury Voronov
27  *
28  * File Description:
29  *
30  */
31 
32 
33 #ifndef _FEATURE_FILTER_DLG_H_
34 #define _FEATURE_FILTER_DLG_H_
35 
36 
37 /*!
38  * Includes
39  */
40 #include <corelib/ncbistd.hpp>
41 
44 
45 /*!
46  * Forward declarations
47  */
48 
49 ////@begin forward declarations
50 ////@end forward declarations
51 
52 class wxPanel;
53 class wxCheckListBox;
54 class wxTextCtrl;
55 
57 
58 /*!
59  * Control identifiers
60  */
61 
62 ////@begin control identifiers
63 #define ID_FEATUREFILTERDLG 10000
64 #define ID_PARAMS_PANEL 10012
65 #define wxID_LABEL_TEXT 10003
66 #define ID_LABELTEXT 10002
67 #define ID_TYPELIST 10005
68 #define ID_FROMINT 10006
69 #define ID_TOINT 10004
70 #define ID_RADIOINTERSECT 10007
71 #define ID_RADIOINCLUDE 10008
72 #define ID_TEXTCTRL3 10009
73 #define ID_PRODUCT_CTRL 10010
74 #define ID_NO_PRODUCT 10011
75 #define ID_CANCEL_CHECK 10001
76 #define SYMBOL_CFEATUREFILTERDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
77 #define SYMBOL_CFEATUREFILTERDLG_TITLE _("Feature Filter")
78 #define SYMBOL_CFEATUREFILTERDLG_IDNAME ID_FEATUREFILTERDLG
79 #define SYMBOL_CFEATUREFILTERDLG_SIZE wxDefaultSize
80 #define SYMBOL_CFEATUREFILTERDLG_POSITION wxDefaultPosition
81 ////@end control identifiers
82 
83 
84 /*!
85  * CFeatureFilterDlg class declaration
86  */
87 
89 {
90  DECLARE_DYNAMIC_CLASS( CFeatureFilterDlg )
91  DECLARE_EVENT_TABLE()
92 
93 public:
95  CFeatureFilterDlg( wxWindow* parent, wxWindowID id = SYMBOL_CFEATUREFILTERDLG_IDNAME, const wxString& caption = SYMBOL_CFEATUREFILTERDLG_TITLE, const wxPoint& pos = SYMBOL_CFEATUREFILTERDLG_POSITION, const wxSize& size = SYMBOL_CFEATUREFILTERDLG_SIZE, long style = SYMBOL_CFEATUREFILTERDLG_STYLE );
96 
97  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CFEATUREFILTERDLG_IDNAME, const wxString& caption = SYMBOL_CFEATUREFILTERDLG_TITLE, const wxPoint& pos = SYMBOL_CFEATUREFILTERDLG_POSITION, const wxSize& size = SYMBOL_CFEATUREFILTERDLG_SIZE, long style = SYMBOL_CFEATUREFILTERDLG_STYLE );
98 
100 
101  void Init();
102 
103  void CreateControls();
104 
105  virtual bool TransferDataToWindow();
106  virtual bool TransferDataFromWindow();
107 
108 
109 ////@begin CFeatureFilterDlg event handler declarations
110 
111  void OnNoProductClick( wxCommandEvent& event );
112 
113  void OnCancelFilteringClick( wxCommandEvent& event );
114 
115 ////@end CFeatureFilterDlg event handler declarations
116 
117 ////@begin CFeatureFilterDlg member function declarations
118 
119  SFeatureFilter GetParams() const { return m_Params ; }
121 
122  wxBitmap GetBitmapResource( const wxString& name );
123 
124  wxIcon GetIconResource( const wxString& name );
125 ////@end CFeatureFilterDlg member function declarations
126 
127  void SetTypeNames( wxArrayString& types );
128 
129  static bool ShowToolTips();
130 
131 ////@begin CFeatureFilterDlg member variables
132  wxPanel* m_ParamsPanel;
133  wxCheckListBox* m_TypesBox;
134  wxTextCtrl* m_ProductCtrl;
135 private:
137  wxString m_FromLocStr;
138  wxString m_ToLocStr;
139  wxString m_LengthLocStr;
141 ////@end CFeatureFilterDlg member variables
142 };
143 
145 
146 #endif
147  // _FEATURE_FILTER_DLG_H_
CDialog.
Definition: dialog.hpp:47
wxCheckListBox * m_TypesBox
virtual bool TransferDataFromWindow()
void OnCancelFilteringClick(wxCommandEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
void OnNoProductClick(wxCommandEvent &event)
SFeatureFilter GetParams() const
void SetTypeNames(wxArrayString &types)
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Feature Filter"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
virtual bool TransferDataToWindow()
static bool ShowToolTips()
void SetParams(SFeatureFilter value)
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CFEATUREFILTERDLG_SIZE
#define SYMBOL_CFEATUREFILTERDLG_TITLE
#define SYMBOL_CFEATUREFILTERDLG_POSITION
#define SYMBOL_CFEATUREFILTERDLG_IDNAME
#define SYMBOL_CFEATUREFILTERDLG_STYLE
static const struct type types[]
Definition: type.c:22
#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
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
SFeatureFilter.
Modified on Sat Jun 22 10:41:38 2024 by modify_doxy.py rev. 669887