LibreOffice Module vcl (master) 1
|
#include <weld.hxx>
Public Member Functions | |
MetricSpinButton (std::unique_ptr< SpinButton > pSpinButton, FieldUnit eSrcUnit) | |
FieldUnit | get_unit () const |
void | set_unit (FieldUnit eUnit) |
sal_Int64 | convert_value_to (sal_Int64 nValue, FieldUnit eValueUnit) const |
sal_Int64 | convert_value_from (sal_Int64 nValue, FieldUnit eValueUnit) const |
void | set_value (sal_Int64 nValue, FieldUnit eValueUnit) |
sal_Int64 | get_value (FieldUnit eDestUnit) const |
void | reformat () |
void | set_range (sal_Int64 min, sal_Int64 max, FieldUnit eValueUnit) |
void | get_range (sal_Int64 &min, sal_Int64 &max, FieldUnit eDestUnit) const |
void | set_min (sal_Int64 min, FieldUnit eValueUnit) |
void | set_max (sal_Int64 max, FieldUnit eValueUnit) |
sal_Int64 | get_min (FieldUnit eValueUnit) const |
sal_Int64 | get_max (FieldUnit eValueUnit) const |
void | set_increments (int step, int page, FieldUnit eValueUnit) |
void | get_increments (int &step, int &page, FieldUnit eDestUnit) const |
void | connect_value_changed (const Link< MetricSpinButton &, void > &rLink) |
sal_Int64 | normalize (sal_Int64 nValue) const |
sal_Int64 | denormalize (sal_Int64 nValue) const |
void | set_sensitive (bool sensitive) |
bool | get_sensitive () const |
bool | get_visible () const |
void | grab_focus () |
bool | has_focus () const |
void | show () |
void | set_visible (bool bShow) |
void | hide () |
void | set_digits (unsigned int digits) |
void | set_accessible_name (const OUString &rName) |
unsigned int | get_digits () const |
void | save_value () |
bool | get_value_changed_from_saved () const |
void | set_text (const OUString &rText) |
OUString | get_text () const |
void | set_size_request (int nWidth, int nHeight) |
Size | get_size_request () const |
Size | get_preferred_size () const |
void | connect_focus_in (const Link< Widget &, void > &rLink) |
void | connect_focus_out (const Link< Widget &, void > &rLink) |
OUString | get_buildable_name () const |
void | set_help_id (const OUString &rName) |
void | set_position (int nCursorPos) |
void | set_width_chars (int nChars) |
int | get_width_chars () const |
weld::SpinButton & | get_widget () |
Static Public Member Functions | |
static OUString | MetricToString (FieldUnit rUnit) |
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) | |
void | signal_value_changed () |
sal_Int64 | ConvertValue (sal_Int64 nValue, FieldUnit eInUnit, FieldUnit eOutUnit) const |
OUString | format_number (sal_Int64 nValue) const |
void | update_width_chars () |
Private Attributes | |
FieldUnit | m_eSrcUnit |
std::unique_ptr< weld::SpinButton > | m_xSpinButton |
Link< MetricSpinButton &, void > | m_aValueChangedHdl |
|
inline |
|
inline |
|
inline |
Definition at line 2054 of file weld.hxx.
References vcl::ConvertValue(), and nValue.
|
inline |
Definition at line 2049 of file weld.hxx.
References vcl::ConvertValue(), and nValue.
|
private |
Definition at line 362 of file builder.cxx.
References vcl::ConvertValue(), m_xSpinButton, and nValue.
|
private |
|
private |
|
private |
|
inline |
|
private |
Definition at line 292 of file builder.cxx.
References aStr, unicode::formatPercent(), LocaleDataWrapper::getLanguageTag(), AllSettings::GetLocaleDataWrapper(), LocaleDataWrapper::getNum(), Application::GetSettings(), m_eSrcUnit, m_xSpinButton, MetricToString(), nValue, weld::SpinButton::Power10(), and u.
Referenced by update_width_chars().
|
inline |
|
inline |
|
inline |
Definition at line 2124 of file weld.hxx.
Referenced by set_digits(), and set_unit().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2064 of file weld.hxx.
Referenced by set_digits(), and set_unit().
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 232 of file builder.cxx.
References ImplGetFieldUnits().
Referenced by format_number().
|
inline |
|
inline |
void weld::MetricSpinButton::set_digits | ( | unsigned int | digits | ) |
Definition at line 336 of file builder.cxx.
References get_increments(), get_value(), m_eSrcUnit, m_xSpinButton, set_increments(), set_value(), update_width_chars(), and value.
|
inline |
Definition at line 2117 of file weld.hxx.
Referenced by set_digits(), and set_unit().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void weld::MetricSpinButton::set_unit | ( | FieldUnit | eUnit | ) |
Definition at line 347 of file builder.cxx.
References get_increments(), get_value(), m_eSrcUnit, m_xSpinButton, set_increments(), set_value(), update_width_chars(), and value.
|
inline |
Definition at line 2059 of file weld.hxx.
References nValue.
Referenced by set_digits(), and set_unit().
|
inline |
|
inline |
|
inlineprivate |
Definition at line 2024 of file weld.hxx.
References Link< typename Arg, typename Ret >::Call().
|
private |
Definition at line 257 of file builder.cxx.
References format_number(), m_xSpinButton, max, min(), and Width.
Referenced by set_digits(), and set_unit().
|
private |
|
private |
Definition at line 2016 of file weld.hxx.
Referenced by format_number(), set_digits(), and set_unit().
|
private |
Definition at line 2017 of file weld.hxx.
Referenced by ConvertValue(), format_number(), set_digits(), set_unit(), and update_width_chars().