ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PythonEditor Class Referencefinal

#include <PythonEditor.h>

Inheritance diagram for PythonEditor:
[legend]
Collaboration diagram for PythonEditor:
[legend]

Signals

void executionCalled (const std::string &evalStatement, QListWidget *output)
 

Public Member Functions

 PythonEditor (PythonInterpreter *interpreter)
 
void changeEvent (QEvent *e) override
 
bool openFile (const QString &fileName)
 

Static Public Member Functions

static QString SettingsApplicationName ()
 

Protected Slots

void newFile ()
 
void promptForFileToOpen ()
 
void promptForFolderToOpen ()
 
void save ()
 
void saveAs ()
 
void updateRecentFileActions ()
 
void openRecentFile ()
 
bool eventFilter (QObject *obj, QEvent *e) override
 
void projectTreeDoubleClicked (const QModelIndex &index)
 
void cut ()
 
void copy ()
 
void paste ()
 
void comment ()
 
void uncomment ()
 
void indentMore ()
 
void indentLess ()
 
void updateWindowMenu ()
 
void executionStarted ()
 
void executionFinished ()
 
CodeEditor * createChildCodeEditor ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 

Constructor & Destructor Documentation

◆ PythonEditor()

Member Function Documentation

◆ changeEvent()

void PythonEditor::changeEvent ( QEvent *  e)
override

References e.

◆ closeEvent()

void PythonEditor::closeEvent ( QCloseEvent *  event)
overrideprotected

◆ comment

void PythonEditor::comment ( )
protectedslot

References CodeEditor::comment().

◆ copy

void PythonEditor::copy ( )
protectedslot

◆ createChildCodeEditor

CodeEditor * PythonEditor::createChildCodeEditor ( )
protectedslot

Referenced by newFile().

◆ cut

void PythonEditor::cut ( )
protectedslot

◆ eventFilter

bool PythonEditor::eventFilter ( QObject *  obj,
QEvent *  e 
)
overrideprotectedslot

References e.

◆ executionCalled

void PythonEditor::executionCalled ( const std::string &  evalStatement,
QListWidget *  output 
)
signal

Referenced by PythonEditor().

◆ executionFinished

void PythonEditor::executionFinished ( )
protectedslot

Referenced by PythonEditor().

◆ executionStarted

void PythonEditor::executionStarted ( )
protectedslot

Referenced by PythonEditor().

◆ indentLess

void PythonEditor::indentLess ( )
protectedslot

◆ indentMore

void PythonEditor::indentMore ( )
protectedslot

◆ newFile

void PythonEditor::newFile ( )
protectedslot

◆ openFile()

bool PythonEditor::openFile ( const QString &  fileName)

Opens a file

If the fileName points to an already opened file, then its window takes focus

Parameters
fileNamethe file to open
Returns
true of success

Referenced by openRecentFile(), projectTreeDoubleClicked(), and promptForFileToOpen().

◆ openRecentFile

void PythonEditor::openRecentFile ( )
protectedslot

References openFile().

◆ paste

void PythonEditor::paste ( )
protectedslot

◆ projectTreeDoubleClicked

void PythonEditor::projectTreeDoubleClicked ( const QModelIndex &  index)
protectedslot

◆ promptForFileToOpen

void PythonEditor::promptForFileToOpen ( )
protectedslot

References openFile().

◆ promptForFolderToOpen

void PythonEditor::promptForFolderToOpen ( )
protectedslot

◆ save

void PythonEditor::save ( )
protectedslot

◆ saveAs

void PythonEditor::saveAs ( )
protectedslot

◆ SettingsApplicationName()

QString PythonEditor::SettingsApplicationName ( )
static

Referenced by updateRecentFileActions().

◆ uncomment

void PythonEditor::uncomment ( )
protectedslot

◆ updateRecentFileActions

void PythonEditor::updateRecentFileActions ( )
protectedslot

◆ updateWindowMenu

void PythonEditor::updateWindowMenu ( )
protectedslot

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