Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::PythonEditorWidget Class Reference
+ Inheritance diagram for inviwo::PythonEditorWidget:

Public Member Functions

void appendToOutput (const std::string &msg, bool error=false)
 
void clearOutput ()
 
const std::string & getName () const
 
const std::string & getSource () const
 
void loadFile (const std::filesystem::path &fileName, bool askForSave=true)
 
virtual void loadState () override
 
virtual void onPythonExecutionOutput (const std::string &msg, PythonOutputType outputType) override
 
void onTextChange ()
 
void open ()
 
 PythonEditorWidget (QWidget *parent, InviwoApplication *app, std::function< void(const std::string &)> onTextChange=nullptr)
 
void restore ()
 
void run ()
 
void runOrStop (bool run)
 
void save ()
 
void saveAs ()
 
void setDefaultText ()
 
void setName (std::string_view name)
 
void setSource (std::string_view source)
 
void show ()
 
void stop ()
 
- Public Member Functions inherited from inviwo::InviwoDockWidget
 InviwoDockWidget (QString title, QWidget *parent)
 
 InviwoDockWidget (QString title, QWidget *parent, QString objname)
 
bool isSticky () const
 
virtual void keyPressEvent (QKeyEvent *keyEvent) override
 
void setContents (QLayout *layout)
 
void setContents (QWidget *widget)
 
void setSticky (bool sticky)
 
virtual void showEvent (QShowEvent *showEvent) override
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (const Observer &other)
 
Observeroperator= (Observer &&other)
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 
virtual ~Observer ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event) override
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Additional Inherited Members

- Signals inherited from inviwo::InviwoDockWidget
void stickyFlagChanged (bool sticky)
 
- Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_
 

Member Function Documentation

◆ closeEvent()

virtual void inviwo::PythonEditorWidget::closeEvent ( QCloseEvent * event)
overrideprotectedvirtual

Reimplemented from inviwo::InviwoDockWidget.

◆ loadState()

virtual void inviwo::PythonEditorWidget::loadState ( )
overridevirtual

Load state related to the dock widget, called in the constructor. If you overload this function you must also call it in your constructor. Uses the objectName as settings group

Reimplemented from inviwo::InviwoDockWidget.

◆ onPythonExecutionOutput()

virtual void inviwo::PythonEditorWidget::onPythonExecutionOutput ( const std::string & msg,
PythonOutputType outputType )
overridevirtual

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