16 m_examModeIconView.
setImage(ImageStore::ExamIcon);
42 return m_shiftAlphaLockView.
setStatus(status);
45 int TitleBarView::numberOfSubviews()
const {
49 View * TitleBarView::subviewAtIndex(
int index) {
54 return &m_preferenceView;
57 return &m_examModeIconView;
60 return &m_shiftAlphaLockView;
62 return &m_batteryView;
65 void TitleBarView::layoutSubviews() {
76 m_examModeIconView.
setFrame(
KDRect(k_examIconMargin, (
bounds().height() - k_examIconHeight)/2, k_examIconWidth, k_examIconHeight));
87 if (Preferences::sharedPreferences()->displayMode() == PrintFloat::Mode::Scientific) {
98 buffer[numberOfChar] = 0;
99 m_preferenceView.
setText(buffer);
void refreshPreferences()
static constexpr KDColor YellowDark
void drawRect(KDContext *ctx, KDRect rect) const override
void setText(const char *text) override
void setFrame(KDRect frame)
constexpr KDCoordinate width() const
size_t strlcpy(char *dst, const char *src, size_t len)
bool setIsCharging(bool isCharging)
bool setIsPlugged(bool isPlugged)
bool setChargeState(Ion::Battery::Charge chargeState)
bool setShiftAlphaLockStatus(Ion::Events::ShiftAlphaStatus status)
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
bool setIsCharging(bool isCharging)
KDSize minimalSizeForOptimalDisplay() const override
constexpr KDColor KDColorWhite
size_t strlen(const char *s)
bool setStatus(Ion::Events::ShiftAlphaStatus status)
bool setIsPlugged(bool isPlugged)
constexpr Poincare::Expression::AngleUnit Radian
KDSize minimalSizeForOptimalDisplay() const override
void setMessage(I18n::Message message)
void setImage(const Image *image)
void setTitle(I18n::Message title)
constexpr KDRect KDRectZero
void fillRect(KDRect rect, KDColor color)
ExamMode examMode() const
static constexpr KDCoordinate TitleBarExternHorizontalMargin
KDCoordinate height() const
bool setChargeState(Ion::Battery::Charge chargeState)
static GlobalPreferences * sharedGlobalPreferences()
KDSize minimalSizeForOptimalDisplay() const override
constexpr KDCoordinate height() const