LibrePCB Developers Documentation
SchematicPagesDock Class Referencefinal

The SchematicPagesDock class. More...

#include <schematicpagesdock.h>

Inherits QDockWidget.

+ Collaboration diagram for SchematicPagesDock:

Signals

void selectedSchematicChanged (int index)
 
void addSchematicTriggered ()
 
void removeSchematicTriggered (int index)
 
void renameSchematicTriggered (int index)
 

Public Member Functions

 SchematicPagesDock ()=delete
 
 SchematicPagesDock (const SchematicPagesDock &other)=delete
 
 SchematicPagesDock (Project &project, UndoStack &undoStack, const Theme &theme, QWidget *parent=nullptr)
 
 ~SchematicPagesDock ()
 
void setBackgroundColor (const QColor &c) noexcept
 
void setSelectedSchematic (int index) noexcept
 
SchematicPagesDockoperator= (const SchematicPagesDock &rhs)=delete
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) noexcept override
 

Private Member Functions

void removeSelectedSchematic () noexcept
 
void renameSelectedSchematic () noexcept
 
void schematicAdded (int newIndex) noexcept
 
void schematicRemoved (int oldIndex) noexcept
 
void schematicModified (SI_Symbol &symbol) noexcept
 
void updateSchematicNames () noexcept
 
void updateNextThumbnail () noexcept
 
void thumbnailReady (int index, const QSize &pageSize, const QRectF margins, std::shared_ptr< QPicture > picture)
 

Private Attributes

ProjectmProject
 
UndoStackmUndoStack
 
QScopedPointer< Ui::SchematicPagesDock > mUi
 
QColor mBackgroundColor
 
QSet< UuidmScheduledThumbnailSchematics
 
tl::optional< UuidmCurrentThumbnailSchematic
 
QScopedPointer< GraphicsExportmThumbnailGenerator
 
std::shared_ptr< GraphicsExportSettingsmThumbnailSettings
 
QTimer mThumbnailTimer
 
QVector< QVector< QMetaObject::Connection > > mSchematicConnections
 

Detailed Description

The SchematicPagesDock class.

Constructor & Destructor Documentation

◆ SchematicPagesDock() [1/3]

SchematicPagesDock ( )
delete

◆ SchematicPagesDock() [2/3]

SchematicPagesDock ( const SchematicPagesDock other)
delete

◆ SchematicPagesDock() [3/3]

SchematicPagesDock ( Project project,
UndoStack undoStack,
const Theme theme,
QWidget *  parent = nullptr 
)
+ Here is the call graph for this function:

◆ ~SchematicPagesDock()

Member Function Documentation

◆ setBackgroundColor()

void setBackgroundColor ( const QColor &  c)
inlinenoexcept

◆ setSelectedSchematic()

void setSelectedSchematic ( int  index)
noexcept

◆ operator=()

SchematicPagesDock & operator= ( const SchematicPagesDock rhs)
delete

◆ selectedSchematicChanged

void selectedSchematicChanged ( int  index)
signal
+ Here is the caller graph for this function:

◆ addSchematicTriggered

void addSchematicTriggered ( )
signal
+ Here is the caller graph for this function:

◆ removeSchematicTriggered

void removeSchematicTriggered ( int  index)
signal
+ Here is the caller graph for this function:

◆ renameSchematicTriggered

void renameSchematicTriggered ( int  index)
signal
+ Here is the caller graph for this function:

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  event)
overrideprotectednoexcept

◆ removeSelectedSchematic()

void removeSelectedSchematic ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ renameSelectedSchematic()

void renameSelectedSchematic ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ schematicAdded()

void schematicAdded ( int  newIndex)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ schematicRemoved()

void schematicRemoved ( int  oldIndex)
privatenoexcept
+ Here is the caller graph for this function:

◆ schematicModified()

void schematicModified ( SI_Symbol symbol)
privatenoexcept
+ Here is the caller graph for this function:

◆ updateSchematicNames()

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

◆ updateNextThumbnail()

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

◆ thumbnailReady()

void thumbnailReady ( int  index,
const QSize &  pageSize,
const QRectF  margins,
std::shared_ptr< QPicture >  picture 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mProject

Project& mProject
private

◆ mUndoStack

UndoStack& mUndoStack
private

◆ mUi

QScopedPointer<Ui::SchematicPagesDock> mUi
private

◆ mBackgroundColor

QColor mBackgroundColor
private

◆ mScheduledThumbnailSchematics

QSet<Uuid> mScheduledThumbnailSchematics
private

◆ mCurrentThumbnailSchematic

tl::optional<Uuid> mCurrentThumbnailSchematic
private

◆ mThumbnailGenerator

QScopedPointer<GraphicsExport> mThumbnailGenerator
private

◆ mThumbnailSettings

std::shared_ptr<GraphicsExportSettings> mThumbnailSettings
private

◆ mThumbnailTimer

QTimer mThumbnailTimer
private

◆ mSchematicConnections

QVector<QVector<QMetaObject::Connection> > mSchematicConnections
private

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