LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

 Q_DECLARE_FLAGS (Fields, Field)
 
 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 setAbsoluteCursorPosition (const Point &pos) noexcept
 
void setProgressBarVisible (bool visible) noexcept
 
void setProgressBarTextFormat (const QString &format) noexcept
 
void setProgressBarPercent (int percent) noexcept
 
void showProgressBar () noexcept
 
void hideProgressBar () noexcept
 
StatusBaroperator= (const StatusBar &rhs)=delete
 

Private Attributes

Fields mFields
 
QScopedPointer< QLabel > mAbsPosXLabel
 
QScopedPointer< QLabel > mAbsPosYLabel
 
QScopedPointer< QProgressBar > mProgressBar
 
QScopedPointer< QWidget > mProgressBarPlaceHolder
 

Detailed Description

The StatusBar class extends QStatusBar for some commonly used fields.

Author
ubruhin
Date
2017-09-03

Member Enumeration Documentation

enum Field
Enumerator
AbsolutePosition 
ProgressBar 

Constructor & Destructor Documentation

StatusBar ( QWidget *  parent = nullptr)
explicitnoexcept
StatusBar ( const StatusBar other)
delete
~StatusBar ( )
noexcept

Member Function Documentation

Q_DECLARE_FLAGS ( Fields  ,
Field   
)
Fields getFields ( ) const
inlinenoexcept
void setFields ( Fields  fields)
noexcept
void setField ( Field  field,
bool  enable 
)
noexcept
void setAbsoluteCursorPosition ( const Point pos)
noexcept

+ Here is the caller graph for this function:

void setProgressBarVisible ( bool  visible)
noexcept

+ Here is the caller graph for this function:

void setProgressBarTextFormat ( const QString &  format)
noexcept
void setProgressBarPercent ( int  percent)
noexcept

+ Here is the caller graph for this function:

void showProgressBar ( )
inlinenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void hideProgressBar ( )
inlinenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

StatusBar& operator= ( const StatusBar rhs)
delete

Member Data Documentation

Fields mFields
private
QScopedPointer<QLabel> mAbsPosXLabel
private
QScopedPointer<QLabel> mAbsPosYLabel
private
QScopedPointer<QProgressBar> mProgressBar
private
QScopedPointer<QWidget> mProgressBarPlaceHolder
private

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