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

Go to the SVN repository for this file.

1 #ifndef GUI_CORE___ASN_EXPORT_PAGE__HPP
2 #define GUI_CORE___ASN_EXPORT_PAGE__HPP
3 
4 /* $Id: asn_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/ncbiobj.hpp>
36 
37 /*!
38  * Includes
39  */
40 
41 #include "wx/panel.h"
42 
45 
46 /*!
47  * Forward declarations
48  */
49 
50 /*!
51  * Control identifiers
52  */
53 
54 ////@begin control identifiers
55 #define SYMBOL_CASNEXPORTPAGE_STYLE wxTAB_TRAVERSAL
56 #define SYMBOL_CASNEXPORTPAGE_TITLE _("Asn Export Page")
57 #define SYMBOL_CASNEXPORTPAGE_IDNAME ID_CASNEXPORTPAGE
58 #define SYMBOL_CASNEXPORTPAGE_SIZE wxSize(400, 300)
59 #define SYMBOL_CASNEXPORTPAGE_POSITION wxDefaultPosition
60 ////@end control identifiers
61 
62 class wxTextCtrl;
63 
65 
66 class CObjectListWidget;
67 
68 /*!
69  * CAsnExportPage class declaration
70  */
71 
72 class CAsnExportPage: public wxPanel
73  , public IRegSettings
74 {
75  DECLARE_DYNAMIC_CLASS( CAsnExportPage )
76  DECLARE_EVENT_TABLE()
77 
78 public:
80  CAsnExportPage( wxWindow* parent, wxWindowID id = SYMBOL_CASNEXPORTPAGE_IDNAME, const wxPoint& pos = SYMBOL_CASNEXPORTPAGE_POSITION, long style = SYMBOL_CASNEXPORTPAGE_STYLE );
81 
82  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CASNEXPORTPAGE_IDNAME, const wxPoint& pos = SYMBOL_CASNEXPORTPAGE_POSITION, long style = SYMBOL_CASNEXPORTPAGE_STYLE );
83 
85 
86  void Init();
87 
88  /// IRegSettings
89  virtual void SetRegistryPath(const string& path);
90  virtual void SaveSettings() const;
91  virtual void LoadSettings();
92 
93  void CreateControls();
94 
95  virtual bool TransferDataToWindow();
96 
97  virtual bool TransferDataFromWindow();
98 
99 ////@begin CAsnExportPage event handler declarations
100 
101  void OnSelectFileClick( wxCommandEvent& event );
102 
103 ////@end CAsnExportPage event handler declarations
104 
105 ////@begin CAsnExportPage member function declarations
106 
108  const CAsnExportParams& GetData() const { return m_data; }
110 
111  wxBitmap GetBitmapResource( const wxString& name );
112 
113  wxIcon GetIconResource( const wxString& name );
114 ////@end CAsnExportPage member function declarations
115 
116  static bool ShowToolTips();
117 
118 ////@begin CAsnExportPage member variables
120  wxTextCtrl* m_FileNameCtrl;
122  enum {
124  ID_PANEL2 = 10037,
125  ID_RADIOBOX3 = 10039,
126  ID_TEXTCTRL6 = 10054,
127  ID_BITMAPBUTTON = 10055
128  };
129 ////@end CAsnExportPage member variables
130 
131 private:
132  string m_RegPath;
133  std::unique_ptr<CSaveFileHelper> m_SaveFile;
134 };
135 
137 
138 #endif /// GUI_CORE___ASN_EXPORT_PAGE__HPP
#define SYMBOL_CASNEXPORTPAGE_IDNAME
#define SYMBOL_CASNEXPORTPAGE_POSITION
#define SYMBOL_CASNEXPORTPAGE_STYLE
virtual void LoadSettings()
wxIcon GetIconResource(const wxString &name)
void SetData(const CAsnExportParams &data)
virtual bool TransferDataToWindow()
virtual bool TransferDataFromWindow()
CAsnExportParams & GetData()
const CAsnExportParams & GetData() const
CAsnExportParams m_data
std::unique_ptr< CSaveFileHelper > m_SaveFile
wxBitmap GetBitmapResource(const wxString &name)
void OnSelectFileClick(wxCommandEvent &event)
static bool ShowToolTips()
wxTextCtrl * m_FileNameCtrl
CObjectListWidget * m_ObjectSel
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void SaveSettings() const
bool Create(wxWindow *parent, wxWindowID id=ID_CASNEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL)
CObjectListWidget - mediator widget.
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
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
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Modified on Fri Sep 20 14:58:19 2024 by modify_doxy.py rev. 669887