1 #ifndef POLFILEEDITORWINDOW_H
2 #define POLFILEEDITORWINDOW_H
6 #include "polfileeditor.h"
9 class PolFileEditorWindow;
81 void on_actionOpen_pol_file_triggered();
83 void on_actionSave_triggered();
85 void on_actionSolve_triggered();
87 void on_actionClose_triggered();
89 void on_actionClose_editor_triggered();
91 void on_actionNew_triggered();
94 Ui::PolFileEditorWindow *ui;
102 QMap<QString, PolFileEditor*> m_polFileEditors;
108 void closeEvent(QCloseEvent *);
113 void closeOpenedTabs();
115 void showEvent(QShowEvent *event);
125 #endif // POLFILEEDITORWINDOW_H
void onEditorFilenameChanged(QString)
onEditorFilenameChanged handle the change of filename inside and editor tab.
Definition: polfileeditorwindow.cpp:121
void closeEditor(PolFileEditor *editor)
Close the given editor.
Definition: polfileeditorwindow.cpp:82
void onEditorStateChanged(PolFileEditor::State)
onEditorStateChanged handle the state changed of the editor tab.
Definition: polfileeditorwindow.cpp:137
void loadPolFile(QString path=QString())
loadPolFile loads the file specified by path or simply focus the tab containing it if it's already lo...
Definition: polfileeditorwindow.cpp:29
void closePolFile(QString path)
closePolFile closes the tab of the given .pol file
Definition: polfileeditorwindow.cpp:73
Definition: polfileeditor.h:13
State
State of the document.
Definition: polfileeditor.h:22
Definition: polfileeditorwindow.h:14
PolFileEditor * currentEditor()
currentEditor can be used to access the current PolFileEditor focused in the tabWidget.
Definition: polfileeditorwindow.cpp:161
QString currentPolFile()
currentPolFile returns the path to the currently focused .pol file.
Definition: polfileeditorwindow.cpp:167
void solvePoly(QString content)
solvePoly is emitted when the user asks to solve a .pol file.
void savePolFile()
savePolFile save the pol file in the currently selected tab.
Definition: polfileeditorwindow.cpp:66