00001 /****************************************************************************
00002 ** ui.h extension file, included from the uic-generated form implementation.
00003 **
00004 ** If you wish to add, delete or rename slots use Qt Designer which will
00005 ** update this file, preserving your code. Create an init() slot in place of
00006 ** a constructor, and a destroy() slot in place of a destructor.
00007 *****************************************************************************/
00008
00009 void QTS_TextLabelDialog::init() {
00010
00011 }
00012
00013 QString QTS_TextLabelDialog::getText() {
00014 return teText->text();
00015 }
00016
00017 void QTS_TextLabelDialog::validate() {
00018 if (teText->text().isEmpty()) {
00019 QMessageBox::warning(this, tr("Warning"),
00020 tr("Please enter a text first."),
00021 QMessageBox::Ok, QMessageBox::NoButton);
00022 }
00023 else {
00024 accept();
00025 }
00026 }