PageRenderTime 18ms CodeModel.GetById 6ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/vp_plugins/print_acpu/mainwidget.cpp

http://cupsfilter.googlecode.com/
C++ | 102 lines | 73 code | 29 blank | 0 comment | 2 complexity | 30e0f056631e6d374a6265315bff83d8 MD5 | raw file
  1#include "mainwidget.h"
  2
  3#include <QWidget>
  4#include <QEvent>
  5
  6mainWidget::mainWidget(QWidget *parent)
  7    : QWidget(parent)
  8{
  9    if (mainDialog->objectName().isEmpty()){
 10        mainDialog->setObjectName(QString::fromUtf8("mainDialog"));
 11    }
 12    mainDialog->resize(355, 323);
 13    gridLayout = new QGridLayout(mainDialog);
 14    gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
 15    groupBox = new QGroupBox(mainDialog);
 16    groupBox->setObjectName(QString::fromUtf8("groupBox"));
 17    formLayout = new QFormLayout(groupBox);
 18    formLayout->setObjectName(QString::fromUtf8("formLayout"));
 19    label = new QLabel(groupBox);
 20    label->setObjectName(QString::fromUtf8("label"));
 21
 22    formLayout->setWidget(0, QFormLayout::LabelRole, label);
 23
 24    label_2 = new QLabel(groupBox);
 25    label_2->setObjectName(QString::fromUtf8("label_2"));
 26
 27    formLayout->setWidget(1, QFormLayout::LabelRole, label_2);
 28
 29    label_login = new QLabel(groupBox);
 30    label_login->setObjectName(QString::fromUtf8("label_login"));
 31
 32    formLayout->setWidget(0, QFormLayout::FieldRole, label_login);
 33
 34    label_mandat = new QLabel(groupBox);
 35    label_mandat->setObjectName(QString::fromUtf8("label_mandat"));
 36
 37    formLayout->setWidget(1, QFormLayout::FieldRole, label_mandat);
 38
 39
 40    gridLayout->addWidget(groupBox, 0, 0, 1, 1);
 41
 42    groupBox_2 = new QGroupBox(mainDialog);
 43    groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
 44    comboBox_printerList = new QComboBox(groupBox_2);
 45    comboBox_printerList->setObjectName(QString::fromUtf8("comboBox_printerList"));
 46    comboBox_printerList->setGeometry(QRect(0, 30, 331, 27));
 47    comboBox_printerList->raise();
 48    groupBox->raise();
 49
 50    gridLayout->addWidget(groupBox_2, 2, 0, 1, 1);
 51
 52    pushButton_printFile = new QPushButton(mainDialog);
 53    pushButton_printFile->setObjectName(QString::fromUtf8("pushButton_printFile"));
 54
 55    gridLayout->addWidget(pushButton_printFile, 4, 0, 1, 1);
 56
 57    groupBox_3 = new QGroupBox(mainDialog);
 58    groupBox_3->setObjectName(QString::fromUtf8("groupBox_3"));
 59    verticalLayout = new QVBoxLayout(groupBox_3);
 60    verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
 61    checkBox_link_surd = new QCheckBox(groupBox_3);
 62    checkBox_link_surd->setObjectName(QString::fromUtf8("checkBox_link_surd"));
 63    checkBox_link_surd->setEnabled(false);
 64
 65    verticalLayout->addWidget(checkBox_link_surd);
 66
 67    checkBox_load_data = new QCheckBox(groupBox_3);
 68    checkBox_load_data->setObjectName(QString::fromUtf8("checkBox_load_data"));
 69    checkBox_load_data->setEnabled(false);
 70
 71    verticalLayout->addWidget(checkBox_load_data);
 72
 73    checkBox_select_file = new QCheckBox(groupBox_3);
 74    checkBox_select_file->setObjectName(QString::fromUtf8("checkBox_select_file"));
 75    checkBox_select_file->setEnabled(false);
 76
 77    verticalLayout->addWidget(checkBox_select_file);
 78
 79
 80    gridLayout->addWidget(groupBox_3, 1, 0, 1, 1);
 81
 82
 83    retranslateUi(mainDialog);
 84
 85}
 86
 87mainWidget::~mainWidget()
 88{
 89
 90}
 91
 92void mainWidget::changeEvent(QEvent *e)
 93{
 94    QWidget::changeEvent(e);
 95    switch (e->type()) {
 96    case QEvent::LanguageChange:
 97        ui->retranslateUi(this);
 98        break;
 99    default:
100        break;
101    }
102}