NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
SpinBut Class Reference

This class is a extension to the standard wxSpinCtrl to combine it with a read- and changeable label. More...

#include <grouppanel.hpp>

Inheritance diagram for SpinBut:
Collaboration diagram for SpinBut:

Public Member Functions

 SpinBut (wxWindow *parent, wxWindowID id, const wxSize &size, int nMin, int nMax, int nInitial)
 
void SetLabel (const wxString &label)
 Set a new label. More...
 
wxString GetLabel ()
 Get the current label. More...
 
virtual bool Show (bool show)
 Show or hide the label and the control. More...
 
virtual bool Enable (bool enable)
 Enable or disable the label and the control. More...
 

Public Attributes

wxStaticText * m_label
 

Detailed Description

This class is a extension to the standard wxSpinCtrl to combine it with a read- and changeable label.

Definition at line 37 of file grouppanel.hpp.

Constructor & Destructor Documentation

◆ SpinBut()

SpinBut::SpinBut ( wxWindow *  parent,
wxWindowID  id,
const wxSize &  size,
int  nMin,
int  nMax,
int  nInitial 
)
inline

Definition at line 42 of file grouppanel.hpp.

Member Function Documentation

◆ Enable()

virtual bool SpinBut::Enable ( bool  enable)
inlinevirtual

Enable or disable the label and the control.

Parameters
enablebool
Returns
virtual bool

Definition at line 96 of file grouppanel.hpp.

References m_label.

Referenced by CustomWindow::layoutChild().

◆ GetLabel()

wxString SpinBut::GetLabel ( )
inline

Get the current label.

Returns
wxString

Definition at line 64 of file grouppanel.hpp.

References m_label.

◆ SetLabel()

void SpinBut::SetLabel ( const wxString &  label)
inline

Set a new label.

Parameters
labelconst wxString&
Returns
void

Definition at line 52 of file grouppanel.hpp.

References m_label.

◆ Show()

virtual bool SpinBut::Show ( bool  show)
inlinevirtual

Show or hide the label and the control.

Parameters
showbool
Returns
virtual bool

Definition at line 80 of file grouppanel.hpp.

References m_label.

Referenced by CustomWindow::layoutChild().

Member Data Documentation

◆ m_label

wxStaticText* SpinBut::m_label

Definition at line 40 of file grouppanel.hpp.

Referenced by GroupPanel::CreateSpinControl(), Enable(), GetLabel(), SetLabel(), and Show().


The documentation for this class was generated from the following file: