![]() |
Scanframe Modular Application 0.1.0
|
Interface for MDI document widgets handling files. More...
#include <MultiDocInterface.h>
Public Member Functions | |
MultiDocInterface () | |
Default constructor. | |
virtual void | setConnections (QWidget *editor) |
Sets the editor to operate on. | |
virtual void | newFile ()=0 |
Pure virtual needs to be implemented. | |
virtual bool | loadFile (const QString &fileName)=0 |
Pure virtual needs to be implemented. | |
virtual bool | save ()=0 |
Pure virtual needs to be implemented. | |
virtual bool | saveAs ()=0 |
Pure virtual needs to be implemented. | |
virtual QString | userFriendlyCurrentFile () const =0 |
Pure virtual needs to be implemented. | |
virtual QString | currentFile () const =0 |
Pure virtual needs to be implemented. | |
virtual bool | isModified () const =0 |
Pure virtual needs to be implemented. | |
virtual bool | hasSelection () const =0 |
Pure virtual needs to be implemented. | |
virtual bool | isUndoRedoEnabled () const =0 |
Pure virtual needs to be implemented. | |
virtual bool | isUndoAvailable () const =0 |
Pure virtual needs to be implemented. | |
virtual bool | isRedoAvailable () const =0 |
Pure virtual needs to be implemented. | |
virtual void | cut ()=0 |
Pure virtual needs to be implemented. | |
virtual void | copy ()=0 |
Pure virtual needs to be implemented. | |
virtual void | paste ()=0 |
Pure virtual needs to be implemented. | |
virtual void | undo ()=0 |
Pure virtual needs to be implemented. | |
virtual void | redo ()=0 |
Pure virtual needs to be implemented. | |
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. | |
virtual void | develop () |
Virtual function which is called during development only fro an action. | |
Public Attributes | |
MultiDocInterfaceSignals | mdiSignals |
Instance to connect signal handlers onto. | |
Interface for MDI document widgets handling files.
|
explicit |
Default constructor.
void sf::MultiDocInterface::activate | ( | bool | ) |
Called by application when this document is activated deactivated.
|
virtual |
When the document is modified this function shows a message box with 3 options to save or not or to cancel closing the document.
It returns true when saved or not saved and false when cancelled. Can be overridden for other purposes.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
virtual |
Virtual function which is called during development only fro an action.
Allows to do stuff with reduced the repetitive clicking in the GUI.
Reimplemented in sf::LayoutEditor, and sf::ScriptEditor.
QString sf::MultiDocInterface::getFileTypeFilters | ( | ) | const |
Gets the file type filters from module.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, sf::LayoutEditor, and sf::ScriptEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
virtual |
Sets the editor to operate on.
When the passed document inherits QPlainTextEdit or QTextEdit the MDI signals are automatically connected. For other implementations you need to connect them manually.
editor | Widget being a QPlainTextEdit or QTextEdit instance. |
|
virtual |
Saves or restores the state of the MDI instance.
Reimplemented in sf::ScriptEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
|
pure virtual |
Pure virtual needs to be implemented.
Implemented in sf::TextEditor, sf::PlainTextEditMdi, and sf::LayoutEditor.
MultiDocInterfaceSignals sf::MultiDocInterface::mdiSignals |
Instance to connect signal handlers onto.