#include <programpage.h>
Public Slots | |
void | removeProgram () |
void | saveProgramParameters () |
bool | saveProgramScript () |
void | nameChanged (const QString &name) |
void | scriptModified () |
void | helpModified () |
void | resetModificationStatus () |
Signals | |
void | programToRemove (ProgramPage *programPage) |
void | programNameChanged (ProgramPage *programPage, const QString &name, QString message, QString title) |
void | scriptShown (Kate::View *scriptView) |
void | scriptHidden () |
Public Member Functions | |
ProgramPage (bool expertMode, QWidget *parent=0, const char *name=0) | |
ParameterPage * | getParameterPage () |
KTextEditor::Document * | getScript () |
Kate::View * | getScriptView () |
QString | getHelp () |
void | setHelp (QString helpContent) |
bool | areParametersModified () const |
bool | isDescriptionModified () const |
bool | isDescriptionModifiedAndNotSaved () const |
bool | isScriptModified () const |
void | initialisationOver () |
ProgramPage::ProgramPage | ( | bool | expertMode, | |
QWidget * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
Constructor.
expertMode | true if the file is opened in expert mode, false otherwise. | |
parent | the parent QWidget. | |
name | name of the widget (can be used for introspection). |
ParameterPage* ProgramPage::getParameterPage | ( | ) | [inline] |
Returns the parameterPage contained in the page.
KTextEditor::Document* ProgramPage::getScript | ( | ) | [inline] |
Returns the script document (Kate::Document, kpart) contained in the page.
Kate::View* ProgramPage::getScriptView | ( | ) | [inline] |
Returns the script view(Kate::View, kpart) contained in the page.
QString ProgramPage::getHelp | ( | ) |
Returns the content of the help.
void ProgramPage::setHelp | ( | QString | helpContent | ) |
Sets the content of the help.
bool ProgramPage::areParametersModified | ( | ) | const |
True if the ParameterPage has been modified, false otherwise.
bool ProgramPage::isDescriptionModified | ( | ) | const |
True if the program description has been modified, false otherwise. The program description includes the program name, the number of parameters, their name and status, and the help.
bool ProgramPage::isDescriptionModifiedAndNotSaved | ( | ) | const |
True if the program description has been modified and not saved, false otherwise. The program description includes the program name, the number of parameters, their name and status, and the help.
bool ProgramPage::isScriptModified | ( | ) | const [inline] |
True if the script has been modified, false otherwise.
void ProgramPage::initialisationOver | ( | ) | [inline] |
Indicates that the initialisation is finished.
void ProgramPage::saveProgramParameters | ( | ) | [slot] |
Saves the program parameters.
bool ProgramPage::saveProgramScript | ( | ) | [slot] |
Saves the currently loaded script.
void ProgramPage::nameChanged | ( | const QString & | name | ) | [slot] |
Takes the change if the program name into account.
name | name of the program. |
void ProgramPage::scriptModified | ( | ) | [inline, slot] |
Will be called when the script is modified.
void ProgramPage::helpModified | ( | ) | [inline, slot] |
Will be called when the help is modified.
void ProgramPage::resetModificationStatus | ( | ) | [inline, slot] |
Resets the internal modification status to false.