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

Go to the SVN repository for this file.

1 /* $Id: apply_indexer_comments.hpp 45740 2020-11-09 14:38:57Z 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: Igor Filippov
27  */
28 #ifndef _APPLY_INDEXER_COMMENTS_H_
29 #define _APPLY_INDEXER_COMMENTS_H_
30 
31 #include <corelib/ncbistd.hpp>
35 
36 
37 class wxChoice;
38 class wxTextCtrl;
39 
41 
43 
44 /*!
45  * Control identifiers
46  */
47 
48 ////@begin control identifiers
49 #define ID_CAPPLY_INDEXER_COMMENTS 11000
50 #define SYMBOL_CAPPLY_INDEXER_COMMENTS_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
51 #define SYMBOL_CAPPLY_INDEXER_COMMENTS_TITLE _("Apply Indexer Comments")
52 #define SYMBOL_CAPPLY_INDEXER_COMMENTS_IDNAME ID_CAPPLY_INDEXER_COMMENTS
53 #define SYMBOL_CAPPLY_INDEXER_COMMENTS_SIZE wxDefaultSize
54 #define SYMBOL_CAPPLY_INDEXER_COMMENTS_POSITION wxDefaultPosition
55 ////@end control identifiers
56 
58 {
59  DECLARE_DYNAMIC_CLASS( CApplyIndexerComments )
60  DECLARE_EVENT_TABLE()
61 
62 public:
63  /// Constructors
65  CApplyIndexerComments( wxWindow* parent, IWorkbench *wb,
67  const wxString& caption = SYMBOL_CAPPLY_INDEXER_COMMENTS_TITLE,
68  const wxPoint& pos = SYMBOL_CAPPLY_INDEXER_COMMENTS_POSITION,
71 
72  /// Creation
73  bool Create( wxWindow* parent,
75  const wxString& caption = SYMBOL_CAPPLY_INDEXER_COMMENTS_TITLE,
76  const wxPoint& pos = SYMBOL_CAPPLY_INDEXER_COMMENTS_POSITION,
79 
80  /// Destructor
82 
83  /// Initialises member variables
84  void Init();
85 
86  /// Creates the controls and sizers
87  void CreateControls();
88 
89  /// Retrieves bitmap resources
90  wxBitmap GetBitmapResource( const wxString& name );
91 
92  /// Retrieves icon resources
93  wxIcon GetIconResource( const wxString& name );
94 
95  /// Should we show tooltips?
96  static bool ShowToolTips();
97 
99  virtual string GetErrorMessage(){ return m_ErrorMessage;}
100  void OnSelect(wxCommandEvent& event);
101 
102 private:
103  wxChoice* m_Choice;
104  wxTextCtrl* m_TextCtrl;
106  wxChoice* m_ChoiceType;
107 
108  void ApplyToCSeq_entry(objects::CSeq_entry_Handle tse, CCmdComposite* composite);
111  string GetTextComment(const string &str);
112 };
113 
115 
116 #endif
117  // _APPLY_INDEXER_COMMENTS_H_
#define SYMBOL_CAPPLY_INDEXER_COMMENTS_POSITION
#define SYMBOL_CAPPLY_INDEXER_COMMENTS_STYLE
#define SYMBOL_CAPPLY_INDEXER_COMMENTS_IDNAME
#define SYMBOL_CAPPLY_INDEXER_COMMENTS_SIZE
#define SYMBOL_CAPPLY_INDEXER_COMMENTS_TITLE
void Init()
Initialises member variables.
void ApplyToCSeq_entry(objects::CSeq_entry_Handle tse, CCmdComposite *composite)
void CreateControls()
Creates the controls and sizers.
static bool ShowToolTips()
Should we show tooltips?
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
virtual CRef< CCmdComposite > GetCommand()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
string GetTextComment(const string &str)
CRef< objects::CUser_object > GetUserObjectComment(const string &str)
CStringConstraintPanel * m_StringConstraintPanel
void OnSelect(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=11000, const wxString &caption=_("Apply Indexer Comments"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CRef< objects::CSeqdesc > CreateNewComment()
string m_ErrorMessage
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * str(char *buf, int n)
Definition: stats.c:84
#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:28 2024 by modify_doxy.py rev. 669887