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

#include <CodeEditor.h>

Inheritance diagram for sf::CodeEditor:
Collaboration diagram for sf::CodeEditor:

Public Member Functions

 CodeEditor (QWidget *parent)
 
bool canClose () override
 Called on a close event. To prevent losing changes made to the document.
 
- Public Member Functions inherited from sf::Editor
 Editor (QWidget *parent=nullptr)
 Constructor.
 
 ~Editor () override
 Destructor.
 
void setConfiguration (const Configuration &cfg)
 
void lineNumberAreaPaintEvent (QPaintEvent *event)
 
int lineNumberAreaWidth ()
 
bool isRequiredProperty (const QString &name) override
 Overridden from base class ObjectExtension.
 
- Public Member Functions inherited from sf::ObjectExtension
virtual void addPropertyPages (PropertySheetDialog *sheet)
 Adds the pages specific for this object.
 
virtual bool getSaveChildren () const
 Gets if the children needs saving by the FormBuilder class.
 
- Public Member Functions inherited from sf::PlainTextEditMdi
 PlainTextEditMdi ()
 Default constructor.
 
 PlainTextEditMdi (QPlainTextEdit *editor)
 Initializing constructor.
 
void setEditor (QPlainTextEdit *edit, QWidget *container=nullptr)
 Sets the editor for the interface to work on to set the title.
 
void newFile () override
 Pure virtual needs to be implemented.
 
virtual QString newFileName () const
 
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 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.
 
- 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.
 
virtual void develop ()
 Virtual function which is called during development only fro an action.
 

Additional Inherited Members

- Static Public Member Functions inherited from sf::ObjectExtension
static bool inDesigner ()
 Gets the designer status.
 
static QObject * getExtensionParent (QObject *obj, bool first=true)
 Return if the passed object has this type as parent. It starts by testing the passed object itself.
 
- Public Attributes inherited from sf::MultiDocInterface
MultiDocInterfaceSignals mdiSignals
 Instance to connect signal handlers onto.
 
- Protected Member Functions inherited from sf::Editor
void resizeEvent (QResizeEvent *event) override
 Overridden from base class QPlainTextEdit.
 
void closeEvent (QCloseEvent *event) override
 Overridden from base class QPlainTextEdit.
 
- Protected Member Functions inherited from sf::ObjectExtension
 ObjectExtension (QObject *object)
 Protected constructor only. Inlined so no external libs are need for designer.
 
virtual ~ObjectExtension ()=default
 Virtual destructor.
 

Constructor & Destructor Documentation

◆ CodeEditor()

sf::CodeEditor::CodeEditor ( QWidget *  parent)

Member Function Documentation

◆ canClose()

bool sf::CodeEditor::canClose ( )
overridevirtual

Called on a close event. To prevent losing changes made to the document.

Returns
True when it can be closed.

Reimplemented from sf::Editor.


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