28 #ifndef _SUBPREPFIELDEDITOR_H_
29 #define _SUBPREPFIELDEDITOR_H_
42 #include <wx/stattext.h>
43 #include <wx/choice.h>
44 #include <wx/textctrl.h>
63 #define ID_CSUBPREPFIELDEDITOR 10093
65 #define SYMBOL_CSUBPREPFIELDEDITOR_STYLE wxTAB_TRAVERSAL
66 #define SYMBOL_CSUBPREPFIELDEDITOR_TITLE _("SubPrepFieldEditor")
67 #define SYMBOL_CSUBPREPFIELDEDITOR_IDNAME ID_CSUBPREPFIELDEDITOR
68 #define SYMBOL_CSUBPREPFIELDEDITOR_SIZE wxSize(400, 300)
69 #define SYMBOL_CSUBPREPFIELDEDITOR_POSITION wxDefaultPosition
71 #define ID_GLOBALTEXT 10096
72 #define ID_GLOBALCHOICE 10097
73 #define ID_CLEARCTRL 10098
74 #define ID_EDITCTRL 10099
75 #define ID_REGISTER_URL 10100
137 bool must_choose =
false,
bool required =
false,
138 string default_val =
"",
140 bool allow_mix =
true);
wxBoxSizer * m_ValueSizer
bool x_SetEditorType(bool mixed, bool has_choices)
void OnEditctrlHyperlinkClicked(wxHyperlinkEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CSubPrep_panel * x_GetParent()
CSubPrepFieldEditor()
Constructors.
const string GetColumnName()
bool Create(wxWindow *parent, wxWindowID id=10093, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void OnRegisterHyperlinkClicked(wxHyperlinkEvent &event)
void x_ShowStar(bool show)
void x_SetEditorControls(bool mixed, string message)
void SetConverter(string label, string column_name, CTableFieldCommandConverter *converter, bool must_choose=false, bool required=false, string default_val="", string url="", bool allow_mix=true)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnClearValues(wxHyperlinkEvent &event)
bool UpdateValues(string default_val="")
void CreateControls()
Creates the controls and sizers.
void x_SetOneValue(string new_val)
void Init()
Initialises member variables.
CTableFieldCommandConverter * m_Converter
wxTextCtrl * m_GlobalText
objects::CSeq_entry_Handle m_Seh
void OnGlobalchoiceSelected(wxCommandEvent &event)
@end CSubPrepFieldEditor event handler declarations
static bool ShowToolTips()
Should we show tooltips?
ICommandProccessor * m_CmdProcessor
~CSubPrepFieldEditor()
Destructor.
void OnLeaveTextColumnWindow(wxMouseEvent &event)
Undo/Redo interface for editing operations.
IWorkbench is the central interface in the application framework.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_CSUBPREPFIELDEDITOR_POSITION
#define SYMBOL_CSUBPREPFIELDEDITOR_IDNAME
#define SYMBOL_CSUBPREPFIELDEDITOR_SIZE
#define SYMBOL_CSUBPREPFIELDEDITOR_STYLE