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 m_eFormat
 
std::unique_ptr< weld::SpinButtonm_xSpinButton
 
Link< TimeSpinButton &, voidm_aValueChangedHdl
 

Detailed Description

Definition at line 1788 of file weld.hxx.

Constructor & Destructor Documentation

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

Definition at line 1807 of file weld.hxx.

References LINK.

Member Function Documentation

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

Definition at line 1845 of file weld.hxx.

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

Definition at line 1849 of file weld.hxx.

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

Definition at line 1824 of file weld.hxx.

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

Definition at line 384 of file builder.cxx.

References tools::Time::MakeTimeFromMS().

Referenced by format_number().

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

Definition at line 391 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 1830 of file weld.hxx.

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

Definition at line 1844 of file weld.hxx.

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

Definition at line 1822 of file weld.hxx.

References vcl::ConvertValue().

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

Definition at line 1838 of file weld.hxx.

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

Definition at line 1832 of file weld.hxx.

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

Definition at line 1853 of file weld.hxx.

void weld::TimeSpinButton::grab_focus ( )
inline

Definition at line 1833 of file weld.hxx.

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

Definition at line 1834 of file weld.hxx.

void weld::TimeSpinButton::hide ( )
inline

Definition at line 1836 of file weld.hxx.

void weld::TimeSpinButton::save_value ( )
inline

Definition at line 1837 of file weld.hxx.

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

Definition at line 1842 of file weld.hxx.

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

Definition at line 1829 of file weld.hxx.

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

Definition at line 1843 of file weld.hxx.

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

Definition at line 1820 of file weld.hxx.

References vcl::ConvertValue().

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

Definition at line 1831 of file weld.hxx.

void weld::TimeSpinButton::show ( )
inline

Definition at line 1835 of file weld.hxx.

void weld::TimeSpinButton::signal_value_changed ( )
inlineprivate

Definition at line 1799 of file weld.hxx.

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

void weld::TimeSpinButton::update_width_chars ( )
private

Definition at line 374 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 1792 of file weld.hxx.

TimeFieldFormat weld::TimeSpinButton::m_eFormat
private

Definition at line 1790 of file weld.hxx.

Referenced by format_number().

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

Definition at line 1791 of file weld.hxx.

Referenced by update_width_chars().


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