NCBI C++ ToolKit
open_data_source_object_dlg.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: open_data_source_object_dlg.cpp 39737 2017-10-31 17:03:07Z katargir $
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: Bob Falk
27  *
28  * File Description:
29  *
30  */
31 
32 #include <ncbi_pch.hpp>
33 #include <corelib/ncbifile.hpp>
34 
38 
39 #include <wx/sizer.h>
40 #include <wx/button.h>
41 #include <wx/bitmap.h>
42 #include <wx/icon.h>
43 #include <wx/checkbox.h>
44 #include <wx/valgen.h>
45 
47 
48 IMPLEMENT_DYNAMIC_CLASS( COpenDataSourceObjectDlg, CWizardDlg )
49 
50 BEGIN_EVENT_TABLE( COpenDataSourceObjectDlg, CWizardDlg )
51 
52 ////@begin CWizardDlg event table entries
53 ////@end CWizardDlg event table entries
54 
56 
58 {
59  Init();
60 }
61 
63 {
64 }
65 
66 
68 {
69  SetManager(manager);
70  Init();
71  Create(parent);
72 }
73 
74 bool COpenDataSourceObjectDlg::Create( wxWindow* parent )
75 {
76  CWizardDlg::Create(parent, SYMBOL_CWIZARDDLG_IDNAME, wxT("Open Object from Clipboard in GBench"));
77 
78  SetCurrentPage(m_Manager->GetFirstPage());
79  return true;
80 }
81 
83 {
84 }
85 
87 {
88 }
89 
91 {
92  m_Manager = manager;
93  m_Manager->SetParentWindow(this);
94 }
95 
97 {
98  IObjectLoader* object_loader = 0;
99  if (!m_Manager.IsNull()) {
100  object_loader = dynamic_cast<IObjectLoader*>(m_Manager->GetExecuteUnit());
101  }
102  return object_loader;
103 }
104 
106 {
107 }
108 
110 {
111 }
112 
virtual void x_SaveSettings(CRegistryWriteView view) const
virtual void x_LoadSettings(const CRegistryReadView &view)
override these functions in derived classes
void SetManager(CIRef< IUIToolManager > manager)
class CRegistryReadView provides a nested hierarchical view at a particular key.
Definition: reg_view.hpp:58
void SetCurrentPage(IWizardPage *page)
Definition: wizard_dlg.cpp:161
bool Create(wxWindow *parent, wxWindowID id=ID_CWIZARDDLG, const wxString &caption=_("WizardDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Definition: wizard_dlg.cpp:77
static void Init(void)
Definition: cursor6.c:76
bool IsNull(void) const THROWS_NONE
Check if pointer is null – same effect as Empty().
Definition: ncbiobj.hpp:735
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
END_EVENT_TABLE()
#define wxT(x)
Definition: muParser.cpp:41
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
#define SYMBOL_CWIZARDDLG_IDNAME
Definition: wizard_dlg.hpp:67
Modified on Sun Mar 03 03:10:26 2024 by modify_doxy.py rev. 669887