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>
13 #include "FPublisher.h"
14 #include "FSubscriber.h"
16 #if (QT_VERSION-0 >= 0x040000)
17 #include <QCloseEvent>
19 #include <q3ptrlist.h>
25 void MainForm::addPublisher()
30 connect( this, SIGNAL( sigClose() ), fp, SLOT( destroy() ) );
31 fp->initPublisher(publGroup->id(publGroup->selected()),rand()%3);
32 #if (QT_VERSION-0 >= 0x040000)
33 fp->setWindowIcon(QPixmap("FPublisherIcon.png"));
38 void MainForm::addSubscriber()
42 connect( this, SIGNAL( sigClose() ), fs, SLOT( destroy() ) );
48 clYellow->isChecked());
49 #if (QT_VERSION-0 >= 0x040000)
50 fs->setWindowIcon(QPixmap("FSubscriberIcon.png"));
55 void MainForm::about()
57 QMessageBox::about( this, "ORTE application demo",
58 "This application demonstrates usege of ORTE library\n\n"
59 "Petr Smolik (c) 2004\n"
63 void MainForm::viewPublSource()
66 richtext=new MyRichText;
67 richtext->resize( 450, 350 );
68 richtext->setCaption( "Publisher example" );
69 richtext->setTextPublisher();
73 void MainForm::viewSubsSource()
76 richtext=new MyRichText;
77 richtext->resize( 450, 350 );
78 richtext->setCaption( "Subscriber example" );
79 richtext->setTextSubscriber();
83 void MainForm::closeEvent( QCloseEvent *e )