ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Ui_FwUpgradeDialog Class Reference

#include <src/ckb/ui_fwupgradedialog.h>

+ Inheritance diagram for Ui_FwUpgradeDialog:
+ Collaboration diagram for Ui_FwUpgradeDialog:

Public Member Functions

void setupUi (QDialog *FwUpgradeDialog)
 
void retranslateUi (QDialog *FwUpgradeDialog)
 

Data Fields

QGridLayout * gridLayout_2
 
QSpacerItem * horizontalSpacer
 
QGridLayout * gridLayout
 
QSpacerItem * horizontalSpacer_3
 
QLabel * label_4
 
QSpacerItem * horizontalSpacer_4
 
QLabel * label_2
 
QLabel * curLabel
 
QLabel * newLabel
 
QLabel * statusLabel
 
QSpacerItem * horizontalSpacer_2
 
QLabel * devLabel
 
QProgressBar * progressBar
 
QPushButtonactionButton
 
QPushButtoncancelButton
 

Detailed Description

Definition at line 26 of file ui_fwupgradedialog.h.

Member Function Documentation

void Ui_FwUpgradeDialog::retranslateUi ( QDialog FwUpgradeDialog)
inline

Definition at line 156 of file ui_fwupgradedialog.h.

References actionButton, cancelButton, curLabel, devLabel, label_2, label_4, newLabel, and statusLabel.

Referenced by setupUi().

157  {
158  FwUpgradeDialog->setWindowTitle(QApplication::translate("FwUpgradeDialog", "Firmware update", Q_NULLPTR));
159  label_4->setText(QApplication::translate("FwUpgradeDialog", "New:", Q_NULLPTR));
160  label_2->setText(QApplication::translate("FwUpgradeDialog", "Current:", Q_NULLPTR));
161  curLabel->setText(QApplication::translate("FwUpgradeDialog", "0.00", Q_NULLPTR));
162  newLabel->setText(QApplication::translate("FwUpgradeDialog", "0.00", Q_NULLPTR));
163  statusLabel->setText(QApplication::translate("FwUpgradeDialog", "Downloading new firmware, please wait...", Q_NULLPTR));
164  devLabel->setText(QApplication::translate("FwUpgradeDialog", "Device", Q_NULLPTR));
165  actionButton->setText(QApplication::translate("FwUpgradeDialog", "Start", Q_NULLPTR));
166  cancelButton->setText(QApplication::translate("FwUpgradeDialog", "Cancel", Q_NULLPTR));
167  } // retranslateUi
QPushButton * cancelButton
QPushButton * actionButton

+ Here is the caller graph for this function:

void Ui_FwUpgradeDialog::setupUi ( QDialog FwUpgradeDialog)
inline

Definition at line 45 of file ui_fwupgradedialog.h.

References actionButton, cancelButton, curLabel, devLabel, gridLayout, gridLayout_2, horizontalSpacer, horizontalSpacer_2, horizontalSpacer_3, horizontalSpacer_4, label_2, label_4, newLabel, progressBar, retranslateUi(), and statusLabel.

Referenced by FwUpgradeDialog::FwUpgradeDialog().

46  {
47  if (FwUpgradeDialog->objectName().isEmpty())
48  FwUpgradeDialog->setObjectName(QStringLiteral("FwUpgradeDialog"));
49  FwUpgradeDialog->resize(420, 280);
50  QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
51  sizePolicy.setHorizontalStretch(0);
52  sizePolicy.setVerticalStretch(0);
53  sizePolicy.setHeightForWidth(FwUpgradeDialog->sizePolicy().hasHeightForWidth());
54  FwUpgradeDialog->setSizePolicy(sizePolicy);
55  gridLayout_2 = new QGridLayout(FwUpgradeDialog);
56  gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
57  horizontalSpacer = new QSpacerItem(127, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
58 
59  gridLayout_2->addItem(horizontalSpacer, 1, 0, 1, 1);
60 
61  gridLayout = new QGridLayout();
62  gridLayout->setObjectName(QStringLiteral("gridLayout"));
63  horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
64 
65  gridLayout->addItem(horizontalSpacer_3, 1, 0, 1, 1);
66 
67  label_4 = new QLabel(FwUpgradeDialog);
68  label_4->setObjectName(QStringLiteral("label_4"));
69  QFont font;
70  font.setBold(true);
71  font.setWeight(75);
72  label_4->setFont(font);
73 
74  gridLayout->addWidget(label_4, 1, 4, 1, 1);
75 
76  horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
77 
78  gridLayout->addItem(horizontalSpacer_4, 1, 6, 1, 1);
79 
80  label_2 = new QLabel(FwUpgradeDialog);
81  label_2->setObjectName(QStringLiteral("label_2"));
82  label_2->setFont(font);
83 
84  gridLayout->addWidget(label_2, 1, 1, 1, 1);
85 
86  curLabel = new QLabel(FwUpgradeDialog);
87  curLabel->setObjectName(QStringLiteral("curLabel"));
88 
89  gridLayout->addWidget(curLabel, 1, 2, 1, 1);
90 
91  newLabel = new QLabel(FwUpgradeDialog);
92  newLabel->setObjectName(QStringLiteral("newLabel"));
93 
94  gridLayout->addWidget(newLabel, 1, 5, 1, 1);
95 
96  statusLabel = new QLabel(FwUpgradeDialog);
97  statusLabel->setObjectName(QStringLiteral("statusLabel"));
98  QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
99  sizePolicy1.setHorizontalStretch(0);
100  sizePolicy1.setVerticalStretch(0);
101  sizePolicy1.setHeightForWidth(statusLabel->sizePolicy().hasHeightForWidth());
102  statusLabel->setSizePolicy(sizePolicy1);
103  statusLabel->setAlignment(Qt::AlignCenter);
104  statusLabel->setWordWrap(true);
105 
106  gridLayout->addWidget(statusLabel, 2, 0, 1, 7);
107 
108  horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
109 
110  gridLayout->addItem(horizontalSpacer_2, 1, 3, 1, 1);
111 
112  devLabel = new QLabel(FwUpgradeDialog);
113  devLabel->setObjectName(QStringLiteral("devLabel"));
114  QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Minimum);
115  sizePolicy2.setHorizontalStretch(0);
116  sizePolicy2.setVerticalStretch(0);
117  sizePolicy2.setHeightForWidth(devLabel->sizePolicy().hasHeightForWidth());
118  devLabel->setSizePolicy(sizePolicy2);
119  devLabel->setFont(font);
120  devLabel->setAlignment(Qt::AlignCenter);
121 
122  gridLayout->addWidget(devLabel, 0, 0, 1, 7);
123 
124  progressBar = new QProgressBar(FwUpgradeDialog);
125  progressBar->setObjectName(QStringLiteral("progressBar"));
126  progressBar->setMaximum(0);
127  progressBar->setValue(0);
128 
129  gridLayout->addWidget(progressBar, 3, 0, 1, 7);
130 
131 
132  gridLayout_2->addLayout(gridLayout, 0, 0, 1, 3);
133 
134  actionButton = new QPushButton(FwUpgradeDialog);
135  actionButton->setObjectName(QStringLiteral("actionButton"));
136  actionButton->setEnabled(false);
137 
138  gridLayout_2->addWidget(actionButton, 1, 2, 1, 1);
139 
140  cancelButton = new QPushButton(FwUpgradeDialog);
141  cancelButton->setObjectName(QStringLiteral("cancelButton"));
142  cancelButton->setEnabled(false);
143 
144  gridLayout_2->addWidget(cancelButton, 1, 1, 1, 1);
145 
146  QWidget::setTabOrder(actionButton, cancelButton);
147 
148  retranslateUi(FwUpgradeDialog);
149 
150  actionButton->setDefault(true);
151 
152 
153  QMetaObject::connectSlotsByName(FwUpgradeDialog);
154  } // setupUi
QSpacerItem * horizontalSpacer_4
QPushButton * cancelButton
QSpacerItem * horizontalSpacer
QPushButton * actionButton
QProgressBar * progressBar
QSpacerItem * horizontalSpacer_2
QSpacerItem * horizontalSpacer_3
QGridLayout * gridLayout
QGridLayout * gridLayout_2
void retranslateUi(QDialog *FwUpgradeDialog)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

QPushButton* Ui_FwUpgradeDialog::cancelButton
QLabel* Ui_FwUpgradeDialog::curLabel

Definition at line 36 of file ui_fwupgradedialog.h.

Referenced by FwUpgradeDialog::FwUpgradeDialog(), retranslateUi(), and setupUi().

QLabel* Ui_FwUpgradeDialog::devLabel

Definition at line 40 of file ui_fwupgradedialog.h.

Referenced by FwUpgradeDialog::FwUpgradeDialog(), retranslateUi(), and setupUi().

QGridLayout* Ui_FwUpgradeDialog::gridLayout

Definition at line 31 of file ui_fwupgradedialog.h.

Referenced by setupUi().

QGridLayout* Ui_FwUpgradeDialog::gridLayout_2

Definition at line 29 of file ui_fwupgradedialog.h.

Referenced by setupUi().

QSpacerItem* Ui_FwUpgradeDialog::horizontalSpacer

Definition at line 30 of file ui_fwupgradedialog.h.

Referenced by setupUi().

QSpacerItem* Ui_FwUpgradeDialog::horizontalSpacer_2

Definition at line 39 of file ui_fwupgradedialog.h.

Referenced by setupUi().

QSpacerItem* Ui_FwUpgradeDialog::horizontalSpacer_3

Definition at line 32 of file ui_fwupgradedialog.h.

Referenced by setupUi().

QSpacerItem* Ui_FwUpgradeDialog::horizontalSpacer_4

Definition at line 34 of file ui_fwupgradedialog.h.

Referenced by setupUi().

QLabel* Ui_FwUpgradeDialog::label_2

Definition at line 35 of file ui_fwupgradedialog.h.

Referenced by retranslateUi(), and setupUi().

QLabel* Ui_FwUpgradeDialog::label_4

Definition at line 33 of file ui_fwupgradedialog.h.

Referenced by retranslateUi(), and setupUi().

QLabel* Ui_FwUpgradeDialog::newLabel
QLabel* Ui_FwUpgradeDialog::statusLabel

The documentation for this class was generated from the following file: