KDStateMachineEditor API Documentation 2.3
Loading...
Searching...
No Matches
MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Public Types

enum  InputMode { PresetsInputMode }

Public Slots

void createNew ()
void setInputMode (MainWindow::InputMode mode)
void setStateMachine (KDSME::StateMachine *stateMachine)

Public Member Functions

 MainWindow (QWidget *parent=nullptr, Qt::WindowFlags f={})
 ~MainWindow ()
void loadPresets (const QString &presetsDir)
QString selectedFile () const
 When in PresetsInputMode, return the currently selected file name.

Detailed Description

Definition at line 37 of file mainwindow.h.

Member Enumeration Documentation

◆ InputMode

Enumerator
PresetsInputMode 

Definition at line 42 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget * parent = nullptr,
Qt::WindowFlags f = {} )
explicit

Definition at line 53 of file mainwindow.cpp.

References MainWindow(), and setStateMachine().

Referenced by MainWindow().

◆ ~MainWindow()

MainWindow::~MainWindow ( )

Definition at line 75 of file mainwindow.cpp.

Member Function Documentation

◆ createNew

void MainWindow::createNew ( )
slot

Definition at line 166 of file mainwindow.cpp.

References setStateMachine().

◆ loadPresets()

void MainWindow::loadPresets ( const QString & presetsDir)

Definition at line 82 of file mainwindow.cpp.

Referenced by main().

◆ selectedFile()

QString MainWindow::selectedFile ( ) const

When in PresetsInputMode, return the currently selected file name.

Definition at line 172 of file mainwindow.cpp.

Referenced by setInputMode().

◆ setInputMode

void MainWindow::setInputMode ( MainWindow::InputMode mode)
slot

Definition at line 159 of file mainwindow.cpp.

References PresetsInputMode, and selectedFile().

◆ setStateMachine

void MainWindow::setStateMachine ( KDSME::StateMachine * stateMachine)
slot

Definition at line 134 of file mainwindow.cpp.

References KDSME::Element::setLabel().

Referenced by MainWindow(), createNew(), and main().


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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDStateMachineEditor
Create Qt State Machine metacode using a graphical user interface
https://github.com/KDAB/KDStateMachineEditor
Generated on for KDStateMachineEditor API Documentation by doxygen 1.15.0