TemplateEditor Class Reference

The TemplateEditor class provides simple template editor dialog. More...

#include <templateeditor.h>

List of all members.

Public Member Functions

 TemplateEditor (QWidget *parent=0)
QString currentTemplate () const
void setTemplate (const QString &text=QString())
void setDefaultTemplate (const QString &text)

Static Public Member Functions

static QString getTemplate (QWidget *parent, const QString &title, const QString &text=QString(), const QString &default_template=QString(), bool *ok=0)


Detailed Description

The TemplateEditor class provides simple template editor dialog.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

TemplateEditor::TemplateEditor ( QWidget *  parent = 0  )  [explicit]

Constructor.

Parameters:
parent Parent widget.


Member Function Documentation

QString TemplateEditor::currentTemplate (  )  const

Returns current template from editor.

static QString TemplateEditor::getTemplate ( QWidget *  parent,
const QString &  title,
const QString &  text = QString(),
const QString &  default_template = QString(),
bool *  ok = 0 
) [static]

Static convenience function to get a template from the user.

Parameters:
parent Parent widget.
title Window title.
text Template which is placed in the text edit.
default_template This template will be placed in the text edit if the user pressed Reset.
ok This varible will be set to true (false) if the user pressed OK (Cancel).

void TemplateEditor::setDefaultTemplate ( const QString &  text  ) 

Sets default template to text. This template will be placed in the text edit if the user pressed Reset

void TemplateEditor::setTemplate ( const QString &  text = QString()  ) 

Sets template which is placed in the text edit to text.


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

Generated on Sat Mar 27 19:43:01 2010 for Qmmp by  doxygen 1.5.9