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/QDialogButtonBox>
16 #include <QtWidgets/QFrame>
17 #include <QtWidgets/QGridLayout>
18 #include <QtWidgets/QHBoxLayout>
19 #include <QtWidgets/QLabel>
20 #include <QtWidgets/QLineEdit>
21 #include <QtWidgets/QProgressBar>
22 #include <QtWidgets/QPushButton>
23 #include <QtWidgets/QSpacerItem>
30 QGridLayout *gridLayout;
32 QHBoxLayout *horizontalLayout;
33 QLabel *labTargetPath;
34 QLineEdit *leDirectory;
35 QPushButton *btnChooseDirectory;
36 QHBoxLayout *horizontalLayout_3;
38 QProgressBar *pbProgress;
39 QSpacerItem *horizontalSpacer_2;
41 QDialogButtonBox *buttonBox;
42 QLabel *labTargetInfo;
52 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
54 labTitle->setObjectName(QString::fromUtf8(
"labTitle"));
56 font.setPointSize(11);
59 labTitle->setFont(font);
61 gridLayout->addWidget(labTitle, 0, 0, 1, 1);
63 horizontalLayout =
new QHBoxLayout();
64 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
66 labTargetPath->setObjectName(QString::fromUtf8(
"labTargetPath"));
67 labTargetPath->setText(QString::fromUtf8(
"/music/library"));
69 horizontalLayout->addWidget(labTargetPath);
72 leDirectory->setObjectName(QString::fromUtf8(
"leDirectory"));
73 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
74 sizePolicy.setHorizontalStretch(0);
75 sizePolicy.setVerticalStretch(0);
76 sizePolicy.setHeightForWidth(leDirectory->sizePolicy().hasHeightForWidth());
77 leDirectory->setSizePolicy(sizePolicy);
78 leDirectory->setReadOnly(
true);
80 horizontalLayout->addWidget(leDirectory);
83 btnChooseDirectory->setObjectName(QString::fromUtf8(
"btnChooseDirectory"));
84 btnChooseDirectory->setMinimumSize(QSize(25, 0));
85 btnChooseDirectory->setFocusPolicy(Qt::StrongFocus);
86 #if QT_CONFIG(tooltip)
87 btnChooseDirectory->setToolTip(QString::fromUtf8(
""));
88 #endif // QT_CONFIG(tooltip)
89 btnChooseDirectory->setText(QString::fromUtf8(
"\342\211\241"));
91 horizontalLayout->addWidget(btnChooseDirectory);
94 gridLayout->addLayout(horizontalLayout, 3, 0, 1, 1);
96 horizontalLayout_3 =
new QHBoxLayout();
97 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
99 labStatus->setObjectName(QString::fromUtf8(
"labStatus"));
100 labStatus->setText(QString::fromUtf8(
"X Files Found"));
102 horizontalLayout_3->addWidget(labStatus);
105 pbProgress->setObjectName(QString::fromUtf8(
"pbProgress"));
106 pbProgress->setValue(24);
108 horizontalLayout_3->addWidget(pbProgress);
110 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
112 horizontalLayout_3->addItem(horizontalSpacer_2);
115 btnEdit->setObjectName(QString::fromUtf8(
"btnEdit"));
116 btnEdit->setText(QString::fromUtf8(
"Edit"));
118 horizontalLayout_3->addWidget(btnEdit);
121 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
122 buttonBox->setOrientation(Qt::Horizontal);
123 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
125 horizontalLayout_3->addWidget(buttonBox);
128 gridLayout->addLayout(horizontalLayout_3, 5, 0, 1, 1);
131 labTargetInfo->setObjectName(QString::fromUtf8(
"labTargetInfo"));
133 gridLayout->addWidget(labTargetInfo, 2, 0, 1, 1);
136 line_2->setObjectName(QString::fromUtf8(
"line_2"));
137 line_2->setFrameShape(QFrame::HLine);
138 line_2->setFrameShadow(QFrame::Sunken);
140 gridLayout->addWidget(line_2, 4, 0, 1, 1);
143 line->setObjectName(QString::fromUtf8(
"line"));
144 line->setFrameShape(QFrame::HLine);
145 line->setFrameShadow(QFrame::Sunken);
147 gridLayout->addWidget(line, 1, 0, 1, 1);
157 GUI_ImportDialog->setWindowTitle(QCoreApplication::translate(
"GUI_ImportDialog",
"Import",
nullptr));
158 labTitle->setText(QCoreApplication::translate(
"GUI_ImportDialog",
"Import tracks to library",
nullptr));
159 labTargetInfo->setText(QCoreApplication::translate(
"GUI_ImportDialog",
"Select target folder",
nullptr));
170 #endif // UI_GUI_IMPORTDIALOG_H