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

Go to the SVN repository for this file.

1 /* $Id: fasta_align_export_page.hpp 39318 2017-09-12 16:00:18Z evgeniev $
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: Vladislav Evgeniev
27  *
28  * File Description:
29  *
30  */
31 
32 #ifndef PKG_ALIGNMENT___FASTA_ALIGN_EXPORT_PAGE_HPP
33 #define PKG_ALIGNMENT___FASTA_ALIGN_EXPORT_PAGE_HPP
34 
35 
36 #include <corelib/ncbistd.hpp>
37 
38 /*!
39 * Includes
40 */
41 
42 #include <wx/panel.h>
43 #include <wx/listctrl.h>
44 
46 
48 
49 #include <gui/objutils/objects.hpp>
50 
52 
53 /*!
54  * Forward declarations
55  */
56 
57 ////@begin forward declarations
58 class CObjectListWidget;
59 ////@end forward declarations
60 
61 /*!
62  * Control identifiers
63  */
64 
65 ////@begin control identifiers
66 #define SYMBOL_CFASTAALIGNEXPORTPAGE_STYLE wxTAB_TRAVERSAL
67 #define SYMBOL_CFASTAALIGNEXPORTPAGE_TITLE _("FASTA Alignment Export Page")
68 #define SYMBOL_CFASTAALIGNEXPORTPAGE_IDNAME ID_CFASTAALIGNEXPORTPAGE
69 #define SYMBOL_CFASTAALIGNEXPORTPAGE_SIZE wxSize(400, 300)
70 #define SYMBOL_CFASTAALIGNEXPORTPAGE_POSITION wxDefaultPosition
71 ////@end control identifiers
72 
73 
74 /*!
75  * CFastaAlignExportPage class declaration
76  */
77 
78 class CFastaAlignExportPage: public wxPanel
79 {
80  DECLARE_DYNAMIC_CLASS( CFastaAlignExportPage )
81  DECLARE_EVENT_TABLE()
82 
83 public:
86 
87  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CFASTAALIGNEXPORTPAGE_IDNAME, const wxPoint& pos = SYMBOL_CFASTAALIGNEXPORTPAGE_POSITION, const wxSize& size = SYMBOL_CFASTAALIGNEXPORTPAGE_SIZE, long style = SYMBOL_CFASTAALIGNEXPORTPAGE_STYLE );
88 
90 
91  void Init();
92 
93  /// IRegSettings
94  virtual void SetRegistryPath(const string& path);
95  virtual void SaveSettings() const;
96  virtual void LoadSettings();
97 
98  void CreateControls();
99 
100  virtual bool TransferDataFromWindow();
101 
103 
104  void OnObjectSelected(wxListEvent& event);
105 
106 ////@begin CFastaAlignExportPage event handler declarations
107 
108  void OnFileNameEdited( wxKeyEvent& event );
109 
110  void OnSelectFileClick( wxCommandEvent& event );
111 
112 ////@end CFastaAlignExportPage event handler declarations
113 
114 ////@begin CFastaAlignExportPage member function declarations
115 
117  const CFastaAlignExportParams& GetData() const { return m_data; }
119 
120  wxBitmap GetBitmapResource( const wxString& name );
121 
122  wxIcon GetIconResource( const wxString& name );
123 ////@end CFastaAlignExportPage member function declarations
124 
125  static bool ShowToolTips();
126 
127 ////@begin CFastaAlignExportPage member variables
130  enum {
132  ID_PANEL4 = 10077,
133  ID_TEXTCTRL14 = 10078,
134  ID_BITMAPBUTTON = 10079
135  };
136 ////@end CFastaAlignExportPage member variables
137 
138 private:
139  void x_SanitizePath(wxString &path);
140 
141 private:
142  string m_RegPath;
144  std::unique_ptr<CSaveFileHelper> m_SaveFile;
145 };
146 
148 
149 #endif // PKG_ALIGNMENT___FASTA_ALIGN_EXPORT_PAGE_HPP
CFastaAlignExportParams & GetData()
CFastaAlignExportParams m_data
void OnFileNameEdited(wxKeyEvent &event)
void OnSelectFileClick(wxCommandEvent &event)
virtual void SetRegistryPath(const string &path)
IRegSettings.
void SetObjects(TConstScopedObjects &objects)
wxBitmap GetBitmapResource(const wxString &name)
void OnObjectSelected(wxListEvent &event)
wxIcon GetIconResource(const wxString &name)
void SetData(const CFastaAlignExportParams &data)
virtual void SaveSettings() const
bool Create(wxWindow *parent, wxWindowID id=ID_CFASTAALIGNEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
const CFastaAlignExportParams & GetData() const
std::unique_ptr< CSaveFileHelper > m_SaveFile
void x_SanitizePath(wxString &path)
CObjectListWidget - mediator widget.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CFASTAALIGNEXPORTPAGE_POSITION
#define SYMBOL_CFASTAALIGNEXPORTPAGE_IDNAME
#define SYMBOL_CFASTAALIGNEXPORTPAGE_STYLE
#define SYMBOL_CFASTAALIGNEXPORTPAGE_SIZE
char data[12]
Definition: iconv.c:80
vector< SConstScopedObject > TConstScopedObjects
Definition: objects.hpp:65
#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 Fri Sep 20 14:58:21 2024 by modify_doxy.py rev. 669887