NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CLDFilterDialog Class Reference

Search Toolkit Book for CLDFilterDialog

#include <gui/packages/pkg_snp/ld/ld_filter_dlg.hpp>

+ Inheritance diagram for CLDFilterDialog:
+ Collaboration diagram for CLDFilterDialog:

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...
 
CLDFilterParamsGetData ()
 Data access. More...
 
const CLDFilterParamsGetData () 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...
 

Detailed Description

CLDFilterDialog class declaration

Definition at line 70 of file ld_filter_dlg.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_LDBLOCKFILTER 
ID_SLIDER 
ID_SLIDER1 

Definition at line 130 of file ld_filter_dlg.hpp.

Constructor & Destructor Documentation

◆ CLDFilterDialog() [1/2]

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() [2/2]

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::~CLDFilterDialog ( )

Destructor.

CLDFilterDialog destructor

Definition at line 106 of file ld_filter_dlg.cpp.

Member Function Documentation

◆ CreateControls()

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().

◆ 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().

◆ GetBitmapResource()

wxBitmap CLDFilterDialog::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 204 of file ld_filter_dlg.cpp.

◆ GetData() [1/2]

CLDFilterParams& CLDFilterDialog::GetData ( void  )
inline

Data access.

Definition at line 108 of file ld_filter_dlg.hpp.

References m_data.

Referenced by CreateControls(), and CLDBlockTrack::x_OnIconClicked().

◆ GetData() [2/2]

const CLDFilterParams& CLDFilterDialog::GetData ( void  ) const
inline

Definition at line 109 of file ld_filter_dlg.hpp.

References m_data.

◆ GetIconResource()

wxIcon CLDFilterDialog::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 217 of file ld_filter_dlg.cpp.

◆ Init()

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().

◆ OnLengthSliderUpdated()

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().

◆ OnScoreSliderUpdated()

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().

◆ SetData()

void CLDFilterDialog::SetData ( const CLDFilterParams data)
inline

Definition at line 110 of file ld_filter_dlg.hpp.

References data, and m_data.

Referenced by CLDBlockTrack::x_OnIconClicked().

◆ ShowToolTips()

bool CLDFilterDialog::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 195 of file ld_filter_dlg.cpp.

◆ TransferDataToWindow()

bool CLDFilterDialog::TransferDataToWindow ( )
virtual

Transfer data to the window.

Definition at line 266 of file ld_filter_dlg.cpp.

References dummy, OnLengthSliderUpdated(), and OnScoreSliderUpdated().

Member Data Documentation

◆ m_ctrlLength

wxSlider* CLDFilterDialog::m_ctrlLength

Definition at line 125 of file ld_filter_dlg.hpp.

Referenced by CreateControls(), Init(), and OnLengthSliderUpdated().

◆ m_ctrlScore

wxSlider* CLDFilterDialog::m_ctrlScore

Definition at line 123 of file ld_filter_dlg.hpp.

Referenced by CreateControls(), Init(), and OnScoreSliderUpdated().

◆ m_data

CLDFilterParams CLDFilterDialog::m_data

The data edited by this window.

Definition at line 128 of file ld_filter_dlg.hpp.

Referenced by GetData(), and SetData().

◆ m_txtLength

wxStaticText* CLDFilterDialog::m_txtLength

Definition at line 126 of file ld_filter_dlg.hpp.

Referenced by CreateControls(), Init(), and OnLengthSliderUpdated().

◆ m_txtScore

wxStaticText* CLDFilterDialog::m_txtScore

Definition at line 124 of file ld_filter_dlg.hpp.

Referenced by CreateControls(), Init(), and OnScoreSliderUpdated().


The documentation for this class was generated from the following files:
Modified on Fri May 24 14:56:18 2024 by modify_doxy.py rev. 669887