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

Go to the SVN repository for this file.

1 #ifndef GUI_CORE___PROJECT_EDIT_DLG__HPP
2 #define GUI_CORE___PROJECT_EDIT_DLG__HPP
3 
4 /* $Id: project_edit_dlg.hpp 28647 2013-08-09 20:16:42Z 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: Andrey Yazhuk
30  *
31  * File Description:
32  *
33  */
34 
35 #include <corelib/ncbistd.hpp>
36 
38 
39 ////@begin includes
40 #include "wx/valgen.h"
41 ////@end includes
42 
43 
44 ////@begin control identifiers
45 #define SYMBOL_CPROJECTEDITDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
46 #define SYMBOL_CPROJECTEDITDLG_TITLE _("Dialog")
47 #define SYMBOL_CPROJECTEDITDLG_IDNAME ID_CPROJECTEDITDLG
48 #define SYMBOL_CPROJECTEDITDLG_SIZE wxDefaultSize
49 #define SYMBOL_CPROJECTEDITDLG_POSITION wxDefaultPosition
50 ////@end control identifiers
51 
52 
54 
55 class CProjectEditDlg: public CDialog
56 {
57  DECLARE_DYNAMIC_CLASS( CProjectEditDlg )
58  DECLARE_EVENT_TABLE()
59 
60 public:
62  CProjectEditDlg( wxWindow* parent, wxWindowID id = SYMBOL_CPROJECTEDITDLG_IDNAME, const wxString& caption = SYMBOL_CPROJECTEDITDLG_TITLE, const wxPoint& pos = SYMBOL_CPROJECTEDITDLG_POSITION, const wxSize& size = SYMBOL_CPROJECTEDITDLG_SIZE, long style = SYMBOL_CPROJECTEDITDLG_STYLE );
63 
64  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CPROJECTEDITDLG_IDNAME, const wxString& caption = SYMBOL_CPROJECTEDITDLG_TITLE, const wxPoint& pos = SYMBOL_CPROJECTEDITDLG_POSITION, const wxSize& size = SYMBOL_CPROJECTEDITDLG_SIZE, long style = SYMBOL_CPROJECTEDITDLG_STYLE );
65 
67 
68  void Init();
69 
70  void CreateControls();
71 
72 ////@begin CProjectEditDlg event handler declarations
73 
74  void OnOkClick( wxCommandEvent& event );
75 
76 ////@end CProjectEditDlg event handler declarations
77 
78 ////@begin CProjectEditDlg member function declarations
79 
80  wxString GetDescr() const { return m_Descr ; }
81  void SetDescr(wxString value) { m_Descr = value ; }
82 
83  wxString GetFilename() const { return m_Filename ; }
84  void SetFilename(wxString value) { m_Filename = value ; }
85 
86  wxString GetCreated() const { return m_Created ; }
87  void SetCreated(wxString value) { m_Created = value ; }
88 
89  wxString GetModified() const { return m_Modified ; }
90  void SetModified(wxString value) { m_Modified = value ; }
91 
92  wxString GetProjectName() const { return m_Name ; }
93  void SetProjectName(wxString value) { m_Name = value ; }
94 
95  wxBitmap GetBitmapResource( const wxString& name );
96 
97  wxIcon GetIconResource( const wxString& name );
98 ////@end CProjectEditDlg member function declarations
99 
100  void SetReadOnly();
101 
102  static bool ShowToolTips();
103 
104 
105 ////@begin CProjectEditDlg member variables
106 protected:
107  wxString m_Descr;
108  wxString m_Filename;
109  wxString m_Created;
110  wxString m_Modified;
111  wxString m_Name;
112  enum {
114  ID_NAME = 10000,
115  ID_DESCR = 10003,
116  ID_FILENAME = 10001,
117  ID_CREATED = 10002,
118  ID_MODIFIED = 10004
119  };
120 ////@end CProjectEditDlg member variables
121 };
122 
124 
125 #endif // GUI_CORE___PROJECT_EDIT_DLG__HPP
CDialog.
Definition: dialog.hpp:47
void SetFilename(wxString value)
void SetModified(wxString value)
wxString GetFilename() const
wxString GetProjectName() const
wxBitmap GetBitmapResource(const wxString &name)
static bool ShowToolTips()
void OnOkClick(wxCommandEvent &event)
wxIcon GetIconResource(const wxString &name)
void SetDescr(wxString value)
wxString GetCreated() const
wxString GetDescr() const
wxString GetModified() const
void SetCreated(wxString value)
void SetProjectName(wxString value)
bool Create(wxWindow *parent, wxWindowID id=ID_CPROJECTEDITDLG, const wxString &caption=_("Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
char value[7]
Definition: config.c:431
Include a standard set of the NCBI C++ Toolkit most basic headers.
#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
#define SYMBOL_CPROJECTEDITDLG_IDNAME
#define SYMBOL_CPROJECTEDITDLG_SIZE
#define SYMBOL_CPROJECTEDITDLG_POSITION
#define SYMBOL_CPROJECTEDITDLG_STYLE
#define SYMBOL_CPROJECTEDITDLG_TITLE
Modified on Sat Dec 09 04:46:24 2023 by modify_doxy.py rev. 669887