AtCore  1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
StatusWidget Class Reference

The StatusWidget class Status Bar information for atcore. More...

#include <statuswidget.h>

Inheritance diagram for StatusWidget:

Signals

void stopPressed ()
 

Public Member Functions

 StatusWidget (bool showStop=true, QWidget *parent=nullptr)
 Make A new Status widget. More...
 
 ~StatusWidget ()=default
 
void setSD (bool hasSd)
 Set if the status area should show SD card inserted. More...
 
void setState (const QString &state)
 Set the State String. More...
 
void showPrintArea (bool visible)
 Show or hide the Print progress and time. More...
 
void updatePrintProgress (const int progress)
 Update the progres to the new progress. More...
 

Private Slots

void updatePrintTime ()
 

Private Attributes

QLabel * lblState = nullptr
 
QLabel * lblSd = nullptr
 
QLabel * lblTime = nullptr
 
QLabel * lblTimeLeft = nullptr
 
QElapsedTimer * printTime = nullptr
 
QTimer * printTimer = nullptr
 
QSpacerItem * spacer = nullptr
 
QProgressBar * printingProgress = nullptr
 
QWidget * printProgressWidget = nullptr
 

Detailed Description

The StatusWidget class Status Bar information for atcore.

Constructor & Destructor Documentation

◆ StatusWidget()

StatusWidget::StatusWidget ( bool  showStop = true,
QWidget *  parent = nullptr 
)
explicit

Make A new Status widget.

Parameters
showStopSet False if your client has the print job stop in another widget.
parentparent of this widget.

◆ ~StatusWidget()

StatusWidget::~StatusWidget ( )
default

Member Function Documentation

◆ setSD()

void StatusWidget::setSD ( bool  hasSd)

Set if the status area should show SD card inserted.

Parameters
hasSd

◆ setState()

void StatusWidget::setState ( const QString &  state)

Set the State String.

Parameters
stateString to be shown

◆ showPrintArea()

void StatusWidget::showPrintArea ( bool  visible)

Show or hide the Print progress and time.

Parameters
visible: true for show

◆ stopPressed

void StatusWidget::stopPressed ( )
signal

◆ updatePrintProgress()

void StatusWidget::updatePrintProgress ( const int  progress)

Update the progres to the new progress.

Parameters
progressnew progress.

◆ updatePrintTime

void StatusWidget::updatePrintTime ( )
privateslot

Member Data Documentation

◆ lblSd

QLabel* StatusWidget::lblSd = nullptr
private

◆ lblState

QLabel* StatusWidget::lblState = nullptr
private

◆ lblTime

QLabel* StatusWidget::lblTime = nullptr
private

◆ lblTimeLeft

QLabel* StatusWidget::lblTimeLeft = nullptr
private

◆ printingProgress

QProgressBar* StatusWidget::printingProgress = nullptr
private

◆ printProgressWidget

QWidget* StatusWidget::printProgressWidget = nullptr
private

◆ printTime

QElapsedTimer* StatusWidget::printTime = nullptr
private

◆ printTimer

QTimer* StatusWidget::printTimer = nullptr
private

◆ spacer

QSpacerItem* StatusWidget::spacer = nullptr
private

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