LibrePCB Developers Documentation
StrokeTextPropertiesDialog Class Referencefinal

The StrokeTextPropertiesDialog class. More...

#include <stroketextpropertiesdialog.h>

Inherits QDialog.

+ Collaboration diagram for StrokeTextPropertiesDialog:

Public Member Functions

 StrokeTextPropertiesDialog ()=delete
 
 StrokeTextPropertiesDialog (const StrokeTextPropertiesDialog &other)=delete
 
 StrokeTextPropertiesDialog (StrokeText &text, UndoStack &undoStack, const QSet< const Layer * > &layers, const LengthUnit &lengthUnit, const QString &settingsPrefix, QWidget *parent=nullptr) noexcept
 
 StrokeTextPropertiesDialog (BI_StrokeText &text, UndoStack &undoStack, const QSet< const Layer * > &layers, const LengthUnit &lengthUnit, const QString &settingsPrefix, QWidget *parent=nullptr) noexcept
 
 ~StrokeTextPropertiesDialog () noexcept
 
void setReadOnly (bool readOnly) noexcept
 
StrokeTextPropertiesDialogoperator= (const StrokeTextPropertiesDialog &rhs)=delete
 

Private Member Functions

 StrokeTextPropertiesDialog (StrokeText *libObj, BI_StrokeText *boardObj, UndoStack &undoStack, const QSet< const Layer * > &layers, const LengthUnit &lengthUnit, const QString &settingsPrefix, QWidget *parent=nullptr) noexcept
 
template<typename T >
void load (const T &obj, const StrokeFont &font) noexcept
 
void on_buttonBox_clicked (QAbstractButton *button)
 
bool applyChanges () noexcept
 
template<typename T >
void applyChanges (T &cmd)
 

Private Attributes

StrokeTextmLibraryObj
 
BI_StrokeTextmBoardObj
 
UndoStackmUndoStack
 
QScopedPointer< Ui::StrokeTextPropertiesDialog > mUi
 

Detailed Description

Constructor & Destructor Documentation

◆ StrokeTextPropertiesDialog() [1/5]

◆ StrokeTextPropertiesDialog() [2/5]

◆ StrokeTextPropertiesDialog() [3/5]

StrokeTextPropertiesDialog ( StrokeText text,
UndoStack undoStack,
const QSet< const Layer * > &  layers,
const LengthUnit lengthUnit,
const QString &  settingsPrefix,
QWidget *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ StrokeTextPropertiesDialog() [4/5]

StrokeTextPropertiesDialog ( BI_StrokeText text,
UndoStack undoStack,
const QSet< const Layer * > &  layers,
const LengthUnit lengthUnit,
const QString &  settingsPrefix,
QWidget *  parent = nullptr 
)
noexcept

◆ ~StrokeTextPropertiesDialog()

◆ StrokeTextPropertiesDialog() [5/5]

StrokeTextPropertiesDialog ( StrokeText libObj,
BI_StrokeText boardObj,
UndoStack undoStack,
const QSet< const Layer * > &  layers,
const LengthUnit lengthUnit,
const QString &  settingsPrefix,
QWidget *  parent = nullptr 
)
privatenoexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ setReadOnly()

void setReadOnly ( bool  readOnly)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

StrokeTextPropertiesDialog & operator= ( const StrokeTextPropertiesDialog rhs)
delete

◆ load()

void load ( const T &  obj,
const StrokeFont font 
)
privatenoexcept

◆ on_buttonBox_clicked()

void on_buttonBox_clicked ( QAbstractButton *  button)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyChanges() [1/2]

bool applyChanges ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyChanges() [2/2]

void applyChanges ( T &  cmd)
private

Member Data Documentation

◆ mLibraryObj

StrokeText* mLibraryObj
private

◆ mBoardObj

BI_StrokeText* mBoardObj
private

◆ mUndoStack

UndoStack& mUndoStack
private

◆ mUi

QScopedPointer<Ui::StrokeTextPropertiesDialog> mUi
private

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