Documents > BPS V2 C++ API
BpsLabelerPlaceholderDialog Class Reference

An editor for labeler placeholders. More...

#include <bpslabelerplaceholderdialog.h>

List of all members.

Public Member Functions

 BpsLabelerPlaceholderDialog (BpsDatastore *aDatastore, QWidget *aParent=0)
QString placeholder () const
void setPlaceholder (const QString &aPlaceholder)
 Set the editor inputs by a placeholder string enclosed in square braces.

Detailed Description

An editor for labeler placeholders.

 BpsLabelerPlaceholderDialog dlg(mDatastore, this);
 dlg.setPlaceholder(bStr("[a_name:maxlines=1]"));
 if (dlg.exec() == QDialog::Accepted) {
     QString ph = dlg.placeholder();
     // .....
 }

See documentation at http://ibk-software.com/wiki/bps2/labelers for details about placeholders.


Constructor & Destructor Documentation

BpsLabelerPlaceholderDialog::BpsLabelerPlaceholderDialog ( BpsDatastore aDatastore,
QWidget *  aParent = 0 
)
Parameters:
[in]aDatastoreThe datastore to use.
[in]aParentThe parent widget.

Member Function Documentation

QString BpsLabelerPlaceholderDialog::placeholder ( ) const
Returns:
The placeholder as string enclosed in square braces.
void BpsLabelerPlaceholderDialog::setPlaceholder ( const QString &  aPlaceholder)

Set the editor inputs by a placeholder string enclosed in square braces.

Parameters:
[in]aPlaceholderThe placeholder string.

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