9 #ifndef UI_GUI_LASTFMPREFERENCES_H
10 #define UI_GUI_LASTFMPREFERENCES_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QCheckBox>
15 #include <QtWidgets/QFrame>
16 #include <QtWidgets/QGridLayout>
17 #include <QtWidgets/QHBoxLayout>
18 #include <QtWidgets/QLabel>
19 #include <QtWidgets/QLineEdit>
20 #include <QtWidgets/QPushButton>
21 #include <QtWidgets/QSpacerItem>
22 #include <QtWidgets/QSpinBox>
23 #include <QtWidgets/QWidget>
30 QGridLayout *gridLayout;
32 QLineEdit *lePassword;
33 QLineEdit *leUsername;
36 QSpinBox *sbScrobbleTime;
37 QHBoxLayout *horizontalLayout;
39 QSpacerItem *horizontalSpacer;
40 QPushButton *btnLogin;
42 QCheckBox *cbActivate;
53 gridLayout->setSpacing(10);
54 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
56 labSeconds->setObjectName(QString::fromUtf8(
"labSeconds"));
57 labSeconds->setText(QString::fromUtf8(
"sec"));
59 gridLayout->addWidget(labSeconds, 5, 2, 1, 1);
62 lePassword->setObjectName(QString::fromUtf8(
"lePassword"));
63 lePassword->setEchoMode(QLineEdit::Password);
65 gridLayout->addWidget(lePassword, 4, 1, 1, 2);
68 leUsername->setObjectName(QString::fromUtf8(
"leUsername"));
70 gridLayout->addWidget(leUsername, 3, 1, 1, 2);
73 label_3->setObjectName(QString::fromUtf8(
"label_3"));
75 gridLayout->addWidget(label_3, 4, 0, 1, 1);
78 labActivate->setObjectName(QString::fromUtf8(
"labActivate"));
79 labActivate->setText(QString::fromUtf8(
"Active"));
81 gridLayout->addWidget(labActivate, 2, 0, 1, 1);
84 sbScrobbleTime->setObjectName(QString::fromUtf8(
"sbScrobbleTime"));
85 sbScrobbleTime->setMinimum(5);
86 sbScrobbleTime->setValue(10);
88 gridLayout->addWidget(sbScrobbleTime, 5, 1, 1, 1);
90 horizontalLayout =
new QHBoxLayout();
91 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
93 labStatus->setObjectName(QString::fromUtf8(
"labStatus"));
95 horizontalLayout->addWidget(labStatus);
97 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
99 horizontalLayout->addItem(horizontalSpacer);
102 btnLogin->setObjectName(QString::fromUtf8(
"btnLogin"));
104 horizontalLayout->addWidget(btnLogin);
107 gridLayout->addLayout(horizontalLayout, 6, 0, 1, 3);
110 label->setObjectName(QString::fromUtf8(
"label"));
112 gridLayout->addWidget(label, 5, 0, 1, 1);
115 cbActivate->setObjectName(QString::fromUtf8(
"cbActivate"));
116 cbActivate->setFocusPolicy(Qt::StrongFocus);
117 cbActivate->setLayoutDirection(Qt::LeftToRight);
119 gridLayout->addWidget(cbActivate, 2, 1, 1, 1);
122 label_2->setObjectName(QString::fromUtf8(
"label_2"));
124 gridLayout->addWidget(label_2, 3, 0, 1, 1);
127 line->setObjectName(QString::fromUtf8(
"line"));
128 line->setFrameShape(QFrame::HLine);
129 line->setFrameShadow(QFrame::Sunken);
131 gridLayout->addWidget(line, 7, 0, 1, 3);
134 labWebsite->setObjectName(QString::fromUtf8(
"labWebsite"));
135 labWebsite->setText(QString::fromUtf8(
"https://last.fm"));
136 labWebsite->setOpenExternalLinks(
true);
138 gridLayout->addWidget(labWebsite, 8, 0, 1, 3);
140 QWidget::setTabOrder(cbActivate, leUsername);
141 QWidget::setTabOrder(leUsername, lePassword);
142 QWidget::setTabOrder(lePassword, sbScrobbleTime);
143 QWidget::setTabOrder(sbScrobbleTime, btnLogin);
152 label_3->setText(QCoreApplication::translate(
"GUI_LastFmPreferences",
"Password",
nullptr));
153 labStatus->setText(QString());
154 btnLogin->setText(QCoreApplication::translate(
"GUI_LastFmPreferences",
"Login now",
nullptr));
155 label->setText(QCoreApplication::translate(
"GUI_LastFmPreferences",
"Scrobble time",
nullptr));
156 cbActivate->setText(QString());
157 label_2->setText(QCoreApplication::translate(
"GUI_LastFmPreferences",
"Username",
nullptr));
169 #endif // UI_GUI_LASTFMPREFERENCES_H