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

Go to the SVN repository for this file.

1 #ifndef _GUI_WIDGETS_EDIT___CROSSREF_FEATS_DLG_HPP_
2 #define _GUI_WIDGETS_EDIT___CROSSREF_FEATS_DLG_HPP_
3 /* $Id: crossref_feats_dlg.hpp 32333 2015-02-05 21:05:04Z asztalos $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Andrea Asztalos
29  */
30 // Generated by DialogBlocks (unregistered), 04/02/2015 12:11:44
31 
32 
33 #include <corelib/ncbistd.hpp>
35 #include <wx/dialog.h>
36 
37 class wxCheckListBox;
38 class wxRadioBox;
39 class CCmdComposite;
40 class CFeat_id;
41 
43 
44 /*!
45  * Control identifiers
46  */
47 
48 ////@begin control identifiers
49 #define SYMBOL_CCROSSREFFEATSDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
50 #define SYMBOL_CCROSSREFFEATSDLG_TITLE _("Cross referenced features")
51 #define SYMBOL_CCROSSREFFEATSDLG_IDNAME ID_CCROSSREFFEATSDLG
52 #define SYMBOL_CCROSSREFFEATSDLG_SIZE wxSize(400, 300)
53 #define SYMBOL_CCROSSREFFEATSDLG_POSITION wxDefaultPosition
54 ////@end control identifiers
55 
56 
57 /*!
58  * CCrossRefFeatsDlg class declaration
59  */
60 
61 class CCrossRefFeatsDlg: public wxDialog
62 {
63  DECLARE_DYNAMIC_CLASS( CCrossRefFeatsDlg )
64  DECLARE_EVENT_TABLE()
65 
66 public:
67  typedef vector<objects::CSeq_feat_Handle> TFeatVec;
68  /// Constructors
70  CCrossRefFeatsDlg( wxWindow* parent, TFeatVec& feats,
71  const objects::CFeat_id::TLocal& feat_id,
72  wxWindowID id = SYMBOL_CCROSSREFFEATSDLG_IDNAME,
73  const wxString& caption = SYMBOL_CCROSSREFFEATSDLG_TITLE,
74  const wxPoint& pos = SYMBOL_CCROSSREFFEATSDLG_POSITION,
75  const wxSize& size = SYMBOL_CCROSSREFFEATSDLG_SIZE,
76  long style = SYMBOL_CCROSSREFFEATSDLG_STYLE );
77 
78  /// Creation
79  bool Create( wxWindow* parent,
80  wxWindowID id = SYMBOL_CCROSSREFFEATSDLG_IDNAME,
81  const wxString& caption = SYMBOL_CCROSSREFFEATSDLG_TITLE,
82  const wxPoint& pos = SYMBOL_CCROSSREFFEATSDLG_POSITION,
83  const wxSize& size = SYMBOL_CCROSSREFFEATSDLG_SIZE,
84  long style = SYMBOL_CCROSSREFFEATSDLG_STYLE );
85 
86  /// Destructor
88 
89  /// Initialises member variables
90  void Init();
91 
92  /// Creates the controls and sizers
93  void CreateControls();
94 
95 ////@begin CCrossRefFeatsDlg event handler declarations
96 
97 ////@end CCrossRefFeatsDlg event handler declarations
98 
99 ////@begin CCrossRefFeatsDlg member function declarations
100  bool TransferDataToWindow();
101 
103 
104  /// Retrieves bitmap resources
105  wxBitmap GetBitmapResource( const wxString& name );
106 
107  /// Retrieves icon resources
108  wxIcon GetIconResource( const wxString& name );
109 ////@end CCrossRefFeatsDlg member function declarations
110 
111  /// Should we show tooltips?
112  static bool ShowToolTips();
113 
114 private:
115 ////@begin CCrossRefFeatsDlg member variables
116  wxCheckListBox* m_FeatList;
117  wxRadioBox* m_Modify;
118 
120  const objects::CFeat_id::TLocal* m_Featid;
121  /// Control identifiers
122  enum {
125  ID_RADIOBOX = 10002
126  };
127 ////@end CCrossRefFeatsDlg member variables
128 };
129 
131 
132 #endif
133  // _GUI_WIDGETS_EDIT___CROSSREF_FEATS_DLG_HPP_
wxCheckListBox * m_FeatList
void CreateControls()
Creates the controls and sizers.
const objects::CFeat_id::TLocal * m_Featid
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CRef< CCmdComposite > GetCommand()
~CCrossRefFeatsDlg()
Destructor.
void Init()
Initialises member variables.
CCrossRefFeatsDlg()
Constructors.
CCrossRefFeatsDlg(wxWindow *parent, TFeatVec &feats, const objects::CFeat_id::TLocal &feat_id, wxWindowID id=ID_CCROSSREFFEATSDLG, const wxString &caption=_("Cross referenced features"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
bool Create(wxWindow *parent, wxWindowID id=ID_CCROSSREFFEATSDLG, const wxString &caption=_("Cross referenced features"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
vector< objects::CSeq_feat_Handle > TFeatVec
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CFeat_id –.
Definition: Feat_id.hpp:66
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CCROSSREFFEATSDLG_STYLE
#define SYMBOL_CCROSSREFFEATSDLG_TITLE
#define SYMBOL_CCROSSREFFEATSDLG_POSITION
#define SYMBOL_CCROSSREFFEATSDLG_IDNAME
#define SYMBOL_CCROSSREFFEATSDLG_SIZE
#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 Mon Apr 22 04:07:28 2024 by modify_doxy.py rev. 669887