1 #ifndef GUI_PKG_SEQ_EDIT___ORGADVANCED_PANEL__HPP
2 #define GUI_PKG_SEQ_EDIT___ORGADVANCED_PANEL__HPP
35 #include <wx/hyperlink.h>
42 class wxScrolledWindow;
43 class wxFlexGridSizer;
53 #define SYMBOL_CORGADVANCEDPANEL_STYLE wxTAB_TRAVERSAL
54 #define SYMBOL_CORGADVANCEDPANEL_TITLE _("Organism Advanced Panel")
55 #define SYMBOL_CORGADVANCEDPANEL_IDNAME ID_CORGADVANCEDPANEL
56 #define SYMBOL_CORGADVANCEDPANEL_SIZE wxSize(400, 300)
57 #define SYMBOL_CORGADVANCEDPANEL_POSITION wxDefaultPosition
75 objects::CSeq_entry_Handle seh,
82 bool Create( wxWindow* parent,
95 void CreateControls();
97 void ApplyBioSource(objects::CBioSource& src);
98 virtual bool TransferDataToWindow();
99 virtual bool TransferDataFromWindow();
106 void OnAddAttributeHyperlinkClicked( wxHyperlinkEvent& event );
108 void OnDeleteQualifier(wxHyperlinkEvent& event);
115 wxBitmap GetBitmapResource(
const wxString& name );
118 wxIcon GetIconResource(
const wxString& name );
122 static bool ShowToolTips();
125 virtual wxString
GetAnchor() {
return _(
"organism-info-additional-qualifiers"); }
129 void x_AddEmptyRow();
130 void x_AddRowToWindow(wxWindow*
row);
133 void x_SetBioSourceModifier(objects::CBioSource& src,
const string& name,
const string&
value);
134 void x_SetBioSourceModifier(
const string& name,
const string&
value);
135 bool x_ApplyChangesToSource(objects::CBioSource& src);
138 int m_RowHeight{ 0 };
140 int m_TotalHeight{ 0 };
141 int m_TotalWidth{ 0 };
142 int m_ScrollRate{ 0 };
155 ID_CORGADVANCEDPANEL = 6592,
156 ID_ORGADVSCROLLEDWND = 6593,
157 ID_ORGADVHYPERLINK = 6594,
158 ID_ORGADVDELETE = 6595
CRef< objects::CBioSource > m_Source
virtual void SetSeqEntryHandle(objects::CSeq_entry_Handle seh)
virtual wxString GetName() const
wxScrolledWindow * m_ScrolledWindow
objects::CSeq_entry_Handle m_Seh
ICommandProccessor * m_CmdProcessor
virtual wxString GetAnchor()
wxFlexGridSizer * m_Sizer
Undo/Redo interface for editing operations.
virtual void ApplyCommand()
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.
#define NCBI_GUIWIDGETS_EDIT_EXPORT
Defines to provide correct exporting from DLLs in Windows.
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
#define SYMBOL_CORGADVANCEDPANEL_TITLE
#define SYMBOL_CORGADVANCEDPANEL_STYLE
#define SYMBOL_CORGADVANCEDPANEL_SIZE
#define SYMBOL_CORGADVANCEDPANEL_POSITION
#define SYMBOL_CORGADVANCEDPANEL_IDNAME
#define row(bind, expected)