20 #ifndef __MAIN_WINDOW_HH__
21 #define __MAIN_WINDOW_HH__
23 #include <QMainWindow>
25 #include <QModelIndex>
42 class QItemSelectionModel;
43 class QSortFilterProxyModel;
44 class QFileSystemModel;
81 void songEditor(
const QString &filename);
83 void open(
const QString &filename);
101 QDockWidget *
log()
const;
171 void save(
bool forced =
false);
174 void closeTab(
int index);
175 void changeTab(
int index);
179 void downloadDialog();
184 void updateTempFilesView(
int state);
188 void middleClicked(
const QModelIndex &index = QModelIndex());
189 void songEditor(
const QModelIndex &index = QModelIndex());
192 void deleteSong(
const QString &filename);
193 void updateNotification(
const QString &path);
194 void noDataNotification(
const QDir &directory);
197 void selectedSongsChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight);
201 void setToolBarDisplayed(
bool);
202 void setStatusBarDisplayed(
bool);
203 void documentation();
207 void updateTitle(
const QString &filename);
208 void switchToolBar(QToolBar *toolBar);
210 void buildError(QProcess::ProcessError error);
212 void cancelProcess();
215 void readSettings(
bool firstLaunch=
false);
216 void writeSettings();
218 void createActions();
220 void createToolBar();
222 bool isToolBarDisplayed();
223 bool isStatusBarDisplayed();
225 QItemSelectionModel * selectionModel();
231 QSortFilterProxyModel *m_proxyModel;
232 QFileSystemModel* m_tempFilesmodel;
239 QLabel *m_infoSelection;
244 QString m_workingPath;
245 bool m_isToolBarDisplayed;
246 bool m_isStatusBarDisplayed;
247 QString m_buildCommand;
248 QString m_cleanCommand;
249 QString m_cleanallCommand;
254 QToolBar *m_libraryToolBar;
255 QToolBar *m_currentToolBar;
256 QToolBar *m_mainToolBar;
259 QAction *m_preferencesAct;
260 QAction *m_documentationAct;
269 QAction *m_saveAsAct;
272 QAction *m_sbInfoAct;
276 QAction *m_newSongAct;
277 QAction *m_selectAllAct;
278 QAction *m_unselectAllAct;
279 QAction *m_invertSelectionAct;
280 QAction *m_libraryUpdateAct;
281 QAction *m_libraryDownloadAct;
284 #endif // __MAIN_WINDOW_HH__