![]() |
LibrePCB Developers Documentation
|
The SchematicEditorState_AddText class. More...
#include <schematiceditorstate_addtext.h>
Signals | |
void | layerChanged (const Layer &layer) |
void | heightChanged (const PositiveLength &height) |
void | textChanged (const QString &text) |
![]() | |
void | requestLeavingState () |
Signal to indicate that the current tool should be exited. | |
Public Member Functions | |
SchematicEditorState_AddText ()=delete | |
SchematicEditorState_AddText (const SchematicEditorState_AddText &other)=delete | |
SchematicEditorState_AddText (const Context &context) noexcept | |
virtual | ~SchematicEditorState_AddText () noexcept |
virtual bool | entry () noexcept override |
virtual bool | exit () noexcept override |
virtual bool | processRotate (const Angle &rotation) noexcept override |
virtual bool | processMirror (Qt::Orientation orientation) noexcept override |
virtual bool | processGraphicsSceneMouseMoved (const GraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonDoubleClicked (const GraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneRightMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept override |
QSet< const Layer * > | getAvailableLayers () const noexcept |
const Layer & | getLayer () const noexcept |
void | setLayer (const Layer &layer) noexcept |
const PositiveLength & | getHeight () const noexcept |
void | setHeight (const PositiveLength &height) noexcept |
const QString & | getText () const noexcept |
QStringList | getTextSuggestions () const noexcept |
void | setText (const QString &text) noexcept |
SchematicEditorState_AddText & | operator= (const SchematicEditorState_AddText &rhs)=delete |
![]() | |
SchematicEditorState ()=delete | |
SchematicEditorState (const SchematicEditorState &other)=delete | |
SchematicEditorState (const Context &context, QObject *parent=nullptr) noexcept | |
virtual | ~SchematicEditorState () noexcept |
virtual bool | processAddComponent (const QString &searchTerm=QString()) noexcept |
virtual bool | processAddComponent (const Uuid &cmp, const Uuid &symbVar) noexcept |
virtual bool | processSelectAll () noexcept |
virtual bool | processCut () noexcept |
virtual bool | processCopy () noexcept |
virtual bool | processPaste () noexcept |
virtual bool | processMove (const Point &delta) noexcept |
virtual bool | processSnapToGrid () noexcept |
virtual bool | processResetAllTexts () noexcept |
virtual bool | processRemove () noexcept |
virtual bool | processEditProperties () noexcept |
virtual bool | processAbortCommand () noexcept |
virtual bool | processKeyPressed (const GraphicsSceneKeyEvent &e) noexcept |
virtual bool | processKeyReleased (const GraphicsSceneKeyEvent &e) noexcept |
virtual bool | processGraphicsSceneLeftMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept |
SchematicEditorState & | operator= (const SchematicEditorState &rhs)=delete |
Private Member Functions | |
bool | addText (const Point &pos) noexcept |
bool | rotateText (const Angle &angle) noexcept |
bool | updatePosition (const Point &pos) noexcept |
bool | fixPosition (const Point &pos) noexcept |
bool | abortCommand (bool showErrMsgBox) noexcept |
void | layerComboBoxLayerChanged (const Layer &layer) noexcept |
void | textComboBoxValueChanged (const QString &value) noexcept |
void | heightEditValueChanged (const PositiveLength &value) noexcept |
Private Attributes | |
bool | mIsUndoCmdActive |
Text | mCurrentProperties |
SI_Text * | mCurrentTextToPlace |
std::unique_ptr< CmdTextEdit > | mCurrentTextEditCmd |
Additional Inherited Members | |
![]() | |
enum class | FindFlag |
using | Context = SchematicEditorFsm::Context |
![]() | |
SchematicGraphicsScene * | getActiveSchematicScene () noexcept |
PositiveLength | getGridInterval () const noexcept |
const LengthUnit & | getLengthUnit () const noexcept |
void | abortBlockingToolsInOtherEditors () noexcept |
bool | execCmd (UndoCommand *cmd) |
QWidget * | parentWidget () noexcept |
QList< std::shared_ptr< QGraphicsItem > > | findItemsAtPos (const Point &pos, FindFlags flags, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept |
template<typename T = QGraphicsItem> | |
std::shared_ptr< T > | findItemAtPos (const Point &pos, FindFlags flags, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept |
![]() | |
static const QSet< const Layer * > & | getAllowedGeometryLayers () noexcept |
![]() | |
Context | mContext |
SchematicEditorFsmAdapter & | mAdapter |
The SchematicEditorState_AddText class.
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
delete |
|
signal |
|
signal |
|
signal |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |