summaryrefslogtreecommitdiffstats
path: root/examples/extension/mainform.ui.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-08 12:31:36 -0600
committerTimothy Pearson <[email protected]>2011-11-08 12:31:36 -0600
commitd796c9dd933ab96ec83b9a634feedd5d32e1ba3f (patch)
tree6e3dcca4f77e20ec8966c666aac7c35bd4704053 /examples/extension/mainform.ui.h
downloadtqt3-d796c9dd933ab96ec83b9a634feedd5d32e1ba3f.tar.gz
tqt3-d796c9dd933ab96ec83b9a634feedd5d32e1ba3f.zip
Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731
Diffstat (limited to 'examples/extension/mainform.ui.h')
-rw-r--r--examples/extension/mainform.ui.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/examples/extension/mainform.ui.h b/examples/extension/mainform.ui.h
new file mode 100644
index 000000000..82fc700d0
--- /dev/null
+++ b/examples/extension/mainform.ui.h
@@ -0,0 +1,46 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you wish to add, delete or rename functions use TQt Designer which will
+** update this file, preserving your code. Create an init() function in place
+** of a constructor, and a destroy() function in place of a destructor.
+*****************************************************************************/
+#include "dialogform.h"
+#include "extension.h"
+#include <qapplication.h>
+#include <qcheckbox.h>
+#include <qlineedit.h>
+
+void MainForm::init()
+{
+ sessions = FALSE;
+ logging = FALSE;
+ log_filename = TQString::null;
+ log_errors = TRUE;
+ log_actions = TRUE;
+}
+
+void MainForm::optionsDlg()
+{
+ DialogForm *dlg = new DialogForm( this, "dialog", TRUE );
+ Extension *ext = (Extension*)dlg->extension()->qt_cast( "Extension" );
+ if ( !ext )
+ return;
+ dlg->sessionsCheckBox->setChecked( sessions );
+ dlg->loggingCheckBox->setChecked( logging );
+ ext->logfileLineEdit->setText( log_filename );
+ ext->logErrorsCheckBox->setChecked( log_errors );
+
+ if ( dlg->exec() ) {
+ sessions = dlg->sessionsCheckBox->isChecked();
+ logging = dlg->loggingCheckBox->isChecked();
+ log_filename = ext->logfileLineEdit->text();
+ log_errors = ext->logErrorsCheckBox->isChecked();
+ }
+}
+
+
+void MainForm::tquit()
+{
+ TQApplication::exit( 0 );
+}