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

Public Types

enum  State { SAVED , MODIFIED }
 State of the document.
 

Signals

void filenameChanged (QString filename)
 
void stateChanged (PolFileEditor::State)
 

Public Member Functions

 PolFileEditor (QWidget *parent=0, QString path=QString())
 
void savePolFile (QString path=QString())
 Save the file to the given path, or to the default one if path is an empty string.
 
QString currentPolFile ()
 currentPolFile returns the currently opened .pol file More...
 
bool isEmpty ()
 isEmpty returns true if the editor has no content in it. More...
 
State state ()
 state returns the current state of the document More...
 
QString content ()
 content returns the content of the editor More...
 

Member Function Documentation

◆ content()

QString PolFileEditor::content ( )

content returns the content of the editor

Returns
A QString with the current content of the Editor.

◆ currentPolFile()

QString PolFileEditor::currentPolFile ( )

currentPolFile returns the currently opened .pol file

Returns
a QString with the absolute path of the file

◆ isEmpty()

bool PolFileEditor::isEmpty ( )

isEmpty returns true if the editor has no content in it.

Returns

◆ state()

PolFileEditor::State PolFileEditor::state ( )

state returns the current state of the document

Returns
the value of m_state.

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