MPSolve 3.2.1
Loading...
Searching...
No Matches
xmpsolve::PolFileEditorWindow Class Reference
Inheritance diagram for xmpsolve::PolFileEditorWindow:

Public Slots

void onEditorFilenameChanged (QString)
 onEditorFilenameChanged handle the change of filename inside and editor tab.
 
void onEditorStateChanged (PolFileEditor::State)
 onEditorStateChanged handle the state changed of the editor tab.
 

Signals

void solvePoly (QString content)
 solvePoly is emitted when the user asks to solve a .pol file. More...
 

Public Member Functions

 PolFileEditorWindow (QWidget *parent=0)
 
void loadPolFile (QString path=QString())
 loadPolFile loads the file specified by path or simply focus the tab containing it if it's already loaded. More...
 
void savePolFile ()
 savePolFile save the pol file in the currently selected tab.
 
void closePolFile (QString path)
 closePolFile closes the tab of the given .pol file More...
 
void closeEditor (PolFileEditor *editor)
 Close the given editor.
 
QString currentPolFile ()
 currentPolFile returns the path to the currently focused .pol file. More...
 
PolFileEditorcurrentEditor ()
 currentEditor can be used to access the current PolFileEditor focused in the tabWidget. More...
 

Member Function Documentation

◆ closePolFile()

void PolFileEditorWindow::closePolFile ( QString  path)

closePolFile closes the tab of the given .pol file

Parameters
pathis the absolute path to the file to close.

◆ currentEditor()

PolFileEditor * PolFileEditorWindow::currentEditor ( )

currentEditor can be used to access the current PolFileEditor focused in the tabWidget.

Returns
A pointer to the focused instance of PolFileEditor, or NULL if there is none.

◆ currentPolFile()

QString PolFileEditorWindow::currentPolFile ( )

currentPolFile returns the path to the currently focused .pol file.

Returns
A QString with the absolute path of the currently focused .pol file.

◆ loadPolFile()

void PolFileEditorWindow::loadPolFile ( QString  path = QString())

loadPolFile loads the file specified by path or simply focus the tab containing it if it's already loaded.

path is the path to the file

◆ solvePoly

void xmpsolve::PolFileEditorWindow::solvePoly ( QString  content)
signal

solvePoly is emitted when the user asks to solve a .pol file.

Parameters
pathis the path to the content of the file that the user wants to solve.

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