PrintPanel Class Reference

#include <printpanel.h>

Inheritance diagram for PrintPanel:

Inheritance graph
[legend]
Collaboration diagram for PrintPanel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 32 of file printpanel.h.

Public Member Functions

 PrintPanel (QWidget *parent=0)

Private Attributes

QGroupBoxtwoSidedGroupBox
QGroupBoxcolorsGroupBox
QRadioButtontwoSidedEnabledRadio
QRadioButtontwoSidedDisabledRadio
QRadioButtoncolorsEnabledRadio
QRadioButtoncolorsDisabledRadio


Constructor & Destructor Documentation

PrintPanel::PrintPanel ( QWidget parent = 0  ) 

Definition at line 28 of file printpanel.cpp.

References QBoxLayout::addWidget(), colorsDisabledRadio, colorsEnabledRadio, colorsGroupBox, QAbstractButton::setChecked(), QWidget::setLayout(), twoSidedDisabledRadio, twoSidedEnabledRadio, and twoSidedGroupBox.

00029     : QWidget(parent)
00030 {
00031 /*
00032     QLabel *label = new QLabel(tr("<b>TROLL PRINT</b>"));
00033     label->setAlignment(Qt::AlignCenter);
00034 */
00035 
00036     twoSidedGroupBox = new QGroupBox(tr("2-sided"));
00037     twoSidedEnabledRadio = new QRadioButton(tr("Enabled"));
00038     twoSidedDisabledRadio = new QRadioButton(tr("Disabled"));
00039     twoSidedDisabledRadio->setChecked(true);
00040 
00041     colorsGroupBox = new QGroupBox(tr("Colors"));
00042     colorsEnabledRadio = new QRadioButton(tr("Enabled"));
00043     colorsDisabledRadio = new QRadioButton(tr("Disabled"));
00044     colorsDisabledRadio->setChecked(true);
00045 
00046     QHBoxLayout *twoSidedLayout = new QHBoxLayout;
00047     twoSidedLayout->addWidget(twoSidedEnabledRadio);
00048     twoSidedLayout->addWidget(twoSidedDisabledRadio);
00049     twoSidedGroupBox->setLayout(twoSidedLayout);
00050 
00051     QHBoxLayout *colorsLayout = new QHBoxLayout;
00052     colorsLayout->addWidget(colorsEnabledRadio);
00053     colorsLayout->addWidget(colorsDisabledRadio);
00054     colorsGroupBox->setLayout(colorsLayout);
00055 
00056     QVBoxLayout *mainLayout = new QVBoxLayout;
00057 /*
00058     mainLayout->addWidget(label);
00059 */
00060     mainLayout->addWidget(twoSidedGroupBox);
00061     mainLayout->addWidget(colorsGroupBox);
00062     setLayout(mainLayout);
00063 }

Here is the call graph for this function:


Member Data Documentation

QGroupBox* PrintPanel::twoSidedGroupBox [private]

Definition at line 40 of file printpanel.h.

Referenced by PrintPanel().

QGroupBox* PrintPanel::colorsGroupBox [private]

Definition at line 41 of file printpanel.h.

Referenced by PrintPanel().

QRadioButton* PrintPanel::twoSidedEnabledRadio [private]

Definition at line 42 of file printpanel.h.

Referenced by PrintPanel().

QRadioButton* PrintPanel::twoSidedDisabledRadio [private]

Definition at line 43 of file printpanel.h.

Referenced by PrintPanel().

QRadioButton* PrintPanel::colorsEnabledRadio [private]

Definition at line 44 of file printpanel.h.

Referenced by PrintPanel().

QRadioButton* PrintPanel::colorsDisabledRadio [private]

Definition at line 45 of file printpanel.h.

Referenced by PrintPanel().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 15:37:03 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1