1#ifndef POLFILEEDITORWINDOW_H
2#define POLFILEEDITORWINDOW_H
6#include "polfileeditor.h"
9class 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);
Definition: polfileeditorwindow.h:15
void solvePoly(QString content)
solvePoly is emitted when the user asks to solve a .pol file.
void closeEditor(PolFileEditor *editor)
Close the given editor.
Definition: polfileeditorwindow.cpp:82
QString currentPolFile()
currentPolFile returns the path to the currently focused .pol file.
Definition: polfileeditorwindow.cpp:167
PolFileEditor * currentEditor()
currentEditor can be used to access the current PolFileEditor focused in the tabWidget.
Definition: polfileeditorwindow.cpp:161
void savePolFile()
savePolFile save the pol file in the currently selected tab.
Definition: polfileeditorwindow.cpp:66
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
void onEditorFilenameChanged(QString)
onEditorFilenameChanged handle the change of filename inside and editor tab.
Definition: polfileeditorwindow.cpp:121
Definition: polfileeditor.h:14
State
State of the document.
Definition: polfileeditor.h:22