9 #ifndef UI_GUI_IMPORTDIALOG_H 10 #define UI_GUI_IMPORTDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QFrame> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QLineEdit> 20 #include <QtWidgets/QProgressBar> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 29 QGridLayout *gridLayout;
31 QLabel *lab_targetInfo;
32 QHBoxLayout *horizontalLayout_2;
33 QProgressBar *pb_progress;
35 QSpacerItem *horizontalSpacer_2;
36 QPushButton *btn_edit;
37 QSpacerItem *horizontalSpacer;
38 QPushButton *btn_cancel;
40 QHBoxLayout *horizontalLayout;
41 QLabel *lab_targetPath;
42 QLineEdit *le_directory;
43 QPushButton *btn_chooseDirectory;
53 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
55 lab_title->setObjectName(QString::fromUtf8(
"lab_title"));
57 font.setPointSize(11);
60 lab_title->setFont(font);
62 gridLayout->addWidget(lab_title, 0, 0, 1, 2);
65 lab_targetInfo->setObjectName(QString::fromUtf8(
"lab_targetInfo"));
67 gridLayout->addWidget(lab_targetInfo, 2, 0, 1, 1);
69 horizontalLayout_2 =
new QHBoxLayout();
70 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
72 pb_progress->setObjectName(QString::fromUtf8(
"pb_progress"));
73 pb_progress->setValue(24);
75 horizontalLayout_2->addWidget(pb_progress);
78 lab_status->setObjectName(QString::fromUtf8(
"lab_status"));
79 lab_status->setText(QString::fromUtf8(
"X Files Found"));
81 horizontalLayout_2->addWidget(lab_status);
83 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
85 horizontalLayout_2->addItem(horizontalSpacer_2);
88 btn_edit->setObjectName(QString::fromUtf8(
"btn_edit"));
89 btn_edit->setText(QString::fromUtf8(
"Edit"));
91 horizontalLayout_2->addWidget(btn_edit);
93 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
95 horizontalLayout_2->addItem(horizontalSpacer);
98 btn_cancel->setObjectName(QString::fromUtf8(
"btn_cancel"));
99 btn_cancel->setFocusPolicy(Qt::StrongFocus);
100 btn_cancel->setText(QString::fromUtf8(
"Cancel"));
102 horizontalLayout_2->addWidget(btn_cancel);
105 btn_ok->setObjectName(QString::fromUtf8(
"btn_ok"));
106 btn_ok->setFocusPolicy(Qt::StrongFocus);
108 horizontalLayout_2->addWidget(btn_ok);
111 gridLayout->addLayout(horizontalLayout_2, 8, 0, 1, 2);
113 horizontalLayout =
new QHBoxLayout();
114 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
116 lab_targetPath->setObjectName(QString::fromUtf8(
"lab_targetPath"));
117 lab_targetPath->setText(QString::fromUtf8(
"/music/library"));
119 horizontalLayout->addWidget(lab_targetPath);
122 le_directory->setObjectName(QString::fromUtf8(
"le_directory"));
123 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
124 sizePolicy.setHorizontalStretch(0);
125 sizePolicy.setVerticalStretch(0);
126 sizePolicy.setHeightForWidth(le_directory->sizePolicy().hasHeightForWidth());
127 le_directory->setSizePolicy(sizePolicy);
128 le_directory->setReadOnly(
true);
130 horizontalLayout->addWidget(le_directory);
133 btn_chooseDirectory->setObjectName(QString::fromUtf8(
"btn_chooseDirectory"));
134 btn_chooseDirectory->setMinimumSize(QSize(25, 0));
135 btn_chooseDirectory->setFocusPolicy(Qt::StrongFocus);
136 #ifndef QT_NO_TOOLTIP 137 btn_chooseDirectory->setToolTip(QString::fromUtf8(
""));
138 #endif // QT_NO_TOOLTIP 139 btn_chooseDirectory->setText(QString::fromUtf8(
"\342\211\241"));
141 horizontalLayout->addWidget(btn_chooseDirectory);
144 gridLayout->addLayout(horizontalLayout, 3, 0, 1, 2);
147 line_3->setObjectName(QString::fromUtf8(
"line_3"));
148 line_3->setFrameShape(QFrame::HLine);
149 line_3->setFrameShadow(QFrame::Sunken);
151 gridLayout->addWidget(line_3, 7, 0, 1, 2);
154 line->setObjectName(QString::fromUtf8(
"line"));
155 line->setFrameShape(QFrame::HLine);
156 line->setFrameShadow(QFrame::Sunken);
158 gridLayout->addWidget(line, 1, 0, 1, 2);
168 GUI_ImportDialog->setWindowTitle(QApplication::translate(
"GUI_ImportDialog",
"Import",
nullptr));
169 lab_title->setText(QApplication::translate(
"GUI_ImportDialog",
"Import tracks to library",
nullptr));
170 lab_targetInfo->setText(QApplication::translate(
"GUI_ImportDialog",
"Select target folder",
nullptr));
171 btn_ok->setText(QApplication::translate(
"GUI_ImportDialog",
"OK",
nullptr));
182 #endif // UI_GUI_IMPORTDIALOG_H Definition: ui_GUI_ImportDialog.h:177
Definition: ui_GUI_ImportDialog.h:26
Definition: GUI_ImportDialog.h:33