1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
4 ** If you wish to add, delete or rename functions or slots use
5 ** Qt Designer which will update this file, preserving your code. Create an
6 ** init() function in place of a constructor, and a destroy() function in
7 ** place of a destructor.
8 *****************************************************************************/
9 #include <qmessagebox.h>
10 #include <qapplication.h>
14 #include "FPublisher.h"
15 #include "FSubscriber.h"
19 void MainForm::addPublisher()
23 fp = new FPublisher(this);
24 fp->initPublisher(publGroup->id(publGroup->selected()),rand()%3);
28 void MainForm::addSubscriber()
31 fs = new FSubscriber(this);
37 clYellow->isChecked());
41 void MainForm::about()
43 QMessageBox::about( this, "ORTE application demo",
44 "This application demonstrates use of ORTE library\n\n"
45 "Petr Smolik (c) 2004\n"
49 void MainForm::viewPublSource()
52 richtext=new MyRichText;
53 richtext->resize( 450, 350 );
54 richtext->setCaption( "Publisher example" );
55 richtext->setTextPublisher();
59 void MainForm::viewSubsSource()
62 richtext=new MyRichText;
63 richtext->resize( 450, 350 );
64 richtext->setCaption( "Subscriber example" );
65 richtext->setTextSubscriber();
69 void MainForm::closeEvent( QCloseEvent *e )