Changeset View
Changeset View
Standalone View
Standalone View
src/kdefrontend/datasources/ImportFileWidget.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | class FITSOptionsWidget; | 51 | class FITSOptionsWidget; | ||
52 | class JsonOptionsWidget; | 52 | class JsonOptionsWidget; | ||
53 | class ROOTOptionsWidget; | 53 | class ROOTOptionsWidget; | ||
54 | class QTableWidget; | 54 | class QTableWidget; | ||
55 | class QCompleter; | 55 | class QCompleter; | ||
56 | class QTimer; | 56 | class QTimer; | ||
57 | class QTreeWidgetItem; | 57 | class QTreeWidgetItem; | ||
58 | class QStringList; | 58 | class QStringList; | ||
59 | class KUrlComboBox; | ||||
59 | 60 | | |||
60 | class ImportFileWidget : public QWidget { | 61 | class ImportFileWidget : public QWidget { | ||
61 | Q_OBJECT | 62 | Q_OBJECT | ||
62 | 63 | | |||
63 | public: | 64 | public: | ||
64 | explicit ImportFileWidget(QWidget*, bool liveDataSource, const QString& fileName = QString()); | 65 | explicit ImportFileWidget(QWidget*, bool liveDataSource, const QString& fileName = QString()); | ||
65 | ~ImportFileWidget() override; | 66 | ~ImportFileWidget() override; | ||
66 | 67 | | |||
Show All 31 Lines | 89 | private: | |||
98 | std::unique_ptr<ImageOptionsWidget> m_imageOptionsWidget; | 99 | std::unique_ptr<ImageOptionsWidget> m_imageOptionsWidget; | ||
99 | std::unique_ptr<NetCDFOptionsWidget> m_netcdfOptionsWidget; | 100 | std::unique_ptr<NetCDFOptionsWidget> m_netcdfOptionsWidget; | ||
100 | std::unique_ptr<FITSOptionsWidget> m_fitsOptionsWidget; | 101 | std::unique_ptr<FITSOptionsWidget> m_fitsOptionsWidget; | ||
101 | std::unique_ptr<JsonOptionsWidget> m_jsonOptionsWidget; | 102 | std::unique_ptr<JsonOptionsWidget> m_jsonOptionsWidget; | ||
102 | std::unique_ptr<ROOTOptionsWidget> m_rootOptionsWidget; | 103 | std::unique_ptr<ROOTOptionsWidget> m_rootOptionsWidget; | ||
103 | 104 | | |||
104 | mutable std::unique_ptr<AbstractFileFilter> m_currentFilter; | 105 | mutable std::unique_ptr<AbstractFileFilter> m_currentFilter; | ||
105 | 106 | | |||
106 | QTableWidget* m_twPreview; | 107 | QTableWidget* m_twPreview{nullptr}; | ||
108 | KUrlComboBox* m_cbFileName{nullptr}; | ||||
asemke: let's add default initialization here - KUrlComboBox* m_cbFileName{nullptr}; | |||||
107 | const QString& m_fileName; | 109 | const QString& m_fileName; | ||
108 | bool m_fileEmpty{false}; | 110 | bool m_fileEmpty{false}; | ||
109 | bool m_liveDataSource; | 111 | bool m_liveDataSource; | ||
110 | bool m_suppressRefresh{false}; | 112 | bool m_suppressRefresh{false}; | ||
111 | 113 | | |||
112 | private slots: | 114 | private slots: | ||
113 | void fileNameChanged(const QString&); | 115 | void fileNameChanged(const QString&); | ||
114 | void fileTypeChanged(int); | 116 | void fileTypeChanged(int); | ||
115 | 117 | | |||
116 | void updateTypeChanged(int); | 118 | void updateTypeChanged(int); | ||
117 | void sourceTypeChanged(int); | 119 | void sourceTypeChanged(int); | ||
118 | void readingTypeChanged(int); | 120 | void readingTypeChanged(int); | ||
119 | 121 | | |||
120 | void saveFilter(); | 122 | void saveFilter(); | ||
121 | void manageFilters(); | 123 | void manageFilters(); | ||
122 | void filterChanged(int); | 124 | void filterChanged(int); | ||
123 | void selectFile(); | 125 | void selectFile(); | ||
124 | void fileInfoDialog(); | 126 | void fileInfoDialog(); | ||
125 | void refreshPreview(); | 127 | void refreshPreview(); | ||
126 | 128 | | |||
asemke: const QUrl& | |||||
127 | signals: | 129 | signals: | ||
128 | void fileNameChanged(); | 130 | void fileNameChanged(); | ||
129 | void sourceTypeChanged(); | 131 | void sourceTypeChanged(); | ||
130 | void hostChanged(); | 132 | void hostChanged(); | ||
131 | void portChanged(); | 133 | void portChanged(); | ||
132 | void previewRefreshed(); | 134 | void previewRefreshed(); | ||
133 | void checkedFitsTableToMatrix(const bool enable); | 135 | void checkedFitsTableToMatrix(const bool enable); | ||
134 | 136 | | |||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |
let's add default initialization here - KUrlComboBox* m_cbFileName{nullptr};