/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. #include <QWidget>
  3. #include <QEvent>
  4. mainWidget::mainWidget(QWidget *parent)
  5. : QWidget(parent)
  6. {
  7. if (mainDialog->objectName().isEmpty()){
  8. mainDialog->setObjectName(QString::fromUtf8("mainDialog"));
  9. }
  10. mainDialog->resize(355, 323);
  11. gridLayout = new QGridLayout(mainDialog);
  12. gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
  13. groupBox = new QGroupBox(mainDialog);
  14. groupBox->setObjectName(QString::fromUtf8("groupBox"));
  15. formLayout = new QFormLayout(groupBox);
  16. formLayout->setObjectName(QString::fromUtf8("formLayout"));
  17. label = new QLabel(groupBox);
  18. label->setObjectName(QString::fromUtf8("label"));
  19. formLayout->setWidget(0, QFormLayout::LabelRole, label);
  20. label_2 = new QLabel(groupBox);
  21. label_2->setObjectName(QString::fromUtf8("label_2"));
  22. formLayout->setWidget(1, QFormLayout::LabelRole, label_2);
  23. label_login = new QLabel(groupBox);
  24. label_login->setObjectName(QString::fromUtf8("label_login"));
  25. formLayout->setWidget(0, QFormLayout::FieldRole, label_login);
  26. label_mandat = new QLabel(groupBox);
  27. label_mandat->setObjectName(QString::fromUtf8("label_mandat"));
  28. formLayout->setWidget(1, QFormLayout::FieldRole, label_mandat);
  29. gridLayout->addWidget(groupBox, 0, 0, 1, 1);
  30. groupBox_2 = new QGroupBox(mainDialog);
  31. groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
  32. comboBox_printerList = new QComboBox(groupBox_2);
  33. comboBox_printerList->setObjectName(QString::fromUtf8("comboBox_printerList"));
  34. comboBox_printerList->setGeometry(QRect(0, 30, 331, 27));
  35. comboBox_printerList->raise();
  36. groupBox->raise();
  37. gridLayout->addWidget(groupBox_2, 2, 0, 1, 1);
  38. pushButton_printFile = new QPushButton(mainDialog);
  39. pushButton_printFile->setObjectName(QString::fromUtf8("pushButton_printFile"));
  40. gridLayout->addWidget(pushButton_printFile, 4, 0, 1, 1);
  41. groupBox_3 = new QGroupBox(mainDialog);
  42. groupBox_3->setObjectName(QString::fromUtf8("groupBox_3"));
  43. verticalLayout = new QVBoxLayout(groupBox_3);
  44. verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
  45. checkBox_link_surd = new QCheckBox(groupBox_3);
  46. checkBox_link_surd->setObjectName(QString::fromUtf8("checkBox_link_surd"));
  47. checkBox_link_surd->setEnabled(false);
  48. verticalLayout->addWidget(checkBox_link_surd);
  49. checkBox_load_data = new QCheckBox(groupBox_3);
  50. checkBox_load_data->setObjectName(QString::fromUtf8("checkBox_load_data"));
  51. checkBox_load_data->setEnabled(false);
  52. verticalLayout->addWidget(checkBox_load_data);
  53. checkBox_select_file = new QCheckBox(groupBox_3);
  54. checkBox_select_file->setObjectName(QString::fromUtf8("checkBox_select_file"));
  55. checkBox_select_file->setEnabled(false);
  56. verticalLayout->addWidget(checkBox_select_file);
  57. gridLayout->addWidget(groupBox_3, 1, 0, 1, 1);
  58. retranslateUi(mainDialog);
  59. }
  60. mainWidget::~mainWidget()
  61. {
  62. }
  63. void mainWidget::changeEvent(QEvent *e)
  64. {
  65. QWidget::changeEvent(e);
  66. switch (e->type()) {
  67. case QEvent::LanguageChange:
  68. ui->retranslateUi(this);
  69. break;
  70. default:
  71. break;
  72. }
  73. }