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

#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
 
void connect_focus_in (const Link< Widget &, void > &rLink)
 
void connect_focus_out (const Link< Widget &, void > &rLink)
 
weld::SpinButtonget_widget ()
 

Private 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 Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 1727 of file weld.hxx.

Constructor & Destructor Documentation

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

Definition at line 1746 of file weld.hxx.

References LINK.

Member Function Documentation

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

Definition at line 1784 of file weld.hxx.

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

Definition at line 1788 of file weld.hxx.

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

Definition at line 1763 of file weld.hxx.

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

Definition at line 380 of file builder.cxx.

References tools::Time::MakeTimeFromMS().

Referenced by format_number().

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

Definition at line 387 of file builder.cxx.

References tools::Time::GetMSFromTime().

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

Definition at line 1769 of file weld.hxx.

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

Definition at line 1783 of file weld.hxx.

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

Definition at line 1761 of file weld.hxx.

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

Definition at line 1777 of file weld.hxx.

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

Definition at line 1771 of file weld.hxx.

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

Definition at line 1792 of file weld.hxx.

void weld::TimeSpinButton::grab_focus ( )
inline

Definition at line 1772 of file weld.hxx.

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

Definition at line 1773 of file weld.hxx.

void weld::TimeSpinButton::hide ( )
inline

Definition at line 1775 of file weld.hxx.

void weld::TimeSpinButton::save_value ( )
inline

Definition at line 1776 of file weld.hxx.

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

Definition at line 1781 of file weld.hxx.

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

Definition at line 1768 of file weld.hxx.

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

Definition at line 1782 of file weld.hxx.

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

Definition at line 1759 of file weld.hxx.

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

Definition at line 1770 of file weld.hxx.

void weld::TimeSpinButton::show ( )
inline

Definition at line 1774 of file weld.hxx.

void weld::TimeSpinButton::signal_value_changed ( )
inlineprivate

Definition at line 1738 of file weld.hxx.

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

void weld::TimeSpinButton::update_width_chars ( )
private

Definition at line 370 of file builder.cxx.

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

Member Data Documentation

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

Definition at line 1731 of file weld.hxx.

TimeFieldFormat const weld::TimeSpinButton::m_eFormat
private

Definition at line 1729 of file weld.hxx.

Referenced by format_number().

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

Definition at line 1730 of file weld.hxx.

Referenced by update_width_chars().


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