NCBI C++ ToolKit
|
Search Toolkit Book for CLDFilterDialog
#include <gui/packages/pkg_snp/ld/ld_filter_dlg.hpp>
Public Types | |
enum | { ID_LDBLOCKFILTER = 10003 , ID_SLIDER = 10004 , ID_SLIDER1 = 10005 } |
Control identifiers. More... | |
Public Member Functions | |
CLDFilterDialog () | |
Constructors. More... | |
CLDFilterDialog (wxWindow *parent, wxWindowID id=ID_LDBLOCKFILTER, const wxString &caption=_("LD BLock Filter"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | CreateX (wxWindow *parent, wxWindowID id=ID_LDBLOCKFILTER, const wxString &caption=_("LD BLock Filter"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CLDFilterDialog () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
virtual bool | TransferDataToWindow () |
Transfer data to the window. More... | |
void | OnScoreSliderUpdated (wxCommandEvent &event) |
wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_SLIDER More... | |
void | OnLengthSliderUpdated (wxCommandEvent &event) |
wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_SLIDER1 More... | |
CLDFilterParams & | GetData () |
Data access. More... | |
const CLDFilterParams & | GetData () const |
void | SetData (const CLDFilterParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxSlider * | m_ctrlScore |
wxStaticText * | m_txtScore |
wxSlider * | m_ctrlLength |
wxStaticText * | m_txtLength |
CLDFilterParams | m_data |
The data edited by this window. More... | |
CLDFilterDialog class declaration
Definition at line 70 of file ld_filter_dlg.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_LDBLOCKFILTER | |
ID_SLIDER | |
ID_SLIDER1 |
Definition at line 130 of file ld_filter_dlg.hpp.
CLDFilterDialog::CLDFilterDialog | ( | ) |
Constructors.
CLDFilterDialog type definition
CLDFilterDialog event table definition
CLDFilterDialog constructors
Definition at line 69 of file ld_filter_dlg.cpp.
References Init().
CLDFilterDialog::CLDFilterDialog | ( | wxWindow * | parent, |
wxWindowID | id = ID_LDBLOCKFILTER , |
||
const wxString & | caption = _("LD BLock Filter") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 74 of file ld_filter_dlg.cpp.
References CreateX(), Init(), and ncbi::grid::netcache::search::fields::size.
CLDFilterDialog::~CLDFilterDialog | ( | ) |
void CLDFilterDialog::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CLDFilterDialog
Definition at line 132 of file ld_filter_dlg.cpp.
References _, GetData(), ID_SLIDER, ID_SLIDER1, m_ctrlLength, m_ctrlScore, m_txtLength, and m_txtScore.
Referenced by CreateX().
bool CLDFilterDialog::CreateX | ( | wxWindow * | parent, |
wxWindowID | id = ID_LDBLOCKFILTER , |
||
const wxString & | caption = _("LD BLock Filter") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
CLDFilterDialog creator
Definition at line 85 of file ld_filter_dlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CLDFilterDialog().
wxBitmap CLDFilterDialog::GetBitmapResource | ( | const wxString & | name | ) |
|
inline |
Data access.
Definition at line 108 of file ld_filter_dlg.hpp.
References m_data.
Referenced by CreateControls(), and CLDBlockTrack::x_OnIconClicked().
|
inline |
Definition at line 109 of file ld_filter_dlg.hpp.
References m_data.
wxIcon CLDFilterDialog::GetIconResource | ( | const wxString & | name | ) |
void CLDFilterDialog::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 117 of file ld_filter_dlg.cpp.
References m_ctrlLength, m_ctrlScore, m_txtLength, m_txtScore, and NULL.
Referenced by CLDFilterDialog().
void CLDFilterDialog::OnLengthSliderUpdated | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_SLIDER1
wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_SLIDER1
Definition at line 246 of file ld_filter_dlg.cpp.
References int, label, m_ctrlLength, m_txtLength, and wxT.
Referenced by TransferDataToWindow().
void CLDFilterDialog::OnScoreSliderUpdated | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_SLIDER
wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_SLIDER
Definition at line 231 of file ld_filter_dlg.cpp.
References label, m_ctrlScore, m_txtScore, and wxT.
Referenced by TransferDataToWindow().
|
inline |
Definition at line 110 of file ld_filter_dlg.hpp.
Referenced by CLDBlockTrack::x_OnIconClicked().
|
static |
|
virtual |
Transfer data to the window.
Definition at line 266 of file ld_filter_dlg.cpp.
References dummy, OnLengthSliderUpdated(), and OnScoreSliderUpdated().
wxSlider* CLDFilterDialog::m_ctrlLength |
Definition at line 125 of file ld_filter_dlg.hpp.
Referenced by CreateControls(), Init(), and OnLengthSliderUpdated().
wxSlider* CLDFilterDialog::m_ctrlScore |
Definition at line 123 of file ld_filter_dlg.hpp.
Referenced by CreateControls(), Init(), and OnScoreSliderUpdated().
CLDFilterParams CLDFilterDialog::m_data |
The data edited by this window.
Definition at line 128 of file ld_filter_dlg.hpp.
wxStaticText* CLDFilterDialog::m_txtLength |
Definition at line 126 of file ld_filter_dlg.hpp.
Referenced by CreateControls(), Init(), and OnLengthSliderUpdated().
wxStaticText* CLDFilterDialog::m_txtScore |
Definition at line 124 of file ld_filter_dlg.hpp.
Referenced by CreateControls(), Init(), and OnScoreSliderUpdated().