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

Go to the SVN repository for this file.

1 #ifndef PKG_ALIGNMENT___ALIGN_TAB_EXPORT_PAGE__HPP
2 #define PKG_ALIGNMENT___ALIGN_TAB_EXPORT_PAGE__HPP
3 
4 /* $Id: align_tab_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  * File Description:
32  *
33  */
34 
35 #include <corelib/ncbistd.hpp>
36 
37 /*!
38  * Includes
39  */
40 
41 #include <wx/panel.h>
44 
45 #include <gui/objutils/objects.hpp>
46 
47 /*!
48  * Forward declarations
49  */
50 
51 /*!
52  * Control identifiers
53  */
54 
55 ////@begin control identifiers
56 #define SYMBOL_CALIGNTABEXPORTPAGE_STYLE wxTAB_TRAVERSAL
57 #define SYMBOL_CALIGNTABEXPORTPAGE_TITLE _("Align Tab Export Page")
58 #define SYMBOL_CALIGNTABEXPORTPAGE_IDNAME ID_CALIGNTABEXPORTPAGE
59 #define SYMBOL_CALIGNTABEXPORTPAGE_SIZE wxSize(400, 300)
60 #define SYMBOL_CALIGNTABEXPORTPAGE_POSITION wxDefaultPosition
61 ////@end control identifiers
62 
64 
66 
67 /*!
68  * CAlignTabExportPage class declaration
69  */
70 
71 class CAlignTabExportPage: public wxPanel
72  , public IRegSettings
73 {
74  DECLARE_DYNAMIC_CLASS( CAlignTabExportPage )
75  DECLARE_EVENT_TABLE()
76 
77 public:
80 
81  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CALIGNTABEXPORTPAGE_IDNAME, const wxPoint& pos = SYMBOL_CALIGNTABEXPORTPAGE_POSITION, const wxSize& size = SYMBOL_CALIGNTABEXPORTPAGE_SIZE, long style = SYMBOL_CALIGNTABEXPORTPAGE_STYLE );
82 
84 
85  void Init();
86 
88 
89  /// IRegSettings
90  virtual void SetRegistryPath(const string& path);
91  virtual void SaveSettings() const;
92  virtual void LoadSettings();
93 
94  void CreateControls();
95 
96  virtual bool TransferDataToWindow();
97 
98  virtual bool TransferDataFromWindow();
99 
100 ////@begin CAlignTabExportPage event handler declarations
101 
102  void OnSelectFileClick( wxCommandEvent& event );
103 
104 ////@end CAlignTabExportPage event handler declarations
105 
106 ////@begin CAlignTabExportPage member function declarations
107 
109  const CAlignTabExportParams& GetData() const { return m_data; }
111 
112  wxBitmap GetBitmapResource( const wxString& name );
113 
114  wxIcon GetIconResource( const wxString& name );
115 ////@end CAlignTabExportPage member function declarations
116 
117  static bool ShowToolTips();
118 
119 ////@begin CAlignTabExportPage member variables
122  enum {
124  ID_PANEL4 = 10077,
125  ID_TEXTCTRL14 = 10078,
126  ID_BITMAPBUTTON = 10079
127  };
128 ////@end CAlignTabExportPage member variables
129 
130 private:
131  string m_RegPath;
132  std::unique_ptr<CSaveFileHelper> m_SaveFile;
133 };
134 
136 
137 #endif // PKG_ALIGNMENT___ALIGN_TAB_EXPORT_PAGE__HPP
#define SYMBOL_CALIGNTABEXPORTPAGE_IDNAME
#define SYMBOL_CALIGNTABEXPORTPAGE_POSITION
#define SYMBOL_CALIGNTABEXPORTPAGE_STYLE
#define SYMBOL_CALIGNTABEXPORTPAGE_SIZE
CAlignTabExportParams & GetData()
virtual bool TransferDataToWindow()
void SetObjects(map< string, TConstScopedObjects > *objects)
void OnSelectFileClick(wxCommandEvent &event)
CAlignTabExportParams m_data
virtual void SaveSettings() const
std::unique_ptr< CSaveFileHelper > m_SaveFile
virtual void SetRegistryPath(const string &path)
IRegSettings.
wxIcon GetIconResource(const wxString &name)
CObjectListWidgetSel * m_LocationSel
virtual bool TransferDataFromWindow()
void SetData(const CAlignTabExportParams &data)
const CAlignTabExportParams & GetData() const
wxBitmap GetBitmapResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=ID_CALIGNTABEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
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
Modified on Wed May 29 18:38:45 2024 by modify_doxy.py rev. 669887