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

Go to the SVN repository for this file.

1 #ifndef GUI_PKG_ALIGNMENT___NET_BLAST_DM_SEARCH_FORM_PANEL__HPP
2 #define GUI_PKG_ALIGNMENT___NET_BLAST_DM_SEARCH_FORM_PANEL__HPP
3 
4 /* $Id: net_blast_dm_search_form_panel.hpp 25478 2012-03-27 14:54:26Z kuznets $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Andrey Yazhuk
30  *
31  * File Description:
32  *
33  */
34 
35 #include <corelib/ncbistd.hpp>
36 
37 
38 ////@begin includes
39 #include "wx/valgen.h"
40 ////@end includes
41 
42 
43 ////@begin forward declarations
44 ////@end forward declarations
45 
46 
47 ////@begin control identifiers
48 #define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_STYLE wxTAB_TRAVERSAL
49 #define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_TITLE wxT("Dialog")
50 #define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_IDNAME ID_CNETBLASTDMSEARCHFORM
51 #define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_SIZE wxDefaultSize
52 #define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_POSITION wxDefaultPosition
53 ////@end control identifiers
54 
55 #include <wx/panel.h>
56 
57 class wxButton;
58 class wxTextCtrl;
59 
60 
62 
63 /** @addtogroup GUI_PKG_ALIGNMENT
64  *
65  * @{
66  */
67 
68 class CNetBlastDMSearchFormPanel: public wxPanel
69 {
70  DECLARE_DYNAMIC_CLASS( CNetBlastDMSearchFormPanel )
71  DECLARE_EVENT_TABLE()
72 
73 public:
76 
78 
80 
81  void Init();
82 
83  void CreateControls();
84 
85  bool TransferDataToWindow();
86 
87 ////@begin CNetBlastDMSearchFormPanel event handler declarations
88 
89  void OnFilterInputTextUpdated( wxCommandEvent& event );
90 
91  void OnResetClick( wxCommandEvent& event );
92 
93  void OnSubmittedCheckClick( wxCommandEvent& event );
94 
95 ////@end CNetBlastDMSearchFormPanel event handler declarations
96 
97 ////@begin CNetBlastDMSearchFormPanel member function declarations
98 
99  bool GetCompleted() const { return m_Completed ; }
100  void SetCompleted(bool value) { m_Completed = value ; }
101 
102  bool GetSubmitted() const { return m_Submitted ; }
103  void SetSubmitted(bool value) { m_Submitted = value ; }
104 
105  bool GetFailed() const { return m_Failed ; }
106  void SetFailed(bool value) { m_Failed = value ; }
107 
108  bool GetRetrieved() const { return m_Retrieved ; }
109  void SetRetrieved(bool value) { m_Retrieved = value ; }
110 
111  bool GetExpired() const { return m_Expired ; }
112  void SetExpired(bool value) { m_Expired = value ; }
113 
114  wxString GetSearchValue() const { return m_SearchValue ; }
115  void SetSearchValue(wxString value) { m_SearchValue = value ; }
116 
117  wxBitmap GetBitmapResource( const wxString& name );
118 
119  wxIcon GetIconResource( const wxString& name );
120 ////@end CNetBlastDMSearchFormPanel member function declarations
121 
122  static bool ShowToolTips();
123 
124 ////@begin CNetBlastDMSearchFormPanel member variables
125  wxTextCtrl* m_SearchCtrl;
126  wxButton* m_ResetBtn;
127 
128 public:
129  void RestartSearch();
130 
131 protected:
134  bool m_Failed;
136  bool m_Expired;
137  wxString m_SearchValue;
139  enum {
146  ID_EXPIRED_CHECK = 10031
147  };
148 ////@end CNetBlastDMSearchFormPanel member variables
149 };
150 
151 /* @} */
152 
154 
155 #endif // GUI_PKG_ALIGNMENT___NET_BLAST_DM_SEARCH_FORM_PANEL__HPP
156 
Include a standard set of the NCBI C++ Toolkit most basic headers.
void OnSubmittedCheckClick(wxCommandEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
void OnFilterInputTextUpdated(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_CNETBLASTDMSEARCHFORM, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxIcon GetIconResource(const wxString &name)
void OnResetClick(wxCommandEvent &event)
#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
#define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_POSITION
#define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_STYLE
#define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_SIZE
#define SYMBOL_CNETBLASTDMSEARCHFORMPANEL_IDNAME
Modified on Fri Sep 20 14:58:13 2024 by modify_doxy.py rev. 669887