Changeset 10657 for trunk/FACT++/gui
- Timestamp:
- 05/11/11 10:27:33 (14 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/CheckBoxDelegate.cc
r10394 r10657 1 // ************************************************************************** 2 /** @class CheckBoxDelegate 3 4 @brief A delegate which displays an arrow if there are sub items and raises an event if the checkbox is checked 5 6 */ 7 // ************************************************************************** 1 8 #include "CheckBoxDelegate.h" 2 9 3 #include <Q tGui/QPainter>4 #include <Q tGui/QApplication>10 #include <QPainter> 11 #include <QApplication> 5 12 6 13 void CheckBoxDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const … … 69 76 return rc; 70 77 } 78 79 // ************************************************************************** 80 /** @class CheckBoxEvent 81 82 @brief An event posted by the CheckBoxDelegate if the CheckBox is used 83 84 */ 85 // ************************************************************************** -
trunk/FACT++/gui/CheckBoxDelegate.h
r10394 r10657 2 2 #define FACT_CheckBoxDelegate 3 3 4 #include <Q tCore/QEvent>5 #include <Q tGui/QStandardItem>4 #include <QEvent> 5 #include <QStandardItem> 6 6 7 7 using namespace std; … … 18 18 19 19 20 #include <Q tGui/QStyledItemDelegate>20 #include <QStyledItemDelegate> 21 21 22 22 class CheckBoxDelegate : public QStyledItemDelegate 23 23 { 24 Q_OBJECT;25 26 24 public: 27 25 CheckBoxDelegate(QObject *p=0) : QStyledItemDelegate(p) -
trunk/FACT++/gui/DockWindow.cc
r10466 r10657 1 // ************************************************************************** 2 /** @class DockWindow 3 4 @brief A main window which can be used to display a QDockWidget from a tab 5 6 */ 7 // ************************************************************************** 1 8 #include "DockWindow.h" 2 9 … … 7 14 8 15 using namespace std; 9 10 #include <iostream>11 16 12 17 DockWindow::DockWindow(QDockWidget *d, const QString &name) … … 42 47 QWidget *w = new QWidget; 43 48 44 QGridLayout *l = 49 QGridLayout *l = new QGridLayout(w); 45 50 //layout->setObjectName(QString::fromUtf8("gridLayout_")+windowTitle()); 46 51 l->addWidget(fDockWidget, 0, 0, 1, 1); … … 50 55 51 56 fDockWidget->setParent(w); 52 53 57 } -
trunk/FACT++/gui/HtmlDelegate.cc
r10475 r10657 1 // ************************************************************************** 2 /** @class HtmlDelegate 3 4 @brief A Qt-Delegate to display HTML text (QTextDocument) in a list 5 6 */ 7 // ************************************************************************** 1 8 #include "HtmlDelegate.h" 2 9 3 #include <Q tGui/QPainter>4 #include <Q tGui/QTextDocument>10 #include <QPainter> 11 #include <QTextDocument> 5 12 6 13 void HtmlDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const -
trunk/FACT++/gui/HtmlDelegate.h
r10394 r10657 2 2 #define FACT_HtmlDelegate 3 3 4 #include <QtGui/QStyledItemDelegate> 5 6 using namespace std; 4 #include <QStyledItemDelegate> 7 5 8 6 class HtmlDelegate : public QStyledItemDelegate 9 7 { 10 Q_OBJECT;11 12 8 public: 13 9 HtmlDelegate(QObject *p=0) : QStyledItemDelegate(p) -
trunk/FACT++/gui/MainWindow.cc
r10644 r10657 31 31 fDimSvcDescription->setItemDelegate(new HtmlDelegate); 32 32 33 // Set a default string to be displayed in a the status bar at startup 33 34 fStatusBar->showMessage(PACKAGE_STRING" | "PACKAGE_URL" | report bugs to <"PACKAGE_BUGREPORT">"); 34 35 36 // Initialize the 40 FTU Leds as a copy of the prototype LED 35 37 fFtuLED[0] = fFtuLEDPrototype; 36 38 … … 58 60 } 59 61 62 // Initialize a timer to update the displayed UTC time 60 63 QTimer *timer = new QTimer(this); 61 64 connect(timer, SIGNAL(timeout()), this, SLOT(slot_TimeUpdate())); -
trunk/FACT++/gui/SpinBoxHex.h
r10605 r10657 2 2 #define FACT_SpinBoxHex 3 3 4 #include <Q tGui/QSpinBox>4 #include <QSpinBox> 5 5 6 6 … … 37 37 #endif 38 38 39 // ************************************************************************** 40 /** @class SpinBoxHex 41 42 @brief A QSpinBox which displays the value as hex-value 43 44 */ 45 // **************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.