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

Go to the SVN repository for this file.

1 /* $Id: autodef_dlg.hpp 38632 2017-06-05 17:16:13Z asztalos $
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: Colleen Bollin
27  */
28 // Generated by DialogBlocks (unregistered), 21/06/2013 13:22:54
29 
30 #ifndef _AUTODEF_DLG_H_
31 #define _AUTODEF_DLG_H_
32 
33 #include <corelib/ncbistd.hpp>
38 
39 #include <wx/dialog.h>
40 #include <wx/panel.h>
41 #include <wx/button.h>
42 
43 /*!
44  * Includes
45  */
46 
47 ////@begin includes
48 ////@end includes
49 
50 /*!
51  * Forward declarations
52  */
53 
54 ////@begin forward declarations
55 class CAutodefOrgPanel;
57 ////@end forward declarations
58 
60 
61 /*!
62  * Control identifiers
63  */
64 
65 ////@begin control identifiers
66 #define ID_CAUTODEFDLG 10189
67 #define ID_AD_WINDOW7 10206
68 #define ID_AD_WINDOW8 10207
69 #define ID_CHECKBOX14 10425
70 #define SYMBOL_CAUTODEFDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
71 #define SYMBOL_CAUTODEFDLG_TITLE _("Automatic Definition Line")
72 #define SYMBOL_CAUTODEFDLG_IDNAME ID_CAUTODEFDLG
73 #define SYMBOL_CAUTODEFDLG_SIZE wxSize(400, 300)
74 #define SYMBOL_CAUTODEFDLG_POSITION wxDefaultPosition
75 ////@end control identifiers
76 
77 
78 /*!
79  * CAutodefDlg class declaration
80  */
81 
83 {
84  DECLARE_DYNAMIC_CLASS( CAutodefDlg )
85  DECLARE_EVENT_TABLE()
86 
87 public:
88  /// Constructors
89  CAutodefDlg();
90  CAutodefDlg( wxWindow* parent, wxWindowID id = SYMBOL_CAUTODEFDLG_IDNAME, const wxString& caption = SYMBOL_CAUTODEFDLG_TITLE, const wxPoint& pos = SYMBOL_CAUTODEFDLG_POSITION, const wxSize& size = SYMBOL_CAUTODEFDLG_SIZE, long style = SYMBOL_CAUTODEFDLG_STYLE );
91 
92  /// Creation
93  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CAUTODEFDLG_IDNAME, const wxString& caption = SYMBOL_CAUTODEFDLG_TITLE, const wxPoint& pos = SYMBOL_CAUTODEFDLG_POSITION, const wxSize& size = SYMBOL_CAUTODEFDLG_SIZE, long style = SYMBOL_CAUTODEFDLG_STYLE );
94 
95  /// Destructor
96  ~CAutodefDlg();
97 
98  /// Initialises member variables
99  void Init();
100 
101  /// Creates the controls and sizers
102  void CreateControls();
103 
104 ////@begin CAutodefDlg event handler declarations
105 
106 ////@end CAutodefDlg event handler declarations
107 
108 ////@begin CAutodefDlg member function declarations
109 
110  /// Retrieves bitmap resources
111  wxBitmap GetBitmapResource( const wxString& name );
112 
113  /// Retrieves icon resources
114  wxIcon GetIconResource( const wxString& name );
115 ////@end CAutodefDlg member function declarations
116 
117  /// Should we show tooltips?
118  static bool ShowToolTips();
119 
120 ////@begin CAutodefDlg member variables
123  wxCheckBox* m_Targeted;
124 ////@end CAutodefDlg member variables
125  void SetParams(SAutodefParams* params);
126  void PopulateParams(SAutodefParams& params);
127 
128  void Clear();
129  void ShowSourceOptions(bool show);
130  bool OnlyTargeted() { if (m_Targeted) return m_Targeted->GetValue(); else return false; };
131 };
132 
134 
135 #endif
136  // _AUTODEF_DLG_H_
#define SYMBOL_CAUTODEFDLG_SIZE
Definition: autodef_dlg.hpp:73
#define SYMBOL_CAUTODEFDLG_TITLE
Definition: autodef_dlg.hpp:71
#define SYMBOL_CAUTODEFDLG_POSITION
Definition: autodef_dlg.hpp:74
#define SYMBOL_CAUTODEFDLG_IDNAME
Definition: autodef_dlg.hpp:72
#define SYMBOL_CAUTODEFDLG_STYLE
Definition: autodef_dlg.hpp:70
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool OnlyTargeted()
~CAutodefDlg()
Destructor.
CAutodefFeatClausePanel * m_FeatClausePanel
static bool ShowToolTips()
Should we show tooltips?
void Init()
Initialises member variables.
void CreateControls()
Creates the controls and sizers.
wxCheckBox * m_Targeted
void ShowSourceOptions(bool show)
bool Create(wxWindow *parent, wxWindowID id=10189, const wxString &caption=_("Automatic Definition Line"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
Definition: autodef_dlg.cpp:85
void SetParams(SAutodefParams *params)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void PopulateParams(SAutodefParams &params)
CAutodefDlg()
Constructors.
Definition: autodef_dlg.cpp:69
CAutodefOrgPanel * m_OrgPanel
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
Modified on Sun Jul 21 04:13:27 2024 by modify_doxy.py rev. 669887