LibreOffice Module vcl (master)  1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
weld::TimeSpinButton Class Reference

#include <weld.hxx>

Collaboration diagram for weld::TimeSpinButton:
[legend]

Public Member Functions

 TimeSpinButton (std::unique_ptr< SpinButton > pSpinButton, TimeFieldFormat eFormat)
 
void set_value (const tools::Time &rTime)
 
tools::Time get_value () const
 
void connect_value_changed (const Link< TimeSpinButton &, void > &rLink)
 
void set_sensitive (bool sensitive)
 
bool get_sensitive () const
 
void set_visible (bool bShow)
 
bool get_visible () const
 
void grab_focus ()
 
bool has_focus () const
 
void show ()
 
void hide ()
 
void save_value ()
 
bool get_value_changed_from_saved () const
 
void set_position (int nCursorPos)
 
void set_text (const OUString &rText)
 
OUString get_text () const
 
weld::SpinButtonget_widget ()
 

Protected Member Functions

 DECL_LINK (spin_button_value_changed, weld::SpinButton &, void)
 
 DECL_LINK (spin_button_output, weld::SpinButton &, void)
 
 DECL_LINK (spin_button_input, int *result, bool)
 
 DECL_LINK (spin_button_cursor_position, weld::Entry &, void)
 
void signal_value_changed ()
 
OUString format_number (int nValue) const
 
void update_width_chars ()
 

Static Protected Member Functions

static tools::Time ConvertValue (int nValue)
 
static int ConvertValue (const tools::Time &rTime)
 

Protected Attributes

TimeFieldFormat const m_eFormat
 
std::unique_ptr< weld::SpinButtonm_xSpinButton
 
Link< TimeSpinButton &, voidm_aValueChangedHdl
 

Detailed Description

Definition at line 1615 of file weld.hxx.

Constructor & Destructor Documentation

weld::TimeSpinButton::TimeSpinButton ( std::unique_ptr< SpinButton pSpinButton,
TimeFieldFormat  eFormat 
)
inline

Definition at line 1635 of file weld.hxx.

References LINK.

Member Function Documentation

void weld::TimeSpinButton::connect_value_changed ( const Link< TimeSpinButton &, void > &  rLink)
inline

Definition at line 1652 of file weld.hxx.

tools::Time weld::TimeSpinButton::ConvertValue ( int  nValue)
staticprotected

Definition at line 364 of file builder.cxx.

References tools::Time::MakeTimeFromMS().

Referenced by format_number().

int weld::TimeSpinButton::ConvertValue ( const tools::Time rTime)
staticprotected

Definition at line 371 of file builder.cxx.

References tools::Time::GetMSFromTime().

weld::TimeSpinButton::DECL_LINK ( spin_button_value_changed  ,
weld::SpinButton ,
void   
)
protected
weld::TimeSpinButton::DECL_LINK ( spin_button_output  ,
weld::SpinButton ,
void   
)
protected
weld::TimeSpinButton::DECL_LINK ( spin_button_input  ,
int result,
bool   
)
protected
weld::TimeSpinButton::DECL_LINK ( spin_button_cursor_position  ,
weld::Entry ,
void   
)
protected
OUString weld::TimeSpinButton::format_number ( int  nValue) const
protected
bool weld::TimeSpinButton::get_sensitive ( ) const
inline

Definition at line 1658 of file weld.hxx.

OUString weld::TimeSpinButton::get_text ( ) const
inline

Definition at line 1672 of file weld.hxx.

tools::Time weld::TimeSpinButton::get_value ( ) const
inline

Definition at line 1650 of file weld.hxx.

bool weld::TimeSpinButton::get_value_changed_from_saved ( ) const
inline

Definition at line 1666 of file weld.hxx.

bool weld::TimeSpinButton::get_visible ( ) const
inline

Definition at line 1660 of file weld.hxx.

weld::SpinButton& weld::TimeSpinButton::get_widget ( )
inline

Definition at line 1673 of file weld.hxx.

void weld::TimeSpinButton::grab_focus ( )
inline

Definition at line 1661 of file weld.hxx.

bool weld::TimeSpinButton::has_focus ( ) const
inline

Definition at line 1662 of file weld.hxx.

void weld::TimeSpinButton::hide ( )
inline

Definition at line 1664 of file weld.hxx.

void weld::TimeSpinButton::save_value ( )
inline

Definition at line 1665 of file weld.hxx.

void weld::TimeSpinButton::set_position ( int  nCursorPos)
inline

Definition at line 1670 of file weld.hxx.

void weld::TimeSpinButton::set_sensitive ( bool  sensitive)
inline

Definition at line 1657 of file weld.hxx.

void weld::TimeSpinButton::set_text ( const OUString &  rText)
inline

Definition at line 1671 of file weld.hxx.

void weld::TimeSpinButton::set_value ( const tools::Time rTime)
inline

Definition at line 1648 of file weld.hxx.

void weld::TimeSpinButton::set_visible ( bool  bShow)
inline

Definition at line 1659 of file weld.hxx.

void weld::TimeSpinButton::show ( )
inline

Definition at line 1663 of file weld.hxx.

void weld::TimeSpinButton::signal_value_changed ( )
inlineprotected

Definition at line 1627 of file weld.hxx.

References Link< class, class >::Call().

void weld::TimeSpinButton::update_width_chars ( )
protected

Definition at line 354 of file builder.cxx.

References format_number(), m_xSpinButton, max, and min.

Member Data Documentation

Link<TimeSpinButton&, void> weld::TimeSpinButton::m_aValueChangedHdl
protected

Definition at line 1620 of file weld.hxx.

TimeFieldFormat const weld::TimeSpinButton::m_eFormat
protected

Definition at line 1618 of file weld.hxx.

Referenced by format_number().

std::unique_ptr<weld::SpinButton> weld::TimeSpinButton::m_xSpinButton
protected

Definition at line 1619 of file weld.hxx.

Referenced by update_width_chars().


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