MainWindow¶
- src/ui/mainwindow.h
- src/ui/mainwindow.ui
The usual MainWindow class found in Qt GUI applications.
By default, the main window contains a CircuitView where the user can edit a schematic. It also contains the following docked widgets:
A
QListWidgetof components that can be inserted
Note that the component preview is initially invisible, until a component is selected from the list.
The MainWindow object handles any events from the list of components,
whereas CircuitView and ComponentPreview handle their own events.
-
class
Ohmcha::MainWindow: public QMainWindow Public Functions
-
MainWindow(QWidget *parent = nullptr)
-
~MainWindow()
-
CircuitView *
getCircuitView() - Return
The currently displayed Circuit View.
Private Functions
-
void
initializeComponentList() Refers to the component list in the docked widget.
Private Slots
-
void
on_listComponents_itemDoubleClicked(QListWidgetItem *item)
-
void
on_actionOpen_triggered()
-
void
on_actionNew_triggered()
-
void
on_actionSave_triggered()
-
void
on_actionSaveAs_triggered()
-
void
on_actionSolve_triggered()
-
void
on_actionHideSolution_triggered()
-
Test sentence.