Window Class Reference

#include <window.h>

Inheritance diagram for Window:

Inheritance graph
[legend]
Collaboration diagram for Window:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 41 of file window.h.

Public Slots

void operationChanged ()
void shapeSelected (int index)
void echoChanged (int)
void validatorChanged (int)
void alignmentChanged (int)
void inputMaskChanged (int)
void accessChanged (int)
void changePrecision (int decimals)
void setFormatString (const QString &formatString)

Public Member Functions

 Window ()
void setVisible (bool visible)
 Window (QWidget *parent=0)
 Window ()
void setSourceModel (QAbstractItemModel *model)
 Window ()
void setSourceModel (QAbstractItemModel *model)
 Window ()
 Window ()
 Window ()
 Window ()
 Window ()
 Window ()
 Window ()
 Window ()
 Window ()
 Window (QWidget *parent=0)
 Window ()
 Window ()
 Window ()

Protected Member Functions

void closeEvent (QCloseEvent *event)

Private Types

enum  
enum  
enum  

Private Slots

void setIcon (int index)
void iconActivated (QSystemTrayIcon::ActivationReason reason)
void showMessage ()
void messageClicked ()
void browse ()
void find ()
void filterRegExpChanged ()
void filterColumnChanged ()
void sortChanged ()
void textFilterChanged ()
void dateFilterChanged ()
void setCurrentGlWidget ()
void rotateOneStep ()
void shapeChanged ()
void penChanged ()
void brushChanged ()
void fillRuleChanged ()
void fillGradientChanged ()
void penColorChanged ()

Private Member Functions

void createIconGroupBox ()
void createMessageGroupBox ()
void createActions ()
void createTrayIcon ()
QStringList findFiles (const QDir &directory, const QStringList &files, const QString &text)
void showFiles (const QDir &directory, const QStringList &files)
QPushButtoncreateButton (const QString &text, const char *member)
QComboBoxcreateComboBox (const QString &text=QString())
void createFilesTable ()
QLabelcreateLabel (const QString &text)
QSlidercreateSlider ()
QLabelcreateLabel (const QString &text)
void populateWithColors (QComboBox *comboBox)
QVariant currentItemData (QComboBox *comboBox)
void setupShapes ()
QGroupBoxcreateFirstExclusiveGroup ()
QGroupBoxcreateSecondExclusiveGroup ()
QGroupBoxcreateNonExclusiveGroup ()
QGroupBoxcreatePushButtonGroup ()
void createControls (const QString &title)
void createSpinBoxes ()
void createDateTimeEdits ()
void createDoubleSpinBoxes ()

Private Attributes

QGroupBoxiconGroupBox
QLabeliconLabel
QComboBoxiconComboBox
QCheckBoxshowIconCheckBox
QGroupBoxmessageGroupBox
QLabeltypeLabel
QLabeldurationLabel
QLabeldurationWarningLabel
QLabeltitleLabel
QLabelbodyLabel
QComboBoxtypeComboBox
QSpinBoxdurationSpinBox
QLineEdittitleEdit
QTextEditbodyEdit
QPushButtonshowMessageButton
QActionminimizeAction
QActionmaximizeAction
QActionrestoreAction
QActionquitAction
QSystemTrayIcontrayIcon
QMenutrayIconMenu
QComboBoxfileComboBox
QComboBoxtextComboBox
QComboBoxdirectoryComboBox
QLabelfileLabel
QLabeltextLabel
QLabeldirectoryLabel
QLabelfilesFoundLabel
QPushButtonbrowseButton
QPushButtonfindButton
QTableWidgetfilesTable
QSortFilterProxyModelproxyModel
QGroupBoxsourceGroupBox
QGroupBoxproxyGroupBox
QTreeViewsourceView
QTreeViewproxyView
QCheckBoxfilterCaseSensitivityCheckBox
QCheckBoxsortCaseSensitivityCheckBox
QLabelfilterPatternLabel
QLabelfilterSyntaxLabel
QLabelfilterColumnLabel
QLineEditfilterPatternLineEdit
QComboBoxfilterSyntaxComboBox
QComboBoxfilterColumnComboBox
MySortFilterProxyModelproxyModel
QGroupBoxsourceGroupBox
QGroupBoxproxyGroupBox
QTreeViewsourceView
QTreeViewproxyView
QCheckBoxfilterCaseSensitivityCheckBox
QLabelfilterPatternLabel
QLabelfromLabel
QLabeltoLabel
QLineEditfilterPatternLineEdit
QComboBoxfilterSyntaxComboBox
QDateEditfromDateEdit
QDateEdittoDateEdit
Helper helper
GLWidgetglWidget
QSliderxSlider
QSliderySlider
QSliderzSlider
GLWidgetglWidgets [NumRows][NumColumns]
GLWidgetcurrentGlWidget
RenderArearenderArea
QLabelshapeLabel
QLabelpenWidthLabel
QLabelpenStyleLabel
QLabelpenCapLabel
QLabelpenJoinLabel
QLabelbrushStyleLabel
QLabelotherOptionsLabel
QComboBoxshapeComboBox
QSpinBoxpenWidthSpinBox
QComboBoxpenStyleComboBox
QComboBoxpenCapComboBox
QComboBoxpenJoinComboBox
QComboBoxbrushStyleComboBox
QCheckBoxantialiasingCheckBox
QCheckBoxtransformationsCheckBox
QLabelaliasedLabel
QLabelantialiasedLabel
QLabelintLabel
QLabelfloatLabel
CircleWidgetcircleWidgets [2][2]
RenderArearenderAreas [NumRenderAreas]
QLabelfillRuleLabel
QLabelfillGradientLabel
QLabelfillToLabel
QLabelpenWidthLabel
QLabelpenColorLabel
QLabelrotationAngleLabel
QComboBoxfillRuleComboBox
QComboBoxfillColor1ComboBox
QComboBoxfillColor2ComboBox
QSpinBoxpenWidthSpinBox
QComboBoxpenColorComboBox
QSpinBoxrotationAngleSpinBox
RenderAreaoriginalRenderArea
RenderAreatransformedRenderAreas [NumTransformedAreas]
QComboBoxshapeComboBox
QComboBoxoperationComboBoxes [NumTransformedAreas]
QList< QPainterPathshapes
QLineEditechoLineEdit
QLineEditvalidatorLineEdit
QLineEditalignmentLineEdit
QLineEditinputMaskLineEdit
QLineEditaccessLineEdit
SlidersGrouphorizontalSliders
SlidersGroupverticalSliders
QStackedWidgetstackedWidget
QGroupBoxcontrolsGroup
QLabelminimumLabel
QLabelmaximumLabel
QLabelvalueLabel
QCheckBoxinvertedAppearance
QCheckBoxinvertedKeyBindings
QSpinBoxminimumSpinBox
QSpinBoxmaximumSpinBox
QSpinBoxvalueSpinBox
QComboBoxorientationCombo
QDateTimeEditmeetingEdit
QDoubleSpinBoxdoubleSpinBox
QDoubleSpinBoxpriceSpinBox
QDoubleSpinBoxscaleSpinBox
QGroupBoxspinBoxesGroup
QGroupBoxeditsGroup
QGroupBoxdoubleSpinBoxesGroup
QLabelmeetingLabel


Member Enumeration Documentation

anonymous enum [private]

Definition at line 43 of file window.h.

00043 { NumRows = 2, NumColumns = 3 };

anonymous enum [private]

Definition at line 50 of file window.h.

00050 { NumRenderAreas = 9 };

anonymous enum [private]

Definition at line 49 of file window.h.

00049 { NumTransformedAreas = 3 };


Constructor & Destructor Documentation

Window::Window (  ) 

Definition at line 28 of file window.cpp.

References QBoxLayout::addWidget(), QObject::connect(), createActions(), createIconGroupBox(), createMessageGroupBox(), createTrayIcon(), durationLabel, iconActivated(), iconComboBox, iconGroupBox, iconLabel, messageClicked(), messageGroupBox, QWidget::resize(), QComboBox::setCurrentIndex(), setIcon(), QWidget::setLayout(), QWidget::setMinimumWidth(), setVisible(), QWidget::setWindowTitle(), QSystemTrayIcon::show(), showIconCheckBox, showMessage(), showMessageButton, SIGNAL, QLabel::sizeHint(), SLOT, trayIcon, and QSize::width().

00029 {
00030     createIconGroupBox();
00031     createMessageGroupBox();
00032 
00033     iconLabel->setMinimumWidth(durationLabel->sizeHint().width());
00034 
00035     createActions();
00036     createTrayIcon();
00037 
00038     connect(showMessageButton, SIGNAL(clicked()), this, SLOT(showMessage()));
00039     connect(showIconCheckBox, SIGNAL(toggled(bool)),
00040             trayIcon, SLOT(setVisible(bool)));
00041     connect(iconComboBox, SIGNAL(currentIndexChanged(int)),
00042             this, SLOT(setIcon(int)));
00043     connect(trayIcon, SIGNAL(messageClicked()), this, SLOT(messageClicked()));
00044     connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
00045             this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
00046 
00047     QVBoxLayout *mainLayout = new QVBoxLayout;
00048     mainLayout->addWidget(iconGroupBox);
00049     mainLayout->addWidget(messageGroupBox);
00050     setLayout(mainLayout);
00051 
00052     iconComboBox->setCurrentIndex(1);
00053     trayIcon->show();
00054 
00055     setWindowTitle(tr("Systray"));
00056     resize(400, 300);
00057 }

Here is the call graph for this function:

Window::Window ( QWidget parent = 0  ) 

Definition at line 28 of file window.cpp.

References QGridLayout::addLayout(), QBoxLayout::addStretch(), QGridLayout::addWidget(), QBoxLayout::addWidget(), browse(), browseButton, createButton(), createComboBox(), createFilesTable(), QDir::currentPath(), directoryComboBox, directoryLabel, fileComboBox, fileLabel, filesFoundLabel, filesTable, find(), findButton, QWidget::resize(), QWidget::setLayout(), QWidget::setWindowTitle(), SLOT, textComboBox, and textLabel.

00029     : QDialog(parent)
00030 {
00031     browseButton = createButton(tr("&Browse..."), SLOT(browse()));
00032     findButton = createButton(tr("&Find"), SLOT(find()));
00033 
00034     fileComboBox = createComboBox(tr("*"));
00035     textComboBox = createComboBox();
00036     directoryComboBox = createComboBox(QDir::currentPath());
00037 
00038     fileLabel = new QLabel(tr("Named:"));
00039     textLabel = new QLabel(tr("Containing text:"));
00040     directoryLabel = new QLabel(tr("In directory:"));
00041     filesFoundLabel = new QLabel;
00042 
00043     createFilesTable();
00044 
00045     QHBoxLayout *buttonsLayout = new QHBoxLayout;
00046     buttonsLayout->addStretch();
00047     buttonsLayout->addWidget(findButton);
00048 
00049     QGridLayout *mainLayout = new QGridLayout;
00050     mainLayout->addWidget(fileLabel, 0, 0);
00051     mainLayout->addWidget(fileComboBox, 0, 1, 1, 2);
00052     mainLayout->addWidget(textLabel, 1, 0);
00053     mainLayout->addWidget(textComboBox, 1, 1, 1, 2);
00054     mainLayout->addWidget(directoryLabel, 2, 0);
00055     mainLayout->addWidget(directoryComboBox, 2, 1);
00056     mainLayout->addWidget(browseButton, 2, 2);
00057     mainLayout->addWidget(filesTable, 3, 0, 1, 3);
00058     mainLayout->addWidget(filesFoundLabel, 4, 0);
00059     mainLayout->addLayout(buttonsLayout, 5, 0, 1, 3);
00060     setLayout(mainLayout);
00061 
00062     setWindowTitle(tr("Find Files"));
00063     resize(700, 300);
00064 }

Here is the call graph for this function:

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window ( QWidget parent = 0  ) 

Window::Window (  ) 

Window::Window (  ) 

Window::Window (  ) 


Member Function Documentation

void Window::setVisible ( bool  visible  )  [virtual]

Reimplemented from QDialog.

Definition at line 59 of file window.cpp.

References maximizeAction, minimizeAction, restoreAction, QAction::setEnabled(), and QWidget::setVisible().

Referenced by Window().

00060 {
00061     minimizeAction->setEnabled(visible);
00062     maximizeAction->setEnabled(!visible);
00063     restoreAction->setEnabled(!visible);
00064     QWidget::setVisible(visible);
00065 }

void Window::closeEvent ( QCloseEvent event  )  [protected, virtual]

Reimplemented from QDialog.

Definition at line 67 of file window.cpp.

References QWidget::event(), QWidget::hide(), QMessageBox::information(), QSystemTrayIcon::isVisible(), and trayIcon.

00068 {
00069     if (trayIcon->isVisible()) {
00070         QMessageBox::information(this, tr("Systray"),
00071                                  tr("The program will keep running in the "
00072                                     "system tray. To terminate the program, "
00073                                     "choose <b>Quit</b> in the context menu "
00074                                     "that pops up when clicking this program's "
00075                                     "entry in the system tray."));
00076         hide();
00077         event->ignore();
00078     }
00079 }

Here is the call graph for this function:

void Window::setIcon ( int  index  )  [private, slot]

Definition at line 81 of file window.cpp.

References iconComboBox, QComboBox::itemIcon(), QComboBox::itemText(), QSystemTrayIcon::setIcon(), QSystemTrayIcon::setToolTip(), QWidget::setWindowIcon(), and trayIcon.

Referenced by Window().

00082 {
00083     QIcon icon = iconComboBox->itemIcon(index);
00084     trayIcon->setIcon(icon);
00085     setWindowIcon(icon);
00086 
00087     trayIcon->setToolTip(iconComboBox->itemText(index));
00088 }

void Window::iconActivated ( QSystemTrayIcon::ActivationReason  reason  )  [private, slot]

Definition at line 90 of file window.cpp.

References QComboBox::count(), QComboBox::currentIndex(), QSystemTrayIcon::DoubleClick, iconComboBox, QSystemTrayIcon::MiddleClick, QComboBox::setCurrentIndex(), showMessage(), and QSystemTrayIcon::Trigger.

Referenced by Window().

00091 {
00092     switch (reason) {
00093     case QSystemTrayIcon::Trigger:
00094     case QSystemTrayIcon::DoubleClick:
00095         iconComboBox->setCurrentIndex((iconComboBox->currentIndex() + 1)
00096                                       % iconComboBox->count());
00097         break;
00098     case QSystemTrayIcon::MiddleClick:
00099         showMessage();
00100         break;
00101     default:
00102         ;
00103     }
00104 }

void Window::showMessage (  )  [private, slot]

Definition at line 106 of file window.cpp.

References bodyEdit, QComboBox::currentIndex(), durationSpinBox, QComboBox::itemData(), QSystemTrayIcon::showMessage(), QLineEdit::text(), titleEdit, QTextEdit::toPlainText(), trayIcon, typeComboBox, and QSpinBox::value().

Referenced by iconActivated(), and Window().

void Window::messageClicked (  )  [private, slot]

Definition at line 114 of file window.cpp.

References QMessageBox::information().

Referenced by Window().

00115 {
00116     QMessageBox::information(0, tr("Systray"),
00117                              tr("Sorry, I already gave what help I could.\n"
00118                                 "Maybe you should try asking a human?"));
00119 }

void Window::createIconGroupBox (  )  [private]

Definition at line 121 of file window.cpp.

References QComboBox::addItem(), QBoxLayout::addStretch(), QBoxLayout::addWidget(), iconComboBox, iconGroupBox, iconLabel, QAbstractButton::setChecked(), QWidget::setLayout(), and showIconCheckBox.

Referenced by Window().

00122 {
00123     iconGroupBox = new QGroupBox(tr("Tray Icon"));
00124 
00125     iconLabel = new QLabel("Icon:");
00126 
00127     iconComboBox = new QComboBox;
00128     iconComboBox->addItem(QIcon(":/images/bad.svg"), tr("Bad"));
00129     iconComboBox->addItem(QIcon(":/images/heart.svg"), tr("Heart"));
00130     iconComboBox->addItem(QIcon(":/images/trash.svg"), tr("Trash"));
00131 
00132     showIconCheckBox = new QCheckBox(tr("Show icon"));
00133     showIconCheckBox->setChecked(true);
00134 
00135     QHBoxLayout *iconLayout = new QHBoxLayout;
00136     iconLayout->addWidget(iconLabel);
00137     iconLayout->addWidget(iconComboBox);
00138     iconLayout->addStretch();
00139     iconLayout->addWidget(showIconCheckBox);
00140     iconGroupBox->setLayout(iconLayout);
00141 }

Here is the call graph for this function:

void Window::createMessageGroupBox (  )  [private]

Definition at line 143 of file window.cpp.

References QComboBox::addItem(), QGridLayout::addWidget(), bodyEdit, bodyLabel, QSystemTrayIcon::Critical, durationLabel, durationSpinBox, durationWarningLabel, QSystemTrayIcon::Information, messageGroupBox, QSystemTrayIcon::NoIcon, QDialog::QPushButton, QGridLayout::setColumnStretch(), QComboBox::setCurrentIndex(), QPushButton::setDefault(), QLabel::setIndent(), QWidget::setLayout(), QTextEdit::setPlainText(), QSpinBox::setRange(), QGridLayout::setRowStretch(), QSpinBox::setSuffix(), QSpinBox::setValue(), showMessageButton, QStyle::SP_MessageBoxCritical, QStyle::SP_MessageBoxInformation, QStyle::SP_MessageBoxWarning, QWidget::style(), titleEdit, titleLabel, typeComboBox, typeLabel, and QSystemTrayIcon::Warning.

Referenced by Window().

00144 {
00145     messageGroupBox = new QGroupBox(tr("Balloon Message"));
00146 
00147     typeLabel = new QLabel(tr("Type:"));
00148 
00149     typeComboBox = new QComboBox;
00150     typeComboBox->addItem(tr("None"), QSystemTrayIcon::NoIcon);
00151     typeComboBox->addItem(style()->standardIcon(
00152             QStyle::SP_MessageBoxInformation), tr("Information"),
00153             QSystemTrayIcon::Information);
00154     typeComboBox->addItem(style()->standardIcon(
00155             QStyle::SP_MessageBoxWarning), tr("Warning"),
00156             QSystemTrayIcon::Warning);
00157     typeComboBox->addItem(style()->standardIcon(
00158             QStyle::SP_MessageBoxCritical), tr("Critical"),
00159             QSystemTrayIcon::Critical);
00160     typeComboBox->setCurrentIndex(1);
00161 
00162     durationLabel = new QLabel(tr("Duration:"));
00163 
00164     durationSpinBox = new QSpinBox;
00165     durationSpinBox->setRange(5, 60);
00166     durationSpinBox->setSuffix(" s");
00167     durationSpinBox->setValue(15);
00168 
00169     durationWarningLabel = new QLabel(tr("(some systems might ignore this "
00170                                          "hint)"));
00171     durationWarningLabel->setIndent(10);
00172 
00173     titleLabel = new QLabel(tr("Title:"));
00174 
00175     titleEdit = new QLineEdit(tr("Cannot connect to network"));
00176 
00177     bodyLabel = new QLabel(tr("Body:"));
00178 
00179     bodyEdit = new QTextEdit;
00180     bodyEdit->setPlainText(tr("Don't believe me. Honestly, I don't have a "
00181                               "clue.\nClick this balloon for details."));
00182 
00183     showMessageButton = new QPushButton(tr("Show Message"));
00184     showMessageButton->setDefault(true);
00185 
00186     QGridLayout *messageLayout = new QGridLayout;
00187     messageLayout->addWidget(typeLabel, 0, 0);
00188     messageLayout->addWidget(typeComboBox, 0, 1, 1, 2);
00189     messageLayout->addWidget(durationLabel, 1, 0);
00190     messageLayout->addWidget(durationSpinBox, 1, 1);
00191     messageLayout->addWidget(durationWarningLabel, 1, 2, 1, 3);
00192     messageLayout->addWidget(titleLabel, 2, 0);
00193     messageLayout->addWidget(titleEdit, 2, 1, 1, 4);
00194     messageLayout->addWidget(bodyLabel, 3, 0);
00195     messageLayout->addWidget(bodyEdit, 3, 1, 2, 4);
00196     messageLayout->addWidget(showMessageButton, 5, 4);
00197     messageLayout->setColumnStretch(3, 1);
00198     messageLayout->setRowStretch(4, 1);
00199     messageGroupBox->setLayout(messageLayout);
00200 }

Here is the call graph for this function:

void Window::createActions (  )  [private]

Definition at line 202 of file window.cpp.

References QObject::connect(), QWidget::hide(), maximizeAction, minimizeAction, qApp, quitAction, restoreAction, QWidget::show(), QWidget::showMaximized(), SIGNAL, and SLOT.

Referenced by Window().

00203 {
00204     minimizeAction = new QAction(tr("Mi&nimize"), this);
00205     connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide()));
00206 
00207     maximizeAction = new QAction(tr("Ma&ximize"), this);
00208     connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized()));
00209 
00210     restoreAction = new QAction(tr("&Restore"), this);
00211     connect(restoreAction, SIGNAL(triggered()), this, SLOT(show()));
00212 
00213     quitAction = new QAction(tr("&Quit"), this);
00214     connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
00215 }

Here is the call graph for this function:

void Window::createTrayIcon (  )  [private]

Definition at line 217 of file window.cpp.

References QMenu::addAction(), QMenu::addSeparator(), maximizeAction, minimizeAction, quitAction, restoreAction, QSystemTrayIcon::setContextMenu(), trayIcon, and trayIconMenu.

Referenced by Window().

Here is the call graph for this function:

void Window::browse (  )  [private, slot]

Definition at line 66 of file window.cpp.

References QComboBox::addItem(), QComboBox::currentIndex(), QDir::currentPath(), directoryComboBox, QFileDialog::getExistingDirectory(), QString::isEmpty(), and QComboBox::setCurrentIndex().

Referenced by Window().

00067 {
00068     QString directory = QFileDialog::getExistingDirectory(this,
00069                                tr("Find Files"), QDir::currentPath());
00070     if (!directory.isEmpty()) {
00071         directoryComboBox->addItem(directory);
00072         directoryComboBox->setCurrentIndex(directoryComboBox->currentIndex() + 1);
00073     }
00074 }

void Window::find (  )  [private, slot]

Definition at line 76 of file window.cpp.

References QComboBox::currentText(), directoryComboBox, QDir::entryList(), fileComboBox, QDir::Files, filesTable, findFiles(), QString::isEmpty(), QDir::NoSymLinks, path, QTableWidget::setRowCount(), showFiles(), and textComboBox.

Referenced by Window().

00077 {
00078     filesTable->setRowCount(0);
00079 
00080     QString fileName = fileComboBox->currentText();
00081     QString text = textComboBox->currentText();
00082     QString path = directoryComboBox->currentText();
00083 
00084     QDir directory = QDir(path);
00085     QStringList files;
00086     if (fileName.isEmpty())
00087         fileName = "*";
00088     files = directory.entryList(QStringList(fileName),
00089                                 QDir::Files | QDir::NoSymLinks);
00090 
00091     if (!text.isEmpty())
00092         files = findFiles(directory, files, text);
00093     showFiles(directory, files);
00094 }

QStringList Window::findFiles ( const QDir directory,
const QStringList files,
const QString text 
) [private]

Definition at line 96 of file window.cpp.

References QDir::absoluteFilePath(), QTextStream::atEnd(), i, qApp, QTextStream::readLine(), QIODevice::ReadOnly, QProgressDialog::setCancelButtonText(), QProgressDialog::setLabelText(), QProgressDialog::setRange(), QProgressDialog::setValue(), QWidget::setWindowTitle(), QList< T >::size(), and QProgressDialog::wasCanceled().

Referenced by find().

00098 {
00099     QProgressDialog progressDialog(this);
00100     progressDialog.setCancelButtonText(tr("&Cancel"));
00101     progressDialog.setRange(0, files.size());
00102     progressDialog.setWindowTitle(tr("Find Files"));
00103 
00104     QStringList foundFiles;
00105 
00106     for (int i = 0; i < files.size(); ++i) {
00107         progressDialog.setValue(i);
00108         progressDialog.setLabelText(tr("Searching file number %1 of %2...")
00109                                     .arg(i).arg(files.size()));
00110         qApp->processEvents();
00111 
00112         if (progressDialog.wasCanceled())
00113             break;
00114 
00115         QFile file(directory.absoluteFilePath(files[i]));
00116 
00117         if (file.open(QIODevice::ReadOnly)) {
00118             QString line;
00119             QTextStream in(&file);
00120             while (!in.atEnd()) {
00121                 if (progressDialog.wasCanceled())
00122                     break;
00123                 line = in.readLine();
00124                 if (line.contains(text)) {
00125                     foundFiles << files[i];
00126                     break;
00127                 }
00128             }
00129         }
00130     }
00131     return foundFiles;
00132 }

Here is the call graph for this function:

void Window::showFiles ( const QDir directory,
const QStringList files 
) [private]

Definition at line 134 of file window.cpp.

References QDir::absoluteFilePath(), Qt::AlignRight, Qt::AlignVCenter, filesFoundLabel, filesTable, i, QTableWidget::insertRow(), Qt::ItemIsEnabled, row, QTableWidget::rowCount(), QTableWidgetItem::setFlags(), QTableWidget::setItem(), QLabel::setText(), QTableWidgetItem::setTextAlignment(), QList< T >::size(), and QWidget::size().

Referenced by find().

00135 {
00136     for (int i = 0; i < files.size(); ++i) {
00137         QFile file(directory.absoluteFilePath(files[i]));
00138         qint64 size = QFileInfo(file).size();
00139 
00140         QTableWidgetItem *fileNameItem = new QTableWidgetItem(files[i]);
00141         fileNameItem->setFlags(Qt::ItemIsEnabled);
00142         QTableWidgetItem *sizeItem = new QTableWidgetItem(tr("%1 KB")
00143                                              .arg(int((size + 1023) / 1024)));
00144         sizeItem->setTextAlignment(Qt::AlignRight | Qt::AlignVCenter);
00145         sizeItem->setFlags(Qt::ItemIsEnabled);
00146 
00147         int row = filesTable->rowCount();
00148         filesTable->insertRow(row);
00149         filesTable->setItem(row, 0, fileNameItem);
00150         filesTable->setItem(row, 1, sizeItem);
00151     }
00152     filesFoundLabel->setText(tr("%1 file(s) found").arg(files.size()));
00153 }

Here is the call graph for this function:

QPushButton * Window::createButton ( const QString text,
const char *  member 
) [private]

Definition at line 155 of file window.cpp.

References QObject::connect(), QDialog::QPushButton, and SIGNAL.

Referenced by Window().

00156 {
00157     QPushButton *button = new QPushButton(text);
00158     connect(button, SIGNAL(clicked()), this, member);
00159     return button;
00160 }

Here is the call graph for this function:

QComboBox * Window::createComboBox ( const QString text = QString()  )  [private]

Definition at line 162 of file window.cpp.

References QComboBox::addItem(), QSizePolicy::Expanding, QSizePolicy::Preferred, QComboBox::setEditable(), and QWidget::setSizePolicy().

Referenced by Window().

00163 {
00164     QComboBox *comboBox = new QComboBox;
00165     comboBox->setEditable(true);
00166     comboBox->addItem(text);
00167     comboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
00168     return comboBox;
00169 }

Here is the call graph for this function:

void Window::createFilesTable (  )  [private]

Definition at line 171 of file window.cpp.

References filesTable, QWidget::hide(), QTableView::horizontalHeader(), QTableWidget::setHorizontalHeaderLabels(), QHeaderView::setResizeMode(), QTableView::setShowGrid(), QHeaderView::Stretch, and QTableView::verticalHeader().

Referenced by Window().

00172 {
00173     filesTable = new QTableWidget(0, 2);
00174     QStringList labels;
00175     labels << tr("File Name") << tr("Size");
00176     filesTable->setHorizontalHeaderLabels(labels);
00177     filesTable->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
00178     filesTable->verticalHeader()->hide();
00179     filesTable->setShowGrid(false);
00180 }

Here is the call graph for this function:

void Window::setSourceModel ( QAbstractItemModel model  ) 

Definition at line 110 of file window.cpp.

References proxyModel, QTreeView::setModel(), QSortFilterProxyModel::setSourceModel(), and sourceView.

Referenced by main().

00111 {
00112     proxyModel->setSourceModel(model);
00113     sourceView->setModel(model);
00114 }

Here is the call graph for this function:

void Window::filterRegExpChanged (  )  [private, slot]

Definition at line 116 of file window.cpp.

References Qt::CaseInsensitive, Qt::CaseSensitive, QComboBox::currentIndex(), filterCaseSensitivityCheckBox, filterPatternLineEdit, filterSyntaxComboBox, QAbstractButton::isChecked(), QComboBox::itemData(), proxyModel, QSortFilterProxyModel::setFilterRegExp(), and QLineEdit::text().

00117 {
00118     QRegExp::PatternSyntax syntax =
00119             QRegExp::PatternSyntax(filterSyntaxComboBox->itemData(
00120                     filterSyntaxComboBox->currentIndex()).toInt());
00121     Qt::CaseSensitivity caseSensitivity =
00122             filterCaseSensitivityCheckBox->isChecked() ? Qt::CaseSensitive
00123                                                        : Qt::CaseInsensitive;
00124 
00125     QRegExp regExp(filterPatternLineEdit->text(), caseSensitivity, syntax);
00126     proxyModel->setFilterRegExp(regExp);
00127 }

void Window::filterColumnChanged (  )  [private, slot]

Definition at line 129 of file window.cpp.

References QComboBox::currentIndex(), filterColumnComboBox, proxyModel, and QSortFilterProxyModel::setFilterKeyColumn().

void Window::sortChanged (  )  [private, slot]

Definition at line 134 of file window.cpp.

References Qt::CaseInsensitive, Qt::CaseSensitive, QAbstractButton::isChecked(), proxyModel, QSortFilterProxyModel::setSortCaseSensitivity(), and sortCaseSensitivityCheckBox.

void Window::setSourceModel ( QAbstractItemModel model  ) 

void Window::textFilterChanged (  )  [private, slot]

Definition at line 116 of file window.cpp.

References Qt::CaseInsensitive, Qt::CaseSensitive, QComboBox::currentIndex(), filterCaseSensitivityCheckBox, filterPatternLineEdit, filterSyntaxComboBox, QAbstractButton::isChecked(), QComboBox::itemData(), proxyModel, QSortFilterProxyModel::setFilterRegExp(), and QLineEdit::text().

00117 {
00118     QRegExp::PatternSyntax syntax =
00119             QRegExp::PatternSyntax(filterSyntaxComboBox->itemData(
00120                     filterSyntaxComboBox->currentIndex()).toInt());
00121     Qt::CaseSensitivity caseSensitivity =
00122             filterCaseSensitivityCheckBox->isChecked() ? Qt::CaseSensitive
00123                                                        : Qt::CaseInsensitive;
00124 
00125     QRegExp regExp(filterPatternLineEdit->text(), caseSensitivity, syntax);
00126     proxyModel->setFilterRegExp(regExp);
00127 }

void Window::dateFilterChanged (  )  [private, slot]

Definition at line 129 of file window.cpp.

References QDateTimeEdit::date(), fromDateEdit, proxyModel, and toDateEdit.

00130 {
00131     proxyModel->setFilterMinimumDate(fromDateEdit->date());
00132     proxyModel->setFilterMaximumDate(toDateEdit->date());
00133 }

QLabel * Window::createLabel ( const QString text  )  [private]

Definition at line 46 of file window.cpp.

References QFrame::Box, QFrame::Raised, and QFrame::setFrameStyle().

00047 {
00048     QLabel *label = new QLabel(text);
00049     label->setFrameStyle(QFrame::Box | QFrame::Raised);
00050     return label;
00051 }

Here is the call graph for this function:

QSlider * Window::createSlider (  )  [private]

Definition at line 57 of file window.cpp.

References QAbstractSlider::setPageStep(), QAbstractSlider::setRange(), QAbstractSlider::setSingleStep(), QSlider::setTickInterval(), QSlider::setTickPosition(), QSlider::TicksRight, and Qt::Vertical.

00058 {
00059     QSlider *slider = new QSlider(Qt::Vertical);
00060     slider->setRange(0, 360 * 16);
00061     slider->setSingleStep(16);
00062     slider->setPageStep(15 * 16);
00063     slider->setTickInterval(15 * 16);
00064     slider->setTickPosition(QSlider::TicksRight);
00065     return slider;
00066 }

Here is the call graph for this function:

void Window::setCurrentGlWidget (  )  [private, slot]

Definition at line 62 of file window.cpp.

References currentGlWidget, and QObject::sender().

00063 {
00064     currentGlWidget = qobject_cast<GLWidget *>(sender());
00065 }

void Window::rotateOneStep (  )  [private, slot]

Definition at line 67 of file window.cpp.

References currentGlWidget, and GLWidget::rotateBy().

00068 {
00069     if (currentGlWidget)
00070         currentGlWidget->rotateBy(+2 * 16, +2 * 16, -1 * 16);
00071 }

void Window::shapeChanged (  )  [private, slot]

Definition at line 166 of file window.cpp.

References QComboBox::currentIndex(), IdRole, QComboBox::itemData(), renderArea, RenderArea::setShape(), and shapeComboBox.

00167 {
00168     RenderArea::Shape shape = RenderArea::Shape(shapeComboBox->itemData(
00169             shapeComboBox->currentIndex(), IdRole).toInt());
00170     renderArea->setShape(shape);
00171 }

void Window::penChanged (  )  [private, slot]

Definition at line 173 of file window.cpp.

References Qt::blue, QComboBox::currentIndex(), IdRole, QComboBox::itemData(), penCapComboBox, penJoinComboBox, penStyleComboBox, penWidthSpinBox, renderArea, RenderArea::setPen(), QWidget::style(), QSpinBox::value(), and QWidget::width().

void Window::brushChanged (  )  [private, slot]

Definition at line 186 of file window.cpp.

References Qt::black, brushStyleComboBox, Qt::ConicalGradientPattern, QComboBox::currentIndex(), Qt::green, IdRole, QComboBox::itemData(), Qt::LinearGradientPattern, QWidget::QPixmap, Qt::RadialGradientPattern, renderArea, RenderArea::setBrush(), QGradient::setColorAt(), QWidget::style(), Qt::TexturePattern, and Qt::white.

00187 {
00188     Qt::BrushStyle style = Qt::BrushStyle(brushStyleComboBox->itemData(
00189             brushStyleComboBox->currentIndex(), IdRole).toInt());
00190 
00191     if (style == Qt::LinearGradientPattern) {
00192         QLinearGradient linearGradient(0, 0, 100, 100);
00193         linearGradient.setColorAt(0.0, Qt::white);
00194         linearGradient.setColorAt(0.2, Qt::green);
00195         linearGradient.setColorAt(1.0, Qt::black);
00196         renderArea->setBrush(linearGradient);
00197     } else if (style == Qt::RadialGradientPattern) {
00198         QRadialGradient radialGradient(50, 50, 50, 70, 70);
00199         radialGradient.setColorAt(0.0, Qt::white);
00200         radialGradient.setColorAt(0.2, Qt::green);
00201         radialGradient.setColorAt(1.0, Qt::black);
00202         renderArea->setBrush(radialGradient);
00203     } else if (style == Qt::ConicalGradientPattern) {
00204         QConicalGradient conicalGradient(50, 50, 150);
00205         conicalGradient.setColorAt(0.0, Qt::white);
00206         conicalGradient.setColorAt(0.2, Qt::green);
00207         conicalGradient.setColorAt(1.0, Qt::black);
00208         renderArea->setBrush(conicalGradient);
00209     } else if (style == Qt::TexturePattern) {
00210         renderArea->setBrush(QBrush(QPixmap(":/images/brick.png")));
00211     } else {
00212         renderArea->setBrush(QBrush(Qt::green, style));
00213     }
00214 }

QLabel* Window::createLabel ( const QString text  )  [private]

void Window::fillRuleChanged (  )  [private, slot]

Definition at line 195 of file window.cpp.

References currentItemData(), fillRuleComboBox, i, NumRenderAreas, renderAreas, and QVariant::toInt().

00196 {
00197     Qt::FillRule rule = (Qt::FillRule)currentItemData(fillRuleComboBox).toInt();
00198 
00199     for (int i = 0; i < NumRenderAreas; ++i)
00200         renderAreas[i]->setFillRule(rule);
00201 }

void Window::fillGradientChanged (  )  [private, slot]

Definition at line 203 of file window.cpp.

References Qt::color1, currentItemData(), fillColor1ComboBox, fillColor2ComboBox, i, NumRenderAreas, and renderAreas.

00204 {
00205     QColor color1 = qvariant_cast<QColor>(currentItemData(fillColor1ComboBox));
00206     QColor color2 = qvariant_cast<QColor>(currentItemData(fillColor2ComboBox));
00207 
00208     for (int i = 0; i < NumRenderAreas; ++i)
00209         renderAreas[i]->setFillGradient(color1, color2);
00210 }

void Window::penColorChanged (  )  [private, slot]

Definition at line 212 of file window.cpp.

References currentItemData(), i, NumRenderAreas, penColorComboBox, and renderAreas.

00213 {
00214     QColor color = qvariant_cast<QColor>(currentItemData(penColorComboBox));
00215 
00216     for (int i = 0; i < NumRenderAreas; ++i)
00217         renderAreas[i]->setPenColor(color);
00218 }

void Window::populateWithColors ( QComboBox comboBox  )  [private]

Definition at line 220 of file window.cpp.

References QComboBox::addItem(), QColor::colorNames(), and name.

00221 {
00222     QStringList colorNames = QColor::colorNames();
00223     foreach (QString name, colorNames)
00224         comboBox->addItem(name, QColor(name));
00225 }

Here is the call graph for this function:

QVariant Window::currentItemData ( QComboBox comboBox  )  [private]

Definition at line 227 of file window.cpp.

References QComboBox::currentIndex(), and QComboBox::itemData().

Referenced by fillGradientChanged(), fillRuleChanged(), and penColorChanged().

00228 {
00229     return comboBox->itemData(comboBox->currentIndex());
00230 }

Here is the call graph for this function:

void Window::operationChanged (  )  [slot]

Definition at line 123 of file window.cpp.

References QList< T >::append(), index, NoTransformation, operationComboBoxes, Rotate, Scale, RenderArea::setOperations(), transformedRenderAreas, and Translate.

00124 {
00125     static const Operation operationTable[] = {
00126         NoTransformation, Rotate, Scale, Translate
00127     };
00128 
00129     QList<Operation> operations;
00130     for (int i = 0; i < NumTransformedAreas; ++i) {
00131         int index = operationComboBoxes[i]->currentIndex();
00132         operations.append(operationTable[index]);
00133         transformedRenderAreas[i]->setOperations(operations);
00134     }
00135 }

void Window::shapeSelected ( int  index  )  [slot]

Definition at line 137 of file window.cpp.

References originalRenderArea, RenderArea::setShape(), shapes, and transformedRenderAreas.

Referenced by setupShapes().

00138 {
00139     QPainterPath shape = shapes[index];
00140     originalRenderArea->setShape(shape);
00141     for (int i = 0; i < NumTransformedAreas; ++i)
00142         transformedRenderAreas[i]->setShape(shape);
00143 }

void Window::setupShapes (  )  [private]

Definition at line 65 of file window.cpp.

References QPainterPath::addEllipse(), QPainterPath::addRect(), QPainterPath::addText(), QList< T >::append(), QRect::center(), QObject::connect(), QWidget::font(), QPainterPath::lineTo(), QPainterPath::moveTo(), QWidget::QFontMetrics, QPainterPath::setFillRule(), QFont::setPixelSize(), shapeComboBox, shapes, shapeSelected(), SIGNAL, SLOT, and Qt::WindingFill.

00066 {
00067     QPainterPath truck;
00068     truck.setFillRule(Qt::WindingFill);
00069     truck.moveTo(0.0, 87.0);
00070     truck.lineTo(0.0, 60.0);
00071     truck.lineTo(10.0, 60.0);
00072     truck.lineTo(35.0, 35.0);
00073     truck.lineTo(100.0, 35.0);
00074     truck.lineTo(100.0, 87.0);
00075     truck.lineTo(0.0, 87.0);
00076     truck.moveTo(17.0, 60.0);
00077     truck.lineTo(55.0, 60.0);
00078     truck.lineTo(55.0, 40.0);
00079     truck.lineTo(37.0, 40.0);
00080     truck.lineTo(17.0, 60.0);
00081     truck.addEllipse(17.0, 75.0, 25.0, 25.0);
00082     truck.addEllipse(63.0, 75.0, 25.0, 25.0);
00083 
00084     QPainterPath clock;
00085     clock.addEllipse(-50.0, -50.0, 100.0, 100.0);
00086     clock.addEllipse(-48.0, -48.0, 96.0, 96.0);
00087     clock.moveTo(0.0, 0.0);
00088     clock.lineTo(-2.0, -2.0);
00089     clock.lineTo(0.0, -42.0);
00090     clock.lineTo(2.0, -2.0);
00091     clock.lineTo(0.0, 0.0);
00092     clock.moveTo(0.0, 0.0);
00093     clock.lineTo(2.732, -0.732);
00094     clock.lineTo(24.495, 14.142);
00095     clock.lineTo(0.732, 2.732);
00096     clock.lineTo(0.0, 0.0);
00097 
00098     QPainterPath house;
00099     house.moveTo(-45.0, -20.0);
00100     house.lineTo(0.0, -45.0);
00101     house.lineTo(45.0, -20.0);
00102     house.lineTo(45.0, 45.0);
00103     house.lineTo(-45.0, 45.0);
00104     house.lineTo(-45.0, -20.0);
00105     house.addRect(15.0, 5.0, 20.0, 35.0);
00106     house.addRect(-35.0, -15.0, 25.0, 25.0);
00107 
00108     QPainterPath text;
00109     QFont font;
00110     font.setPixelSize(50);
00111     QRect fontBoundingRect = QFontMetrics(font).boundingRect(tr("Qt"));
00112     text.addText(-QPointF(fontBoundingRect.center()), font, tr("Qt"));
00113 
00114     shapes.append(clock);
00115     shapes.append(house);
00116     shapes.append(text);
00117     shapes.append(truck);
00118 
00119     connect(shapeComboBox, SIGNAL(activated(int)),
00120             this, SLOT(shapeSelected(int)));
00121 }

Here is the call graph for this function:

QGroupBox * Window::createFirstExclusiveGroup (  )  [private]

Definition at line 42 of file window.cpp.

References QBoxLayout::addStretch(), QBoxLayout::addWidget(), QAbstractButton::setChecked(), and QWidget::setLayout().

00043 {
00044     QGroupBox *groupBox = new QGroupBox(tr("Exclusive Radio Buttons"));
00045 
00046     QRadioButton *radio1 = new QRadioButton(tr("&Radio button 1"));
00047     QRadioButton *radio2 = new QRadioButton(tr("R&adio button 2"));
00048     QRadioButton *radio3 = new QRadioButton(tr("Ra&dio button 3"));
00049 
00050     radio1->setChecked(true);
00051 
00052     QVBoxLayout *vbox = new QVBoxLayout;
00053     vbox->addWidget(radio1);
00054     vbox->addWidget(radio2);
00055     vbox->addWidget(radio3);
00056     vbox->addStretch(1);
00057     groupBox->setLayout(vbox);
00058 
00059     return groupBox;
00060 }

Here is the call graph for this function:

QGroupBox * Window::createSecondExclusiveGroup (  )  [private]

Definition at line 62 of file window.cpp.

References QBoxLayout::addStretch(), QBoxLayout::addWidget(), QGroupBox::setCheckable(), QAbstractButton::setChecked(), QGroupBox::setChecked(), and QWidget::setLayout().

00063 {
00064     QGroupBox *groupBox = new QGroupBox(tr("E&xclusive Radio Buttons"));
00065     groupBox->setCheckable(true);
00066     groupBox->setChecked(false);
00067 
00068     QRadioButton *radio1 = new QRadioButton(tr("Rad&io button 1"));
00069     QRadioButton *radio2 = new QRadioButton(tr("Radi&o button 2"));
00070     QRadioButton *radio3 = new QRadioButton(tr("Radio &button 3"));
00071     radio1->setChecked(true);
00072     QCheckBox *checkBox = new QCheckBox(tr("Ind&ependent checkbox"));
00073     checkBox->setChecked(true);
00074 
00075     QVBoxLayout *vbox = new QVBoxLayout;
00076     vbox->addWidget(radio1);
00077     vbox->addWidget(radio2);
00078     vbox->addWidget(radio3);
00079     vbox->addWidget(checkBox);
00080     vbox->addStretch(1);
00081     groupBox->setLayout(vbox);
00082 
00083     return groupBox;
00084 }

Here is the call graph for this function:

QGroupBox * Window::createNonExclusiveGroup (  )  [private]

Definition at line 86 of file window.cpp.

References QBoxLayout::addStretch(), QBoxLayout::addWidget(), Qt::PartiallyChecked, QAbstractButton::setChecked(), QCheckBox::setCheckState(), QGroupBox::setFlat(), QWidget::setLayout(), and QCheckBox::setTristate().

00087 {
00088     QGroupBox *groupBox = new QGroupBox(tr("Non-Exclusive Checkboxes"));
00089     groupBox->setFlat(true);
00090 
00091     QCheckBox *checkBox1 = new QCheckBox(tr("&Checkbox 1"));
00092     QCheckBox *checkBox2 = new QCheckBox(tr("C&heckbox 2"));
00093     checkBox2->setChecked(true);
00094     QCheckBox *tristateBox = new QCheckBox(tr("Tri-&state button"));
00095     tristateBox->setTristate(true);
00096     tristateBox->setCheckState(Qt::PartiallyChecked);
00097 
00098     QVBoxLayout *vbox = new QVBoxLayout;
00099     vbox->addWidget(checkBox1);
00100     vbox->addWidget(checkBox2);
00101     vbox->addWidget(tristateBox);
00102     vbox->addStretch(1);
00103     groupBox->setLayout(vbox);
00104 
00105     return groupBox;
00106 }

Here is the call graph for this function:

QGroupBox * Window::createPushButtonGroup (  )  [private]

Definition at line 108 of file window.cpp.

References QMenu::addAction(), QBoxLayout::addStretch(), QBoxLayout::addWidget(), QDialog::QPushButton, QGroupBox::setCheckable(), QAbstractButton::setCheckable(), QAbstractButton::setChecked(), QGroupBox::setChecked(), QPushButton::setFlat(), QWidget::setLayout(), QPushButton::setMenu(), and QAction::setMenu().

00109 {
00110     QGroupBox *groupBox = new QGroupBox(tr("&Push Buttons"));
00111     groupBox->setCheckable(true);
00112     groupBox->setChecked(true);
00113 
00114     QPushButton *pushButton = new QPushButton(tr("&Normal Button"));
00115     QPushButton *toggleButton = new QPushButton(tr("&Toggle Button"));
00116     toggleButton->setCheckable(true);
00117     toggleButton->setChecked(true);
00118     QPushButton *flatButton = new QPushButton(tr("&Flat Button"));
00119     flatButton->setFlat(true);
00120 
00121     QPushButton *popupButton = new QPushButton(tr("Pop&up Button"));
00122     QMenu *menu = new QMenu(this);
00123     menu->addAction(tr("&First Item"));
00124     menu->addAction(tr("&Second Item"));
00125     menu->addAction(tr("&Third Item"));
00126     menu->addAction(tr("F&ourth Item"));
00127     popupButton->setMenu(menu);
00128 
00129     QAction *newAction = menu->addAction(tr("Submenu"));
00130     QMenu *subMenu = new QMenu(tr("Popup Submenu"));
00131     subMenu->addAction(tr("Item 1"));
00132     subMenu->addAction(tr("Item 2"));
00133     subMenu->addAction(tr("Item 3"));
00134     newAction->setMenu(subMenu);
00135 
00136     QVBoxLayout *vbox = new QVBoxLayout;
00137     vbox->addWidget(pushButton);
00138     vbox->addWidget(toggleButton);
00139     vbox->addWidget(flatButton);
00140     vbox->addWidget(popupButton);
00141     vbox->addStretch(1);
00142     groupBox->setLayout(vbox);
00143 
00144     return groupBox;
00145 }

Here is the call graph for this function:

void Window::echoChanged ( int   )  [slot]

Definition at line 134 of file window.cpp.

References echoLineEdit, QLineEdit::NoEcho, QLineEdit::Normal, QLineEdit::Password, QLineEdit::PasswordEchoOnEdit, and QLineEdit::setEchoMode().

00135 {
00136     switch (index) {
00137     case 0:
00138         echoLineEdit->setEchoMode(QLineEdit::Normal);
00139         break;
00140     case 1:
00141         echoLineEdit->setEchoMode(QLineEdit::Password);
00142         break;
00143     case 2:
00144       echoLineEdit->setEchoMode(QLineEdit::PasswordEchoOnEdit);
00145         break;
00146     case 3:
00147         echoLineEdit->setEchoMode(QLineEdit::NoEcho);
00148     }
00149 }

void Window::validatorChanged ( int   )  [slot]

Definition at line 151 of file window.cpp.

References QLineEdit::clear(), QLineEdit::setValidator(), and validatorLineEdit.

00152 {
00153     switch (index) {
00154     case 0:
00155         validatorLineEdit->setValidator(0);
00156         break;
00157     case 1:
00158         validatorLineEdit->setValidator(new QIntValidator(
00159             validatorLineEdit));
00160         break;
00161     case 2:
00162         validatorLineEdit->setValidator(new QDoubleValidator(-999.0,
00163             999.0, 2, validatorLineEdit));
00164     }
00165 
00166     validatorLineEdit->clear();
00167 }

void Window::alignmentChanged ( int   )  [slot]

Definition at line 169 of file window.cpp.

References Qt::AlignCenter, Qt::AlignLeft, alignmentLineEdit, Qt::AlignRight, and QLineEdit::setAlignment().

00170 {
00171     switch (index) {
00172     case 0:
00173         alignmentLineEdit->setAlignment(Qt::AlignLeft);
00174         break;
00175     case 1:
00176         alignmentLineEdit->setAlignment(Qt::AlignCenter);
00177         break;
00178     case 2:
00179       alignmentLineEdit->setAlignment(Qt::AlignRight);
00180     }
00181 }

void Window::inputMaskChanged ( int   )  [slot]

Definition at line 183 of file window.cpp.

References inputMaskLineEdit, QLineEdit::setCursorPosition(), QLineEdit::setInputMask(), and QLineEdit::setText().

00184 {
00185     switch (index) {
00186     case 0:
00187         inputMaskLineEdit->setInputMask("");
00188         break;
00189     case 1:
00190         inputMaskLineEdit->setInputMask("+99 99 99 99 99;_");
00191         break;
00192     case 2:
00193         inputMaskLineEdit->setInputMask("0000-00-00");
00194         inputMaskLineEdit->setText("00000000");
00195         inputMaskLineEdit->setCursorPosition(0);
00196         break;
00197     case 3:
00198         inputMaskLineEdit->setInputMask(">AAAAA-AAAAA-AAAAA-AAAAA-AAAAA;#");
00199     }
00200 }

void Window::accessChanged ( int   )  [slot]

Definition at line 202 of file window.cpp.

References accessLineEdit, and QLineEdit::setReadOnly().

00203 {
00204     switch (index) {
00205     case 0:
00206         accessLineEdit->setReadOnly(false);
00207         break;
00208     case 1:
00209         accessLineEdit->setReadOnly(true);
00210     }
00211 }

void Window::createControls ( const QString title  )  [private]

Definition at line 59 of file window.cpp.

References QComboBox::addItem(), QGridLayout::addWidget(), QObject::connect(), controlsGroup, horizontalSliders, invertedAppearance, invertedKeyBindings, maximumLabel, maximumSpinBox, minimumLabel, minimumSpinBox, orientationCombo, QWidget::setLayout(), QSpinBox::setRange(), QSpinBox::setSingleStep(), SIGNAL, SLOT, stackedWidget, valueLabel, valueSpinBox, and verticalSliders.

00060 {
00061     controlsGroup = new QGroupBox(title);
00062 
00063     minimumLabel = new QLabel(tr("Minimum value:"));
00064     maximumLabel = new QLabel(tr("Maximum value:"));
00065     valueLabel = new QLabel(tr("Current value:"));
00066 
00067     invertedAppearance = new QCheckBox(tr("Inverted appearance"));
00068     invertedKeyBindings = new QCheckBox(tr("Inverted key bindings"));
00069 
00070     minimumSpinBox = new QSpinBox;
00071     minimumSpinBox->setRange(-100, 100);
00072     minimumSpinBox->setSingleStep(1);
00073 
00074     maximumSpinBox = new QSpinBox;
00075     maximumSpinBox->setRange(-100, 100);
00076     maximumSpinBox->setSingleStep(1);
00077 
00078     valueSpinBox = new QSpinBox;
00079     valueSpinBox->setRange(-100, 100);
00080     valueSpinBox->setSingleStep(1);
00081 
00082     orientationCombo = new QComboBox;
00083     orientationCombo->addItem(tr("Horizontal slider-like widgets"));
00084     orientationCombo->addItem(tr("Vertical slider-like widgets"));
00085 
00086     connect(orientationCombo, SIGNAL(activated(int)),
00087             stackedWidget, SLOT(setCurrentIndex(int)));
00088     connect(minimumSpinBox, SIGNAL(valueChanged(int)),
00089             horizontalSliders, SLOT(setMinimum(int)));
00090     connect(minimumSpinBox, SIGNAL(valueChanged(int)),
00091             verticalSliders, SLOT(setMinimum(int)));
00092     connect(maximumSpinBox, SIGNAL(valueChanged(int)),
00093             horizontalSliders, SLOT(setMaximum(int)));
00094     connect(maximumSpinBox, SIGNAL(valueChanged(int)),
00095             verticalSliders, SLOT(setMaximum(int)));
00096     connect(invertedAppearance, SIGNAL(toggled(bool)),
00097             horizontalSliders, SLOT(invertAppearance(bool)));
00098     connect(invertedAppearance, SIGNAL(toggled(bool)),
00099             verticalSliders, SLOT(invertAppearance(bool)));
00100     connect(invertedKeyBindings, SIGNAL(toggled(bool)),
00101             horizontalSliders, SLOT(invertKeyBindings(bool)));
00102     connect(invertedKeyBindings, SIGNAL(toggled(bool)),
00103             verticalSliders, SLOT(invertKeyBindings(bool)));
00104 
00105     QGridLayout *controlsLayout = new QGridLayout;
00106     controlsLayout->addWidget(minimumLabel, 0, 0);
00107     controlsLayout->addWidget(maximumLabel, 1, 0);
00108     controlsLayout->addWidget(valueLabel, 2, 0);
00109     controlsLayout->addWidget(minimumSpinBox, 0, 1);
00110     controlsLayout->addWidget(maximumSpinBox, 1, 1);
00111     controlsLayout->addWidget(valueSpinBox, 2, 1);
00112     controlsLayout->addWidget(invertedAppearance, 0, 2);
00113     controlsLayout->addWidget(invertedKeyBindings, 1, 2);
00114     controlsLayout->addWidget(orientationCombo, 3, 0, 1, 3);
00115     controlsGroup->setLayout(controlsLayout);
00116 }

Here is the call graph for this function:

void Window::changePrecision ( int  decimals  )  [slot]

Definition at line 193 of file window.cpp.

References doubleSpinBox, priceSpinBox, scaleSpinBox, and QDoubleSpinBox::setDecimals().

Referenced by createDoubleSpinBoxes().

00194 {
00195     doubleSpinBox->setDecimals(decimals);
00196     scaleSpinBox->setDecimals(decimals);
00197     priceSpinBox->setDecimals(decimals);
00198 }

void Window::setFormatString ( const QString formatString  )  [slot]

Definition at line 128 of file window.cpp.

References QDateTimeEdit::DateSections_Mask, QDateTimeEdit::displayedSections(), Qt::ISODate, QDateTimeEdit::maximumDate(), QDateTimeEdit::maximumTime(), meetingEdit, meetingLabel, QDateTimeEdit::minimumDate(), QDateTimeEdit::minimumTime(), QDateTimeEdit::setDateRange(), QDateTimeEdit::setDisplayFormat(), QLabel::setText(), QDateTimeEdit::setTimeRange(), QDate::toString(), and QTime::toString().

Referenced by createDateTimeEdits().

00129 {
00130     meetingEdit->setDisplayFormat(formatString);
00131     if (meetingEdit->displayedSections() & QDateTimeEdit::DateSections_Mask) {
00132         meetingEdit->setDateRange(QDate(2004, 11, 1), QDate(2005, 11, 30));
00133         meetingLabel->setText(tr("Meeting date (between %0 and %1):")
00134             .arg(meetingEdit->minimumDate().toString(Qt::ISODate))
00135       .arg(meetingEdit->maximumDate().toString(Qt::ISODate)));
00136     } else {
00137         meetingEdit->setTimeRange(QTime(0, 7, 20, 0), QTime(21, 0, 0, 0));
00138         meetingLabel->setText(tr("Meeting time (between %0 and %1):")
00139             .arg(meetingEdit->minimumTime().toString(Qt::ISODate))
00140       .arg(meetingEdit->maximumTime().toString(Qt::ISODate)));
00141     }
00142 }

void Window::createSpinBoxes (  )  [private]

Definition at line 43 of file window.cpp.

References QBoxLayout::addWidget(), priceSpinBox, QWidget::setLayout(), QDoubleSpinBox::setPrefix(), QSpinBox::setRange(), QDoubleSpinBox::setRange(), QSpinBox::setSingleStep(), QDoubleSpinBox::setSingleStep(), QAbstractSpinBox::setSpecialValueText(), QSpinBox::setSuffix(), QDoubleSpinBox::setValue(), QSpinBox::setValue(), and spinBoxesGroup.

00044 {
00045     spinBoxesGroup = new QGroupBox(tr("Spinboxes"));
00046 
00047     QLabel *integerLabel = new QLabel(tr("Enter a value between "
00048         "%1 and %2:").arg(-20).arg(20));
00049     QSpinBox *integerSpinBox = new QSpinBox;
00050     integerSpinBox->setRange(-20, 20);
00051     integerSpinBox->setSingleStep(1);
00052     integerSpinBox->setValue(0);
00053 
00054     QLabel *zoomLabel = new QLabel(tr("Enter a zoom value between "
00055         "%1 and %2:").arg(0).arg(1000));
00056     QSpinBox *zoomSpinBox = new QSpinBox;
00057     zoomSpinBox->setRange(0, 1000);
00058     zoomSpinBox->setSingleStep(10);
00059     zoomSpinBox->setSuffix("%");
00060     zoomSpinBox->setSpecialValueText(tr("Automatic"));
00061     zoomSpinBox->setValue(100);
00062 
00063     QLabel *priceLabel = new QLabel(tr("Enter a price between "
00064         "%1 and %2:").arg(0).arg(999));
00065     QSpinBox *priceSpinBox = new QSpinBox;
00066     priceSpinBox->setRange(0, 999);
00067     priceSpinBox->setSingleStep(1);
00068     priceSpinBox->setPrefix("$");
00069     priceSpinBox->setValue(99);
00070 
00071     QVBoxLayout *spinBoxLayout = new QVBoxLayout;
00072     spinBoxLayout->addWidget(integerLabel);
00073     spinBoxLayout->addWidget(integerSpinBox);
00074     spinBoxLayout->addWidget(zoomLabel);
00075     spinBoxLayout->addWidget(zoomSpinBox);
00076     spinBoxLayout->addWidget(priceLabel);
00077     spinBoxLayout->addWidget(priceSpinBox);
00078     spinBoxesGroup->setLayout(spinBoxLayout);
00079 }

Here is the call graph for this function:

void Window::createDateTimeEdits (  )  [private]

Definition at line 81 of file window.cpp.

References QComboBox::addItem(), QObject::connect(), QDate::currentDate(), QDateTime::currentDateTime(), QComboBox::currentText(), QTime::currentTime(), editsGroup, Qt::ISODate, QDateTimeEdit::maximumDate(), QDateTimeEdit::maximumTime(), meetingEdit, meetingLabel, QDateTimeEdit::minimumDate(), QDateTimeEdit::minimumTime(), QDateTimeEdit::setDateRange(), setFormatString(), QWidget::setLayout(), QLabel::setText(), QDateTimeEdit::setTimeRange(), SIGNAL, SLOT, QDate::toString(), and QTime::toString().

00082 {
00083     editsGroup = new QGroupBox(tr("Date and time spin boxes"));
00084 
00085     QLabel *dateLabel = new QLabel;
00086     QDateEdit *dateEdit = new QDateEdit(QDate::currentDate());
00087     dateEdit->setDateRange(QDate(2005, 1, 1), QDate(2010, 12, 31));
00088     dateLabel->setText(tr("Appointment date (between %0 and %1):")
00089                        .arg(dateEdit->minimumDate().toString(Qt::ISODate))
00090                        .arg(dateEdit->maximumDate().toString(Qt::ISODate)));
00091 
00092     QLabel *timeLabel = new QLabel;
00093     QTimeEdit *timeEdit = new QTimeEdit(QTime::currentTime());
00094     timeEdit->setTimeRange(QTime(9, 0, 0, 0), QTime(16, 30, 0, 0));
00095     timeLabel->setText(tr("Appointment time (between %0 and %1):")
00096                        .arg(timeEdit->minimumTime().toString(Qt::ISODate))
00097                        .arg(timeEdit->maximumTime().toString(Qt::ISODate)));
00098 
00099     meetingLabel = new QLabel;
00100     meetingEdit = new QDateTimeEdit(QDateTime::currentDateTime());
00101 
00102     QLabel *formatLabel = new QLabel(tr("Format string for the meeting date "
00103                                         "and time:"));
00104     QComboBox *formatComboBox = new QComboBox;
00105     formatComboBox->addItem("yyyy-MM-dd hh:mm:ss (zzz 'ms')");
00106     formatComboBox->addItem("hh:mm:ss MM/dd/yyyy");
00107     formatComboBox->addItem("hh:mm:ss dd/MM/yyyy");
00108     formatComboBox->addItem("hh:mm:ss");
00109     formatComboBox->addItem("hh:mm ap");
00110 
00111     connect(formatComboBox, SIGNAL(activated(const QString &)),
00112             this, SLOT(setFormatString(const QString &)));
00113 
00114     setFormatString(formatComboBox->currentText());
00115 
00116     QVBoxLayout *editsLayout = new QVBoxLayout;
00117     editsLayout->addWidget(dateLabel);
00118     editsLayout->addWidget(dateEdit);
00119     editsLayout->addWidget(timeLabel);
00120     editsLayout->addWidget(timeEdit);
00121     editsLayout->addWidget(meetingLabel);
00122     editsLayout->addWidget(meetingEdit);
00123     editsLayout->addWidget(formatLabel);
00124     editsLayout->addWidget(formatComboBox);
00125     editsGroup->setLayout(editsLayout);
00126 }

Here is the call graph for this function:

void Window::createDoubleSpinBoxes (  )  [private]

Definition at line 144 of file window.cpp.

References QBoxLayout::addWidget(), changePrecision(), QObject::connect(), doubleSpinBox, doubleSpinBoxesGroup, priceSpinBox, scaleSpinBox, QWidget::setLayout(), QDoubleSpinBox::setPrefix(), QSpinBox::setRange(), QDoubleSpinBox::setRange(), QDoubleSpinBox::setSingleStep(), QAbstractSpinBox::setSpecialValueText(), QDoubleSpinBox::setSuffix(), QDoubleSpinBox::setValue(), QSpinBox::setValue(), SIGNAL, and SLOT.

00145 {
00146     doubleSpinBoxesGroup = new QGroupBox(tr("Double precision spinboxes"));
00147 
00148     QLabel *precisionLabel = new QLabel(tr("Number of decimal places "
00149                                            "to show:"));
00150     QSpinBox *precisionSpinBox = new QSpinBox;
00151     precisionSpinBox->setRange(0, 13);
00152     precisionSpinBox->setValue(2);
00153 
00154     QLabel *doubleLabel = new QLabel(tr("Enter a value between "
00155         "%1 and %2:").arg(-20).arg(20));
00156     doubleSpinBox = new QDoubleSpinBox;
00157     doubleSpinBox->setRange(-20.0, 20.0);
00158     doubleSpinBox->setSingleStep(1.0);
00159     doubleSpinBox->setValue(0.0);
00160 
00161     QLabel *scaleLabel = new QLabel(tr("Enter a scale factor between "
00162         "%1 and %2:").arg(0).arg(1000.0));
00163     scaleSpinBox = new QDoubleSpinBox;
00164     scaleSpinBox->setRange(0.0, 1000.0);
00165     scaleSpinBox->setSingleStep(10.0);
00166     scaleSpinBox->setSuffix("%");
00167     scaleSpinBox->setSpecialValueText(tr("No scaling"));
00168     scaleSpinBox->setValue(100.0);
00169 
00170     QLabel *priceLabel = new QLabel(tr("Enter a price between "
00171         "%1 and %2:").arg(0).arg(1000));
00172     priceSpinBox = new QDoubleSpinBox;
00173     priceSpinBox->setRange(0.0, 1000.0);
00174     priceSpinBox->setSingleStep(1.0);
00175     priceSpinBox->setPrefix("$");
00176     priceSpinBox->setValue(99.99);
00177 
00178     connect(precisionSpinBox, SIGNAL(valueChanged(int)),
00179             this, SLOT(changePrecision(int)));
00180 
00181     QVBoxLayout *spinBoxLayout = new QVBoxLayout;
00182     spinBoxLayout->addWidget(precisionLabel);
00183     spinBoxLayout->addWidget(precisionSpinBox);
00184     spinBoxLayout->addWidget(doubleLabel);
00185     spinBoxLayout->addWidget(doubleSpinBox);
00186     spinBoxLayout->addWidget(scaleLabel);
00187     spinBoxLayout->addWidget(scaleSpinBox);
00188     spinBoxLayout->addWidget(priceLabel);
00189     spinBoxLayout->addWidget(priceSpinBox);
00190     doubleSpinBoxesGroup->setLayout(spinBoxLayout);
00191 }

Here is the call graph for this function:


Member Data Documentation

QGroupBox* Window::iconGroupBox [private]

Definition at line 65 of file window.h.

Referenced by createIconGroupBox(), and Window().

QLabel* Window::iconLabel [private]

Definition at line 66 of file window.h.

Referenced by createIconGroupBox(), and Window().

QComboBox* Window::iconComboBox [private]

Definition at line 67 of file window.h.

Referenced by createIconGroupBox(), iconActivated(), setIcon(), and Window().

QCheckBox* Window::showIconCheckBox [private]

Definition at line 68 of file window.h.

Referenced by createIconGroupBox(), and Window().

QGroupBox* Window::messageGroupBox [private]

Definition at line 70 of file window.h.

Referenced by createMessageGroupBox(), and Window().

QLabel* Window::typeLabel [private]

Definition at line 71 of file window.h.

Referenced by createMessageGroupBox().

QLabel* Window::durationLabel [private]

Definition at line 72 of file window.h.

Referenced by createMessageGroupBox(), and Window().

QLabel* Window::durationWarningLabel [private]

Definition at line 73 of file window.h.

Referenced by createMessageGroupBox().

QLabel* Window::titleLabel [private]

Definition at line 74 of file window.h.

Referenced by createMessageGroupBox().

QLabel* Window::bodyLabel [private]

Definition at line 75 of file window.h.

Referenced by createMessageGroupBox().

QComboBox* Window::typeComboBox [private]

Definition at line 76 of file window.h.

Referenced by createMessageGroupBox(), and showMessage().

QSpinBox* Window::durationSpinBox [private]

Definition at line 77 of file window.h.

Referenced by createMessageGroupBox(), and showMessage().

QLineEdit* Window::titleEdit [private]

Definition at line 78 of file window.h.

Referenced by createMessageGroupBox(), and showMessage().

QTextEdit* Window::bodyEdit [private]

Definition at line 79 of file window.h.

Referenced by createMessageGroupBox(), and showMessage().

QPushButton* Window::showMessageButton [private]

Definition at line 80 of file window.h.

Referenced by createMessageGroupBox(), and Window().

QAction* Window::minimizeAction [private]

Definition at line 82 of file window.h.

Referenced by createActions(), createTrayIcon(), and setVisible().

QAction* Window::maximizeAction [private]

Definition at line 83 of file window.h.

Referenced by createActions(), createTrayIcon(), and setVisible().

QAction* Window::restoreAction [private]

Definition at line 84 of file window.h.

Referenced by createActions(), createTrayIcon(), and setVisible().

QAction* Window::quitAction [private]

Definition at line 85 of file window.h.

Referenced by createActions(), and createTrayIcon().

QSystemTrayIcon* Window::trayIcon [private]

Definition at line 87 of file window.h.

Referenced by closeEvent(), createTrayIcon(), setIcon(), showMessage(), and Window().

QMenu* Window::trayIconMenu [private]

Definition at line 88 of file window.h.

Referenced by createTrayIcon().

QComboBox* Window::fileComboBox [private]

Definition at line 54 of file window.h.

Referenced by find(), and Window().

QComboBox* Window::textComboBox [private]

Definition at line 55 of file window.h.

Referenced by find(), and Window().

QComboBox* Window::directoryComboBox [private]

Definition at line 56 of file window.h.

Referenced by browse(), find(), and Window().

QLabel* Window::fileLabel [private]

Definition at line 57 of file window.h.

Referenced by Window().

QLabel* Window::textLabel [private]

Definition at line 58 of file window.h.

Referenced by Window().

QLabel* Window::directoryLabel [private]

Definition at line 59 of file window.h.

Referenced by Window().

QLabel* Window::filesFoundLabel [private]

Definition at line 60 of file window.h.

Referenced by showFiles(), and Window().

QPushButton* Window::browseButton [private]

Definition at line 61 of file window.h.

Referenced by Window().

QPushButton* Window::findButton [private]

Definition at line 62 of file window.h.

Referenced by Window().

QTableWidget* Window::filesTable [private]

Definition at line 63 of file window.h.

Referenced by createFilesTable(), find(), showFiles(), and Window().

QSortFilterProxyModel* Window::proxyModel [private]

Definition at line 53 of file window.h.

Referenced by dateFilterChanged(), filterColumnChanged(), filterRegExpChanged(), setSourceModel(), sortChanged(), and textFilterChanged().

QGroupBox* Window::sourceGroupBox [private]

Definition at line 55 of file window.h.

QGroupBox* Window::proxyGroupBox [private]

Definition at line 56 of file window.h.

QTreeView* Window::sourceView [private]

Definition at line 57 of file window.h.

Referenced by setSourceModel().

QTreeView* Window::proxyView [private]

Definition at line 58 of file window.h.

QCheckBox* Window::filterCaseSensitivityCheckBox [private]

Definition at line 59 of file window.h.

Referenced by filterRegExpChanged(), and textFilterChanged().

QCheckBox* Window::sortCaseSensitivityCheckBox [private]

Definition at line 60 of file window.h.

Referenced by sortChanged().

QLabel* Window::filterPatternLabel [private]

Definition at line 61 of file window.h.

QLabel* Window::filterSyntaxLabel [private]

Definition at line 62 of file window.h.

QLabel* Window::filterColumnLabel [private]

Definition at line 63 of file window.h.

QLineEdit* Window::filterPatternLineEdit [private]

Definition at line 64 of file window.h.

Referenced by filterRegExpChanged(), and textFilterChanged().

QComboBox* Window::filterSyntaxComboBox [private]

Definition at line 65 of file window.h.

Referenced by filterRegExpChanged(), and textFilterChanged().

QComboBox* Window::filterColumnComboBox [private]

Definition at line 66 of file window.h.

Referenced by filterColumnChanged().

MySortFilterProxyModel* Window::proxyModel [private]

Definition at line 53 of file window.h.

QGroupBox* Window::sourceGroupBox [private]

Definition at line 55 of file window.h.

QGroupBox* Window::proxyGroupBox [private]

Definition at line 56 of file window.h.

QTreeView* Window::sourceView [private]

Definition at line 57 of file window.h.

QTreeView* Window::proxyView [private]

Definition at line 58 of file window.h.

QCheckBox* Window::filterCaseSensitivityCheckBox [private]

Definition at line 59 of file window.h.

QLabel* Window::filterPatternLabel [private]

Definition at line 60 of file window.h.

QLabel* Window::fromLabel [private]

Definition at line 61 of file window.h.

QLabel* Window::toLabel [private]

Definition at line 62 of file window.h.

QLineEdit* Window::filterPatternLineEdit [private]

Definition at line 63 of file window.h.

QComboBox* Window::filterSyntaxComboBox [private]

Definition at line 64 of file window.h.

QDateEdit* Window::fromDateEdit [private]

Definition at line 65 of file window.h.

Referenced by dateFilterChanged().

QDateEdit* Window::toDateEdit [private]

Definition at line 66 of file window.h.

Referenced by dateFilterChanged().

Helper Window::helper [private]

Definition at line 42 of file window.h.

GLWidget* Window::glWidget [private]

Definition at line 42 of file window.h.

QSlider* Window::xSlider [private]

Definition at line 43 of file window.h.

QSlider* Window::ySlider [private]

Definition at line 44 of file window.h.

QSlider* Window::zSlider [private]

Definition at line 45 of file window.h.

GLWidget* Window::glWidgets[NumRows][NumColumns] [private]

Definition at line 45 of file window.h.

GLWidget* Window::currentGlWidget [private]

Definition at line 46 of file window.h.

Referenced by rotateOneStep(), and setCurrentGlWidget().

RenderArea* Window::renderArea [private]

Definition at line 48 of file window.h.

Referenced by brushChanged(), penChanged(), and shapeChanged().

QLabel* Window::shapeLabel [private]

Definition at line 49 of file window.h.

QLabel* Window::penWidthLabel [private]

Definition at line 50 of file window.h.

QLabel* Window::penStyleLabel [private]

Definition at line 51 of file window.h.

QLabel* Window::penCapLabel [private]

Definition at line 52 of file window.h.

QLabel* Window::penJoinLabel [private]

Definition at line 53 of file window.h.

QLabel* Window::brushStyleLabel [private]

Definition at line 54 of file window.h.

QLabel* Window::otherOptionsLabel [private]

Definition at line 55 of file window.h.

QComboBox* Window::shapeComboBox [private]

Definition at line 56 of file window.h.

Referenced by setupShapes(), and shapeChanged().

QSpinBox* Window::penWidthSpinBox [private]

Definition at line 57 of file window.h.

Referenced by penChanged().

QComboBox* Window::penStyleComboBox [private]

Definition at line 58 of file window.h.

Referenced by penChanged().

QComboBox* Window::penCapComboBox [private]

Definition at line 59 of file window.h.

Referenced by penChanged().

QComboBox* Window::penJoinComboBox [private]

Definition at line 60 of file window.h.

Referenced by penChanged().

QComboBox* Window::brushStyleComboBox [private]

Definition at line 61 of file window.h.

Referenced by brushChanged().

QCheckBox* Window::antialiasingCheckBox [private]

Definition at line 62 of file window.h.

QCheckBox* Window::transformationsCheckBox [private]

Definition at line 63 of file window.h.

QLabel* Window::aliasedLabel [private]

Definition at line 42 of file window.h.

QLabel* Window::antialiasedLabel [private]

Definition at line 43 of file window.h.

QLabel* Window::intLabel [private]

Definition at line 44 of file window.h.

QLabel* Window::floatLabel [private]

Definition at line 45 of file window.h.

CircleWidget* Window::circleWidgets[2][2] [private]

Definition at line 46 of file window.h.

RenderArea* Window::renderAreas[NumRenderAreas] [private]

Definition at line 52 of file window.h.

Referenced by fillGradientChanged(), fillRuleChanged(), and penColorChanged().

QLabel* Window::fillRuleLabel [private]

Definition at line 53 of file window.h.

QLabel* Window::fillGradientLabel [private]

Definition at line 54 of file window.h.

QLabel* Window::fillToLabel [private]

Definition at line 55 of file window.h.

QLabel* Window::penWidthLabel [private]

Definition at line 56 of file window.h.

QLabel* Window::penColorLabel [private]

Definition at line 57 of file window.h.

QLabel* Window::rotationAngleLabel [private]

Definition at line 58 of file window.h.

QComboBox* Window::fillRuleComboBox [private]

Definition at line 59 of file window.h.

Referenced by fillRuleChanged().

QComboBox* Window::fillColor1ComboBox [private]

Definition at line 60 of file window.h.

Referenced by fillGradientChanged().

QComboBox* Window::fillColor2ComboBox [private]

Definition at line 61 of file window.h.

Referenced by fillGradientChanged().

QSpinBox* Window::penWidthSpinBox [private]

Definition at line 62 of file window.h.

QComboBox* Window::penColorComboBox [private]

Definition at line 63 of file window.h.

Referenced by penColorChanged().

QSpinBox* Window::rotationAngleSpinBox [private]

Definition at line 64 of file window.h.

RenderArea* Window::originalRenderArea [private]

Definition at line 50 of file window.h.

Referenced by shapeSelected().

RenderArea* Window::transformedRenderAreas[NumTransformedAreas] [private]

Definition at line 51 of file window.h.

Referenced by operationChanged(), and shapeSelected().

QComboBox* Window::shapeComboBox [private]

Definition at line 52 of file window.h.

QComboBox* Window::operationComboBoxes[NumTransformedAreas] [private]

Definition at line 53 of file window.h.

Referenced by operationChanged().

QList<QPainterPath> Window::shapes [private]

Definition at line 54 of file window.h.

Referenced by setupShapes(), and shapeSelected().

QLineEdit* Window::echoLineEdit [private]

Definition at line 47 of file window.h.

Referenced by echoChanged().

QLineEdit* Window::validatorLineEdit [private]

Definition at line 48 of file window.h.

Referenced by validatorChanged().

QLineEdit* Window::alignmentLineEdit [private]

Definition at line 49 of file window.h.

Referenced by alignmentChanged().

QLineEdit* Window::inputMaskLineEdit [private]

Definition at line 50 of file window.h.

Referenced by inputMaskChanged().

QLineEdit* Window::accessLineEdit [private]

Definition at line 51 of file window.h.

Referenced by accessChanged().

SlidersGroup* Window::horizontalSliders [private]

Definition at line 47 of file window.h.

Referenced by createControls().

SlidersGroup* Window::verticalSliders [private]

Definition at line 48 of file window.h.

Referenced by createControls().

QStackedWidget* Window::stackedWidget [private]

Definition at line 49 of file window.h.

Referenced by createControls().

QGroupBox* Window::controlsGroup [private]

Definition at line 51 of file window.h.

Referenced by createControls().

QLabel* Window::minimumLabel [private]

Definition at line 52 of file window.h.

Referenced by createControls().

QLabel* Window::maximumLabel [private]

Definition at line 53 of file window.h.

Referenced by createControls().

QLabel* Window::valueLabel [private]

Definition at line 54 of file window.h.

Referenced by createControls().

QCheckBox* Window::invertedAppearance [private]

Definition at line 55 of file window.h.

Referenced by createControls().

QCheckBox* Window::invertedKeyBindings [private]

Definition at line 56 of file window.h.

Referenced by createControls().

QSpinBox* Window::minimumSpinBox [private]

Definition at line 57 of file window.h.

Referenced by createControls().

QSpinBox* Window::maximumSpinBox [private]

Definition at line 58 of file window.h.

Referenced by createControls().

QSpinBox* Window::valueSpinBox [private]

Definition at line 59 of file window.h.

Referenced by createControls().

QComboBox* Window::orientationCombo [private]

Definition at line 60 of file window.h.

Referenced by createControls().

QDateTimeEdit* Window::meetingEdit [private]

Definition at line 50 of file window.h.

Referenced by createDateTimeEdits(), and setFormatString().

QDoubleSpinBox* Window::doubleSpinBox [private]

Definition at line 51 of file window.h.

Referenced by changePrecision(), and createDoubleSpinBoxes().

QDoubleSpinBox* Window::priceSpinBox [private]

Definition at line 52 of file