Changeset 10657 for trunk/FACT++/gui


Ignore:
Timestamp:
05/11/11 10:27:33 (14 years ago)
Author:
tbretz
Message:
Added or improved documentation.
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// **************************************************************************
    18#include "CheckBoxDelegate.h"
    29
    3 #include <QtGui/QPainter>
    4 #include <QtGui/QApplication>
     10#include <QPainter>
     11#include <QApplication>
    512
    613void CheckBoxDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
     
    6976    return rc;
    7077}
     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  
    22#define FACT_CheckBoxDelegate
    33
    4 #include <QtCore/QEvent>
    5 #include <QtGui/QStandardItem>
     4#include <QEvent>
     5#include <QStandardItem>
    66
    77using namespace std;
     
    1818
    1919
    20 #include <QtGui/QStyledItemDelegate>
     20#include <QStyledItemDelegate>
    2121
    2222class CheckBoxDelegate : public QStyledItemDelegate
    2323{
    24     Q_OBJECT;
    25 
    2624public:
    2725    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// **************************************************************************
    18#include "DockWindow.h"
    29
     
    714
    815using namespace std;
    9 
    10 #include <iostream>
    1116
    1217DockWindow::DockWindow(QDockWidget *d, const QString &name)
     
    4247    QWidget *w = new QWidget;
    4348
    44     QGridLayout *l =  new QGridLayout(w);
     49    QGridLayout *l = new QGridLayout(w);
    4550    //layout->setObjectName(QString::fromUtf8("gridLayout_")+windowTitle());
    4651    l->addWidget(fDockWidget, 0, 0, 1, 1);
     
    5055
    5156    fDockWidget->setParent(w);
    52 
    5357}
  • 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// **************************************************************************
    18#include "HtmlDelegate.h"
    29
    3 #include <QtGui/QPainter>
    4 #include <QtGui/QTextDocument>
     10#include <QPainter>
     11#include <QTextDocument>
    512
    613void HtmlDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
  • trunk/FACT++/gui/HtmlDelegate.h

    r10394 r10657  
    22#define FACT_HtmlDelegate
    33
    4 #include <QtGui/QStyledItemDelegate>
    5 
    6 using namespace std;
     4#include <QStyledItemDelegate>
    75
    86class HtmlDelegate : public QStyledItemDelegate
    97{
    10     Q_OBJECT;
    11 
    128public:
    139    HtmlDelegate(QObject *p=0) : QStyledItemDelegate(p)
  • trunk/FACT++/gui/MainWindow.cc

    r10644 r10657  
    3131    fDimSvcDescription->setItemDelegate(new HtmlDelegate);
    3232
     33    // Set a default string to be displayed in a the status bar at startup
    3334    fStatusBar->showMessage(PACKAGE_STRING"   |   "PACKAGE_URL"   |   report bugs to <"PACKAGE_BUGREPORT">");
    3435
     36    // Initialize the 40 FTU Leds as a copy of the prototype LED
    3537    fFtuLED[0] = fFtuLEDPrototype;
    3638
     
    5860    }
    5961
     62    // Initialize a timer to update the displayed UTC time
    6063    QTimer *timer = new QTimer(this);
    6164    connect(timer, SIGNAL(timeout()), this, SLOT(slot_TimeUpdate()));
  • trunk/FACT++/gui/SpinBoxHex.h

    r10605 r10657  
    22#define FACT_SpinBoxHex
    33
    4 #include <QtGui/QSpinBox>
     4#include <QSpinBox>
    55
    66
     
    3737#endif
    3838
     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.