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

Go to the SVN repository for this file.

1 #ifndef PKG_SEQUENCE___5COL_EXPORT_PAGE__HPP
2 #define PKG_SEQUENCE___5COL_EXPORT_PAGE__HPP
3 
4 /* $Id: 5col_export_page.hpp 39318 2017-09-12 16:00:18Z evgeniev $
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: Roman Katargin
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 /*!
35  * Includes
36  */
37 
38 #include <wx/panel.h>
41 
42 /*!
43  * Forward declarations
44  */
45 
46 /*!
47  * Control identifiers
48  */
49 
50 ////@begin control identifiers
51 #define SYMBOL_C5COLEXPORTPAGE_STYLE wxTAB_TRAVERSAL
52 #define SYMBOL_C5COLEXPORTPAGE_TITLE _("5Col Export Page")
53 #define SYMBOL_C5COLEXPORTPAGE_IDNAME ID_C5COLEXPORTPAGE
54 #define SYMBOL_C5COLEXPORTPAGE_SIZE wxSize(400, 300)
55 #define SYMBOL_C5COLEXPORTPAGE_POSITION wxDefaultPosition
56 ////@end control identifiers
57 
58 class wxTextCtrl;
59 
61 
63 
64 /*!
65  * C5ColExportPage class declaration
66  */
67 
68 class C5ColExportPage: public wxPanel
69  , public IRegSettings
70 {
71  DECLARE_DYNAMIC_CLASS( C5ColExportPage )
72  DECLARE_EVENT_TABLE()
73 
74 public:
75  /// Constructors
77  C5ColExportPage( wxWindow* parent, wxWindowID id = SYMBOL_C5COLEXPORTPAGE_IDNAME, const wxPoint& pos = SYMBOL_C5COLEXPORTPAGE_POSITION, const wxSize& size = SYMBOL_C5COLEXPORTPAGE_SIZE, long style = SYMBOL_C5COLEXPORTPAGE_STYLE );
78 
79  /// Creation
80  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_C5COLEXPORTPAGE_IDNAME, const wxPoint& pos = SYMBOL_C5COLEXPORTPAGE_POSITION, const wxSize& size = SYMBOL_C5COLEXPORTPAGE_SIZE, long style = SYMBOL_C5COLEXPORTPAGE_STYLE );
81 
82  /// Destructor
84 
85  /// Initialises member variables
86  void Init();
87 
88  /// IRegSettings
89  virtual void SetRegistryPath(const string& path);
90  virtual void SaveSettings() const;
91  virtual void LoadSettings();
92 
93  /// Creates the controls and sizers
94  void CreateControls();
95 
96  /// Transfer data from the window
97  virtual bool TransferDataFromWindow();
98 
99 ////@begin C5ColExportPage event handler declarations
100 
101  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BITMAPBUTTON2
102  void OnSelectFileClcik( wxCommandEvent& event );
103 
104 ////@end C5ColExportPage event handler declarations
105 
106 ////@begin C5ColExportPage member function declarations
107 
108  wxString GetFileName() const { return m_FileName ; }
109  void SetFileName(wxString value) { m_FileName = value ; }
110 
111  /// Data access
113  const C5ColExportParams& GetData() const { return m_data; }
115 
116  /// Retrieves bitmap resources
117  wxBitmap GetBitmapResource( const wxString& name );
118 
119  /// Retrieves icon resources
120  wxIcon GetIconResource( const wxString& name );
121 ////@end C5ColExportPage member function declarations
122 
125 
126  /// Should we show tooltips?
127  static bool ShowToolTips();
128 
129 ////@begin C5ColExportPage member variables
131  wxTextCtrl* m_FileNameCtrl;
132 private:
133  wxString m_FileName;
134  /// The data edited by this window
136  /// Control identifiers
137  enum {
139  ID_OBJECT_LIST = 10069,
140  ID_TEXTCTRL10 = 10087,
141  ID_CHECKBOX17 = 10088,
142  ID_TEXTCTRL11 = 10089,
143  ID_BITMAPBUTTON2 = 10014
144  };
145 ////@end C5ColExportPage member variables
146 
147 private:
149  string m_RegPath;
150  std::unique_ptr<CSaveFileHelper> m_SaveFile;
151 };
152 
154 
155 #endif // PKG_SEQUENCE___5COL_EXPORT_PAGE__HPP
#define SYMBOL_C5COLEXPORTPAGE_POSITION
#define SYMBOL_C5COLEXPORTPAGE_SIZE
#define SYMBOL_C5COLEXPORTPAGE_STYLE
#define SYMBOL_C5COLEXPORTPAGE_IDNAME
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
C5ColExportParams & GetData()
Data access.
C5ColExportParams m_data
The data edited by this window.
void SetObjects(map< string, TConstScopedObjects > *objects)
wxTextCtrl * m_FileNameCtrl
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
SConstScopedObject m_SeqLoc
void CreateControls()
Creates the controls and sizers.
virtual bool TransferDataFromWindow()
Transfer data from the window.
void SetFileName(wxString value)
void Init()
Initialises member variables.
~C5ColExportPage()
Destructor.
SConstScopedObject GetSeqLoc() const
bool Create(wxWindow *parent, wxWindowID id=ID_C5COLEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void OnSelectFileClcik(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BITMAPBUTTON2
wxString GetFileName() const
CObjectListWidgetSel * m_LocationSel
virtual void LoadSettings()
virtual void SetRegistryPath(const string &path)
IRegSettings.
C5ColExportPage()
Constructors.
std::unique_ptr< CSaveFileHelper > m_SaveFile
void SetData(const C5ColExportParams &data)
virtual void SaveSettings() const
static bool ShowToolTips()
Should we show tooltips?
const C5ColExportParams & GetData() const
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
Include a standard set of the NCBI C++ Toolkit most basic headers.
char data[12]
Definition: iconv.c:80
#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
Modified on Sun Jun 23 05:22:39 2024 by modify_doxy.py rev. 669887