LibrePCB Developers Documentation
StatusBar Class Referencefinal

The StatusBar class extends QStatusBar for some commonly used fields. More...

#include <statusbar.h>

Inherits QStatusBar.

+ Collaboration diagram for StatusBar:

Public Types

enum  Field
 

Public Member Functions

 StatusBar (QWidget *parent=nullptr) noexcept
 
 StatusBar (const StatusBar &other)=delete
 
 ~StatusBar () noexcept
 
Fields getFields () const noexcept
 
void setFields (Fields fields) noexcept
 
void setField (Field field, bool enable) noexcept
 
void setPermanentMessage (const QString &message) noexcept
 
void clearPermanentMessage () noexcept
 
void setLengthUnit (const LengthUnit &unit) noexcept
 
void setAbsoluteCursorPosition (const Point &pos) noexcept
 
void setProgressBarTextFormat (const QString &format) noexcept
 
void setProgressBarPercent (int percent) noexcept
 
StatusBaroperator= (const StatusBar &rhs)=delete
 

Protected Member Functions

void resizeEvent (QResizeEvent *e) noexcept override
 

Private Member Functions

void updatePermanentMessage () noexcept
 
void updateAbsoluteCursorPosition () noexcept
 

Private Attributes

Fields mFields
 
QString mPermanentMessage
 
LengthUnit mLengthUnit
 
Point mAbsoluteCursorPosition
 
QScopedPointer< QLabel > mMessageLabel
 
QScopedPointer< QLabel > mAbsPosXLabel
 
QScopedPointer< QLabel > mAbsPosYLabel
 
QScopedPointer< QProgressBar > mProgressBar
 
QScopedPointer< QWidget > mProgressBarPlaceHolder
 

Detailed Description

The StatusBar class extends QStatusBar for some commonly used fields.

Member Enumeration Documentation

◆ Field

enum Field
Enumerator
AbsolutePosition 
ProgressBar 

Constructor & Destructor Documentation

◆ StatusBar() [1/2]

StatusBar ( QWidget *  parent = nullptr)
explicitnoexcept

◆ StatusBar() [2/2]

StatusBar ( const StatusBar other)
delete

◆ ~StatusBar()

~StatusBar ( )
noexcept

Member Function Documentation

◆ getFields()

Fields getFields ( ) const
inlinenoexcept

◆ setFields()

void setFields ( Fields  fields)
noexcept

◆ setField()

void setField ( Field  field,
bool  enable 
)
noexcept
+ Here is the caller graph for this function:

◆ setPermanentMessage()

void setPermanentMessage ( const QString &  message)
noexcept

◆ clearPermanentMessage()

void clearPermanentMessage ( )
noexcept
+ Here is the caller graph for this function:

◆ setLengthUnit()

void setLengthUnit ( const LengthUnit unit)
noexcept

◆ setAbsoluteCursorPosition()

void setAbsoluteCursorPosition ( const Point pos)
noexcept
+ Here is the caller graph for this function:

◆ setProgressBarTextFormat()

void setProgressBarTextFormat ( const QString &  format)
noexcept

◆ setProgressBarPercent()

void setProgressBarPercent ( int  percent)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

StatusBar & operator= ( const StatusBar rhs)
delete

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  e)
overrideprotectednoexcept

◆ updatePermanentMessage()

void updatePermanentMessage ( )
privatenoexcept

◆ updateAbsoluteCursorPosition()

void updateAbsoluteCursorPosition ( )
privatenoexcept
+ Here is the call graph for this function:

Member Data Documentation

◆ mFields

Fields mFields
private

◆ mPermanentMessage

QString mPermanentMessage
private

◆ mLengthUnit

LengthUnit mLengthUnit
private

◆ mAbsoluteCursorPosition

Point mAbsoluteCursorPosition
private

◆ mMessageLabel

QScopedPointer<QLabel> mMessageLabel
private

◆ mAbsPosXLabel

QScopedPointer<QLabel> mAbsPosXLabel
private

◆ mAbsPosYLabel

QScopedPointer<QLabel> mAbsPosYLabel
private

◆ mProgressBar

QScopedPointer<QProgressBar> mProgressBar
private

◆ mProgressBarPlaceHolder

QScopedPointer<QWidget> mProgressBarPlaceHolder
private

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