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

Go to the SVN repository for this file.

1 #ifndef GUI_CORE___PROJECT_SELECTOR_DLG__HPP
2 #define GUI_CORE___PROJECT_SELECTOR_DLG__HPP
3 
4 /* $Id: project_selector_dlg.hpp 39737 2017-10-31 17:03:07Z 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/ncbistl.hpp>
36 
38 
40 
41 
42 ////@begin includes
43 #include "wx/listctrl.h"
44 ////@end includes
45 
46 
47 ////@begin forward declarations
48 class wxBoxSizer;
49 class CObjectListWidget;
51 ////@end forward declarations
52 
53 ////@begin control identifiers
54 #define SYMBOL_CPROJECTSELECTORDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
55 #define SYMBOL_CPROJECTSELECTORDLG_TITLE _("Project Selector Dialog")
56 #define SYMBOL_CPROJECTSELECTORDLG_IDNAME ID_CPROJECTSELECTORDLG
57 #define SYMBOL_CPROJECTSELECTORDLG_SIZE wxDefaultSize
58 #define SYMBOL_CPROJECTSELECTORDLG_POSITION wxDefaultPosition
59 ////@end control identifiers
60 
61 
63 
64 class CObjectListWidget;
65 
67 {
68  DECLARE_DYNAMIC_CLASS( CProjectSelectorDlg )
69  DECLARE_EVENT_TABLE()
70 
71 public:
73  CProjectSelectorDlg( wxWindow* parent, wxWindowID id = SYMBOL_CPROJECTSELECTORDLG_IDNAME, const wxString& caption = SYMBOL_CPROJECTSELECTORDLG_TITLE, const wxPoint& pos = SYMBOL_CPROJECTSELECTORDLG_POSITION, const wxSize& size = SYMBOL_CPROJECTSELECTORDLG_SIZE, long style = SYMBOL_CPROJECTSELECTORDLG_STYLE );
74 
75  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CPROJECTSELECTORDLG_IDNAME, const wxString& caption = SYMBOL_CPROJECTSELECTORDLG_TITLE, const wxPoint& pos = SYMBOL_CPROJECTSELECTORDLG_POSITION, const wxSize& size = SYMBOL_CPROJECTSELECTORDLG_SIZE, long style = SYMBOL_CPROJECTSELECTORDLG_STYLE );
76 
78 
79  void Init();
80 
81  void CreateControls();
82 
83  bool TransferDataToWindow();
84 
86 
87 ////@begin CProjectSelectorDlg event handler declarations
88 
89 ////@end CProjectSelectorDlg event handler declarations
90 
91 ////@begin CProjectSelectorDlg member function declarations
92 
93  wxBitmap GetBitmapResource( const wxString& name );
94 
95  wxIcon GetIconResource( const wxString& name );
96 ////@end CProjectSelectorDlg member function declarations
97 
98  static bool ShowToolTips();
99 
100 ////@begin CProjectSelectorDlg member variables
101  wxBoxSizer* m_Sizer;
104  enum {
107  ID_PANEL1 = 10013
108  };
109 ////@end CProjectSelectorDlg member variables
110 
111 public:
112  void SetProjectService(CProjectService* prj_srv);
114 
115  //void SetParams(const SProjectSelectorParams& params);
116  void GetParams(SProjectSelectorParams& params) const;
117 
118 protected:
119  virtual void x_LoadSettings(const CRegistryReadView& view);
120  virtual void x_SaveSettings(CRegistryWriteView view) const;
121 
122 protected:
126 
127 };
128 
129 
131 
132 #endif
133  // GUI_CORE___PROJECT_SELECTOR_DLG__HPP
CDialog.
Definition: dialog.hpp:47
CObjectListWidget - mediator widget.
void SetObjects(TConstScopedObjects &objects)
SProjectSelectorParams m_Params
void SetProjectService(CProjectService *prj_srv)
CProjectService * m_ProjectService
wxBitmap GetBitmapResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=ID_CPROJECTSELECTORDLG, const wxString &caption=_("Project Selector Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
TConstScopedObjects * m_Objects
void GetParams(SProjectSelectorParams &params) const
virtual void x_LoadSettings(const CRegistryReadView &view)
override these functions in derived classes
wxIcon GetIconResource(const wxString &name)
CProjectSelectorPanel * m_ProjectSelPanel
virtual void x_SaveSettings(CRegistryWriteView view) const
CObjectListWidget * m_List
CProjectSelectorPanel - a panel that allows the user to specify how the project items created by a pl...
CProjectService - a service providing API for operations with Workspaces and Projects.
class CRegistryReadView provides a nested hierarchical view at a particular key.
Definition: reg_view.hpp:58
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
The NCBI C++/STL use hints.
#define SYMBOL_CPROJECTSELECTORDLG_SIZE
#define SYMBOL_CPROJECTSELECTORDLG_POSITION
#define SYMBOL_CPROJECTSELECTORDLG_IDNAME
#define SYMBOL_CPROJECTSELECTORDLG_STYLE
#define SYMBOL_CPROJECTSELECTORDLG_TITLE
SProjectSelectorParams - holds data for CProjectSelectorPanel.
Modified on Fri Sep 20 14:57:33 2024 by modify_doxy.py rev. 669887