NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FloatingPointSpinCtrl Class Reference

Search Toolkit Book for FloatingPointSpinCtrl

#include <algo/structure/wx_tools/wx_tools.hpp>

+ Inheritance diagram for FloatingPointSpinCtrl:
+ Collaboration diagram for FloatingPointSpinCtrl:

Public Member Functions

 FloatingPointSpinCtrl (wxWindow *parent, double min, double max, double increment, double initial, const wxPoint &textCtrlPos, const wxSize &textCtrlSize, long textCtrlStyle, const wxPoint &spinCtrlPos, const wxSize &spinCtrlSize)
 
virtual ~FloatingPointSpinCtrl (void)
 
bool GetDouble (double *value) const
 
bool SetDouble (double value)
 
wxTextCtrl * GetTextCtrl (void) const
 
wxSpinButton * GetSpinButton (void) const
 
- Public Member Functions inherited from CustomSpinCtrl
virtual ~CustomSpinCtrl (void)
 

Private Member Functions

void OnSpinButtonUp (wxSpinEvent &event)
 
void OnSpinButtonDown (wxSpinEvent &event)
 

Private Attributes

FloatingPointTextCtrlfpTextCtrl
 
NotifyingSpinButtonspinButton
 
double minVal
 
double maxVal
 
double incrVal
 

Detailed Description

Definition at line 185 of file wx_tools.hpp.

Constructor & Destructor Documentation

◆ FloatingPointSpinCtrl()

FloatingPointSpinCtrl::FloatingPointSpinCtrl ( wxWindow *  parent,
double  min,
double  max,
double  increment,
double  initial,
const wxPoint &  textCtrlPos,
const wxSize &  textCtrlSize,
long  textCtrlStyle,
const wxPoint &  spinCtrlPos,
const wxSize &  spinCtrlSize 
)

◆ ~FloatingPointSpinCtrl()

virtual FloatingPointSpinCtrl::~FloatingPointSpinCtrl ( void  )
inlinevirtual

Definition at line 192 of file wx_tools.hpp.

Member Function Documentation

◆ GetDouble()

bool FloatingPointSpinCtrl::GetDouble ( double *  value) const

◆ GetSpinButton()

wxSpinButton* FloatingPointSpinCtrl::GetSpinButton ( void  ) const
inline

Definition at line 207 of file wx_tools.hpp.

References spinButton.

◆ GetTextCtrl()

wxTextCtrl* FloatingPointSpinCtrl::GetTextCtrl ( void  ) const
inline

Definition at line 206 of file wx_tools.hpp.

References fpTextCtrl.

Referenced by LayoutDetailsPage(), SetupAdvancedPage(), and SetupAnimationDialog().

◆ OnSpinButtonDown()

void FloatingPointSpinCtrl::OnSpinButtonDown ( wxSpinEvent &  event)
privatevirtual

Implements CustomSpinCtrl.

Definition at line 280 of file wx_tools.cpp.

References GetDouble(), incrVal, minVal, SetDouble(), and value.

◆ OnSpinButtonUp()

void FloatingPointSpinCtrl::OnSpinButtonUp ( wxSpinEvent &  event)
privatevirtual

Implements CustomSpinCtrl.

Definition at line 271 of file wx_tools.cpp.

References GetDouble(), incrVal, maxVal, SetDouble(), and value.

◆ SetDouble()

bool FloatingPointSpinCtrl::SetDouble ( double  value)

Definition at line 259 of file wx_tools.cpp.

References fpTextCtrl, maxVal, value, and wxT.

Referenced by FloatingPointSpinCtrl(), OnSpinButtonDown(), and OnSpinButtonUp().

Member Data Documentation

◆ fpTextCtrl

FloatingPointTextCtrl* FloatingPointSpinCtrl::fpTextCtrl
private

Definition at line 198 of file wx_tools.hpp.

Referenced by FloatingPointSpinCtrl(), GetDouble(), GetTextCtrl(), and SetDouble().

◆ incrVal

double FloatingPointSpinCtrl::incrVal
private

Definition at line 200 of file wx_tools.hpp.

Referenced by OnSpinButtonDown(), and OnSpinButtonUp().

◆ maxVal

double FloatingPointSpinCtrl::maxVal
private

Definition at line 200 of file wx_tools.hpp.

Referenced by OnSpinButtonUp(), and SetDouble().

◆ minVal

double FloatingPointSpinCtrl::minVal
private

Definition at line 200 of file wx_tools.hpp.

Referenced by OnSpinButtonDown().

◆ spinButton

NotifyingSpinButton* FloatingPointSpinCtrl::spinButton
private

Definition at line 199 of file wx_tools.hpp.

Referenced by GetSpinButton().


The documentation for this class was generated from the following files:
Modified on Wed Feb 21 09:58:07 2024 by modify_doxy.py rev. 669887