Debian Codegraph @

src/app/view/isoselectview.h

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: GPL-3.0-only
4
5 #pragma once
6
7 #include "dropframe.h"
8
9 #include <DFrame>
10 #include <DLabel>
11 #include <DPushButton>
12
13 #include <QThread>
14 DWIDGET_USE_NAMESPACE
15
16 class ThreadCheckFile : public QThread
17 {
18 Q_OBJECT
19 public:
20 ThreadCheckFile();
21 void setRestart();
22 void setFile(QString file);
23 signals:
24 void checkFileFinish(bool);
25 protected:
26 virtual void run();
27
28 private:
29 bool restart;
30 QString m_file;
31 };
32
33 class ISOSelectView : public DWidget
34 {
35 Q_OBJECT
36
37 Q_PROPERTY(QString isoFilePath READ isoFilePath)
38 public:
39 explicit ISOSelectView(DWidget *parent = nullptr);
40
41 inline QString isoFilePath() const
42 {
43 return m_isoFilePath;
44 }
45
46 signals:
47 void requestVerfiyISOFile(const QString &file);
48 void isoFileSelected(QString isoFilePath);
49
50 public slots:
51 void onFileSelected(const QString &file);
52 void onFileVerfiyFinished(bool ok);
53 void slot_ThemeChange();
54
55 protected:
56 bool eventFilter(QObject *obj, QEvent *event);
57
58 private:
59 DLabel *m_hits = nullptr;
60 DLabel *m_fileLabel = nullptr;
61 DLabel *m_fileSelect = nullptr;
62 DPushButton *m_nextSetp = nullptr;
63 DLabel *m_title = nullptr;
64 DropFrame *isoPanel = nullptr;
65 DLabel *spliter = nullptr;
66 QString m_isoFilePath;
67 QString m_selectText;
68 DLabel *growIcon = nullptr;
69 DLabel *m_checkFile = nullptr;
70 ThreadCheckFile t_checkfile;
71 DLabel *isoIcon = nullptr;
72 };
73