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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___SEQID_FIELD_NAME_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___SEQID_FIELD_NAME_PANEL__HPP
3 /* $Id: seqid_field_name_panel.hpp 45227 2020-06-18 18:26:59Z 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: Igor Filippov
29  */
30 
31 #include <corelib/ncbistd.hpp>
33 #include <wx/panel.h>
34 
35 
37 
38 
39 /*!
40  * CSeqIdPanel class declaration
41  */
42 
44 {
45  DECLARE_DYNAMIC_CLASS( CSeqIdPanel )
46 
47 public:
48  CSeqIdPanel();
49  CSeqIdPanel(wxWindow* parent);
50 
51  bool Create(wxWindow* parent);
52 
54 
55  void Init() {}
56 
57  virtual string GetFieldName(const bool subfield = false);
58  virtual bool SetFieldName(const string& field);
59  virtual string GetMacroFieldName(const string &target, const string& selected_field = kEmptyStr);
60 };
61 
62 
63 /*!
64 * CFileIdPanel class declaration
65 */
66 
68 {
69  DECLARE_DYNAMIC_CLASS(CFileIdPanel)
70 
71 public:
72  CFileIdPanel();
73  CFileIdPanel(wxWindow* parent);
74 
75  bool Create(wxWindow* parent);
76 
78 
79  void Init() {}
80 
81  virtual string GetFieldName(const bool subfield = false);
82  virtual bool SetFieldName(const string& field);
83  virtual string GetMacroFieldName(const string &target, const string& selected_field = kEmptyStr);
84 };
85 
87 
88 #endif
89  // GUI_WIDGETS_EDIT___SEQID_FIELD_NAME_PANEL__HPP
virtual string GetFieldName(const bool subfield=false)=0
Returns the name of the field as selected in the panel.
virtual string GetMacroFieldName(const string &target, const string &selected_field=kEmptyStr)
virtual bool SetFieldName(const string &field)=0
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
#define kEmptyStr
Definition: ncbistr.hpp:123
#define NCBI_GUIWIDGETS_EDIT_EXPORT
Definition: gui_export.h:526
Modified on Sat Apr 13 11:47:58 2024 by modify_doxy.py rev. 669887