Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::LayoutEditor Class Reference

#include <LayoutEditor.h>

Inheritance diagram for sf::LayoutEditor:
Collaboration diagram for sf::LayoutEditor:

Public Slots

void documentWasModified ()
 Send MDI signals on modification of the document.
 
void documentModified ()
 Sets the modified flag and calls documentWasModified().
 

Public Member Functions

 LayoutEditor (QSettings *settings, QWidget *parent)
 
void newFile () override
 Pure virtual needs to be implemented.
 
bool loadFile (const QString &fileName) override
 Pure virtual needs to be implemented.
 
bool save () override
 Pure virtual needs to be implemented.
 
bool saveAs () override
 Pure virtual needs to be implemented.
 
bool saveFile (const QString &fileName, bool keep_name=false)
 
bool isModified () const override
 Pure virtual needs to be implemented.
 
QString userFriendlyCurrentFile () const override
 Pure virtual needs to be implemented.
 
QString currentFile () const override
 Pure virtual needs to be implemented.
 
bool hasSelection () const override
 Pure virtual needs to be implemented.
 
bool isUndoRedoEnabled () const override
 Pure virtual needs to be implemented.
 
bool isUndoAvailable () const override
 Pure virtual needs to be implemented.
 
bool isRedoAvailable () const override
 Pure virtual needs to be implemented.
 
void cut () override
 Pure virtual needs to be implemented.
 
void copy () override
 Pure virtual needs to be implemented.
 
void paste () override
 Pure virtual needs to be implemented.
 
void undo () override
 Pure virtual needs to be implemented.
 
void redo () override
 Pure virtual needs to be implemented.
 
void develop () override
 Virtual function which is called during development only fro an action.
 
bool eventFilter (QObject *watched, QEvent *event) override
 
ObjectHierarchyModelgetHierarchyModel ()
 
QDir getDirectory () const
 
void popupContextMenu (QObject *target, const QPoint &pos)
 
void openPropertyEditor (QObject *target)
 
void setReadOnly (bool readOnly)
 
Q_SIGNAL void objectSelected (QObject *obj)
 
- Public Member Functions inherited from sf::MultiDocInterface
 MultiDocInterface ()
 Default constructor.
 
virtual void setConnections (QWidget *editor)
 Sets the editor to operate on.
 
virtual bool canClose () const
 When the document is modified this function shows a message box with 3 options to save or not or to cancel closing the document.
 
QString getFileTypeFilters () const
 
virtual void stateSaveRestore (bool save)
 Saves or restores the state of the MDI instance.
 
void activate (bool)
 Called by application when this document is activated deactivated.
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 

Additional Inherited Members

- Public Attributes inherited from sf::MultiDocInterface
MultiDocInterfaceSignals mdiSignals
 Instance to connect signal handlers onto.
 

Constructor & Destructor Documentation

◆ LayoutEditor()

sf::LayoutEditor::LayoutEditor ( QSettings *  settings,
QWidget *  parent 
)
explicit

Member Function Documentation

◆ closeEvent()

void sf::LayoutEditor::closeEvent ( QCloseEvent *  event)
overrideprotected

◆ copy()

void sf::LayoutEditor::copy ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ currentFile()

QString sf::LayoutEditor::currentFile ( ) const
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ cut()

void sf::LayoutEditor::cut ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ develop()

void sf::LayoutEditor::develop ( )
overridevirtual

Virtual function which is called during development only fro an action.

Allows to do stuff with reduced the repetitive clicking in the GUI.

Reimplemented from sf::MultiDocInterface.

◆ documentModified

void sf::LayoutEditor::documentModified ( )
slot

Sets the modified flag and calls documentWasModified().

◆ documentWasModified

void sf::LayoutEditor::documentWasModified ( )
slot

Send MDI signals on modification of the document.

◆ eventFilter()

bool sf::LayoutEditor::eventFilter ( QObject *  watched,
QEvent *  event 
)
override

◆ getDirectory()

QDir sf::LayoutEditor::getDirectory ( ) const

◆ getHierarchyModel()

ObjectHierarchyModel * sf::LayoutEditor::getHierarchyModel ( )

◆ hasSelection()

bool sf::LayoutEditor::hasSelection ( ) const
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ isModified()

bool sf::LayoutEditor::isModified ( ) const
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ isRedoAvailable()

bool sf::LayoutEditor::isRedoAvailable ( ) const
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ isUndoAvailable()

bool sf::LayoutEditor::isUndoAvailable ( ) const
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ isUndoRedoEnabled()

bool sf::LayoutEditor::isUndoRedoEnabled ( ) const
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ loadFile()

bool sf::LayoutEditor::loadFile ( const QString &  fileName)
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ newFile()

void sf::LayoutEditor::newFile ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ objectSelected()

Q_SIGNAL void sf::LayoutEditor::objectSelected ( QObject *  obj)

◆ openPropertyEditor()

void sf::LayoutEditor::openPropertyEditor ( QObject *  target)

◆ paste()

void sf::LayoutEditor::paste ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ popupContextMenu()

void sf::LayoutEditor::popupContextMenu ( QObject *  target,
const QPoint &  pos 
)

◆ redo()

void sf::LayoutEditor::redo ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ resizeEvent()

void sf::LayoutEditor::resizeEvent ( QResizeEvent *  event)
overrideprotected

◆ save()

bool sf::LayoutEditor::save ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ saveAs()

bool sf::LayoutEditor::saveAs ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ saveFile()

bool sf::LayoutEditor::saveFile ( const QString &  fileName,
bool  keep_name = false 
)

◆ setReadOnly()

void sf::LayoutEditor::setReadOnly ( bool  readOnly)

◆ undo()

void sf::LayoutEditor::undo ( )
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.

◆ userFriendlyCurrentFile()

QString sf::LayoutEditor::userFriendlyCurrentFile ( ) const
overridevirtual

Pure virtual needs to be implemented.

Implements sf::MultiDocInterface.


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