FACT++  1.0
MainWindow::MainWindow ( QWidget *  p = 0)

Definition at line 50 of file MainWindow.cc.

References fFadLED, fFtuLED, MakeLEDs(), PACKAGE_BUGREPORT, PACKAGE_STRING, PACKAGE_URL, slot_fFadLED_clicked(), slot_fFtuLED_clicked(), and slot_TimeUpdate().

50  : QMainWindow(p)
51 {
52  // setupUi MUST be called before the DimNetwork is initilized
53  // In this way it can be ensured that nothing from the
54  // DimNetwork arrives before all graphical elements are
55  // initialized. This is a simple but very powerfull trick.
56  setupUi(this);
57 
58  // Now here we can do further setup which should be done
59  // before the gui is finally displayed.
60  fDimCmdServers->setItemDelegate(new CheckBoxDelegate);
61  fDimCmdCommands->setItemDelegate(new CheckBoxDelegate);
62  fDimCmdDescription->setItemDelegate(new HtmlDelegate);
63 
64  fDimSvcServers->setItemDelegate(new CheckBoxDelegate);
65  fDimSvcServices->setItemDelegate(new CheckBoxDelegate);
66  fDimSvcDescription->setItemDelegate(new HtmlDelegate);
67 
68  // Set a default string to be displayed in a the status bar at startup
69  fStatusBar->showMessage(PACKAGE_STRING " | " PACKAGE_URL " | report bugs to <" PACKAGE_BUGREPORT ">");
70 
71  // Initialize the 40 FTU Leds as a copy of the prototype LED
72  fFtuLED[0] = fFtuLEDPrototype;
73  MakeLEDs(fFtuLED, fFtuLedLayout, SLOT(slot_fFtuLED_clicked()));
74 
75  // Initialize the 40 FAD Leds as a copy of the prototype LED
76  fFadLED[0] = fFadLEDPrototype;
77  MakeLEDs(fFadLED, fFadLedLayout, SLOT(slot_fFadLED_clicked()));
78 
79  // Initialize a timer to update the displayed UTC time
80  QTimer *timer = new QTimer(this);
81  connect(timer, SIGNAL(timeout()), this, SLOT(slot_TimeUpdate()));
82  timer->start(100);
83 }
#define PACKAGE_BUGREPORT
#define PACKAGE_STRING
A delegate which displays an arrow if there are sub items and raises an event if the checkbox is chec...
void slot_TimeUpdate()
Definition: MainWindow.cc:85
void MakeLEDs(QPushButton **arr, QGridLayout *lay, const char *slot) const
Definition: MainWindow.cc:16
#define PACKAGE_URL
A Qt-Delegate to display HTML text (QTextDocument) in a list.
Definition: HtmlDelegate.h:6
void slot_fFadLED_clicked()
Definition: MainWindow.cc:358
QPushButton * fFtuLED[40]
Definition: MainWindow.h:23
void slot_fFtuLED_clicked()
Definition: MainWindow.cc:540
QPushButton * fFadLED[40]
Definition: MainWindow.h:24

+ Here is the call graph for this function: