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

Go to the SVN repository for this file.

1 #ifndef GUI_CORE___ASN_EXPORT_PARAMS__HPP
2 #define GUI_CORE___ASN_EXPORT_PARAMS__HPP
3 
4 /* $Id: asn_export_params.hpp 39341 2017-09-13 19:09:28Z katargir $
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 #include <gui/objutils/objects.hpp>
39 
40 #include <wx/string.h>
41 
43 
44 /*!
45  * CAsnExportParams class declaration
46  */
47 
49 {
50  friend class CAsnExportPage;
51 public:
53 
55 
57 
58  void operator=(const CAsnExportParams& data);
59 
60  bool operator==(const CAsnExportParams& data) const;
61 
62  void Copy(const CAsnExportParams& data);
63 
64  void Init();
65 
66  /// IRegSettings
67  virtual void SetRegistryPath(const string& path) { m_RegPath = path; }
68  virtual void SaveSettings() const;
69  virtual void LoadSettings();
70 
71  const TConstScopedObjects& GetObjects() const { return m_Objects; }
73 
74 ////@begin CAsnExportParams member function declarations
75  int GetAsnType() const { return m_AsnType ; }
76  void SetAsnType(int value) { m_AsnType = value ; }
77 
78  wxString GetFileName() const { return m_FileName ; }
79  void SetFileName(wxString value) { m_FileName = value ; }
80 
81 ////@end CAsnExportParams member function declarations
82 
83  void UpdateFileName(const wxString& fname);
84 
85 ////@begin CAsnExportParams member variables
86 private:
87  int m_AsnType;
88  wxString m_FileName;
89 ////@end CAsnExportParams member variables
90 
91 private:
92  string m_RegPath;
94 };
95 
97 
98 #endif // GUI_CORE___ASN_EXPORT_PARAMS__HPP
wxString GetFileName() const
void SetFileName(wxString value)
void UpdateFileName(const wxString &fname)
void operator=(const CAsnExportParams &data)
void Copy(const CAsnExportParams &data)
void SetAsnType(int value)
virtual void SaveSettings() const
IRegSettings.
TConstScopedObjects & SetObjects()
TConstScopedObjects m_Objects
bool operator==(const CAsnExportParams &data) const
virtual void LoadSettings()
const TConstScopedObjects & GetObjects() const
virtual void SetRegistryPath(const string &path)
IRegSettings.
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
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 GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Mon Apr 22 03:59:53 2024 by modify_doxy.py rev. 669887