32 #include <wx/bitmap.h>
35 #include <wx/stattext.h>
36 #include <wx/statbox.h>
37 #include <wx/button.h>
38 #include <wx/dialog.h>
39 #include <wx/srchctrl.h>
102 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
103 wxDialog::Create( parent,
id, caption, pos,
size, style );
108 GetSizer()->SetSizeHints(
this);
152 wxFlexGridSizer* itemFlexGridSizer2 =
new wxFlexGridSizer(0, 1, 0, 0);
153 itemDialog1->SetSizer(itemFlexGridSizer2);
155 wxStaticBox* itemStaticBoxSizer3Static =
new wxStaticBox(itemDialog1,
wxID_ANY,
_(
"Type any part of feature name to filter list"));
156 wxStaticBoxSizer* itemStaticBoxSizer3 =
new wxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);
157 itemFlexGridSizer2->Add(itemStaticBoxSizer3, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
159 m_Filter =
new wxSearchCtrl( itemDialog1,
ID_SEARCHCTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
160 itemStaticBoxSizer3->Add(
m_Filter, 0, wxGROW|wxALL, 5);
163 itemFlexGridSizer2->Add(
m_Panel, 1, wxGROW|wxGROW|wxALL, 5);
165 wxStaticLine* itemStaticLine6 =
new wxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
166 itemFlexGridSizer2->Add(itemStaticLine6, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
168 wxStdDialogButtonSizer* itemStdDialogButtonSizer7 =
new wxStdDialogButtonSizer;
170 itemFlexGridSizer2->Add(itemStdDialogButtonSizer7, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
171 wxButton* itemButton8 =
new wxButton( itemDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
172 itemStdDialogButtonSizer7->AddButton(itemButton8);
174 wxButton* itemButton9 =
new wxButton( itemDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
175 itemStdDialogButtonSizer7->AddButton(itemButton9);
177 itemStdDialogButtonSizer7->Realize();
179 itemFlexGridSizer2->AddGrowableRow(1);
180 itemFlexGridSizer2->AddGrowableCol(0);
242 int action = wxDialog::ShowModal();
244 if (action == wxID_OK ) {
void OnSearchctrlSearchButtonClick(wxCommandEvent &event)
wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN event handler for ID_SEARCHCTRL
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
void SetRegistryPath(const string &rpath)
void GetSelected(TFeatTypeItemSet &feat_types)
~CFeatureCheckDialog()
Destructor.
CFeatureCheckDialog()
Constructors.
void OnSearchctrlTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_SEARCHCTRL
bool Create(wxWindow *parent, wxWindowID id=ID_CFEATURECHECKDIALOG, const wxString &caption=_("Select Feature Types"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void SetSelected(TFeatTypeItemSet &feat_types)
CFeatureCheckPanel * m_Panel
void CreateControls()
Creates the controls and sizers.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void x_Serialize(bool bRead=true)
vector< string > TStateVector
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
class CRegistryReadView provides a nested hierarchical view at a particular key.
bool HasField(const string &key) const
Does a field with this section and key exist in this view?
void GetStringVec(const string &key, vector< string > &val) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
static const char * kSelectedNodes
static const char * kExpandedNodes
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
string ToStdString(const wxString &s)