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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___BOOKCHAPTER_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___BOOKCHAPTER_PANEL__HPP
3 
4 /* $Id: bookchapter_panel.hpp 24388 2011-09-19 21:24:04Z 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: Colleen Bollin
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 #include <objmgr/scope.hpp>
35 
36 #include <wx/panel.h>
37 
38 /*!
39  * Includes
40  */
41 
42 ////@begin includes
43 ////@end includes
44 
46 
47 /*!
48  * Forward declarations
49  */
50 
51 ////@begin forward declarations
52 ////@end forward declarations
53 
54 class CSerialObject;
55 
56 
57 /*!
58  * Control identifiers
59  */
60 
61 
62 ////@begin control identifiers
63 #define ID_BOOKCHAPTER 10055
64 #define ID_BOOKCHAPTER_CHAPTER_TITLE 10062
65 #define ID_BOOKCHAPTER_BOOK_TITLE 10056
66 #define ID_BOOKCHAPTER_PAGES 10057
67 #define ID_BOOKCHAPTER_PUB_YEAR 10063
68 #define ID_BOOKCHAPTER_COPY_YEAR 10064
69 #define SYMBOL_CBOOKCHAPTERPANEL_STYLE wxTAB_TRAVERSAL
70 #define SYMBOL_CBOOKCHAPTERPANEL_TITLE _("BookChapter")
71 #define SYMBOL_CBOOKCHAPTERPANEL_IDNAME ID_BOOKCHAPTER
72 #define SYMBOL_CBOOKCHAPTERPANEL_SIZE wxSize(400, 300)
73 #define SYMBOL_CBOOKCHAPTERPANEL_POSITION wxDefaultPosition
74 ////@end control identifiers
75 
76 
77 /*!
78  * CBookChapterPanel class declaration
79  */
80 
81 class CBookChapterPanel: public wxPanel
82 {
83  DECLARE_DYNAMIC_CLASS( CBookChapterPanel )
84  DECLARE_EVENT_TABLE()
85 
86 public:
87  /// Constructors
89  CBookChapterPanel( wxWindow* parent, CSerialObject& object, objects::CScope& scope, wxWindowID id = SYMBOL_CBOOKCHAPTERPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBOOKCHAPTERPANEL_POSITION, const wxSize& size = SYMBOL_CBOOKCHAPTERPANEL_SIZE, long style = SYMBOL_CBOOKCHAPTERPANEL_STYLE );
90 
91  /// Creation
92  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CBOOKCHAPTERPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBOOKCHAPTERPANEL_POSITION, const wxSize& size = SYMBOL_CBOOKCHAPTERPANEL_SIZE, long style = SYMBOL_CBOOKCHAPTERPANEL_STYLE );
93 
94  /// Destructor
96 
97  /// Initialises member variables
98  void Init();
99 
100  /// Creates the controls and sizers
101  void CreateControls();
102 
103 ////@begin CBookChapterPanel event handler declarations
104 
105 ////@end CBookChapterPanel event handler declarations
106 
107 ////@begin CBookChapterPanel member function declarations
108 
109  /// Retrieves bitmap resources
110  wxBitmap GetBitmapResource( const wxString& name );
111 
112  /// Retrieves icon resources
113  wxIcon GetIconResource( const wxString& name );
114 ////@end CBookChapterPanel member function declarations
115 
116  /// Should we show tooltips?
117  static bool ShowToolTips();
118 
119 ////@begin CBookChapterPanel member variables
120 ////@end CBookChapterPanel member variables
121 private:
124 
125 };
126 
128 
129 #endif // GUI_WIDGETS_EDIT___BOOKCHAPTER_PANEL__HPP
#define SYMBOL_CBOOKCHAPTERPANEL_SIZE
#define SYMBOL_CBOOKCHAPTERPANEL_POSITION
#define SYMBOL_CBOOKCHAPTERPANEL_STYLE
#define SYMBOL_CBOOKCHAPTERPANEL_IDNAME
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10055, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void Init()
Initialises member variables.
CSerialObject * m_Object
static bool ShowToolTips()
Should we show tooltips?
~CBookChapterPanel()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CRef< objects::CScope > m_Scope
CBookChapterPanel()
Constructors.
Base class for all serializable objects.
Definition: serialbase.hpp:150
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 Fri Sep 20 14:58:09 2024 by modify_doxy.py rev. 669887