1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2010 LoRd_MuldeR <MuldeR2@GMX.de>
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
24 #include "../tmp/UIC_MainWindow.h"
26 #include "Model_FileList.h"
29 class QFileSystemModel;
31 class MessageHandlerThread;
37 class MainWindow: public QMainWindow, private Ui::MainWindow
42 MainWindow(QWidget *parent = 0);
46 void windowShown(void);
47 void aboutButtonClicked(void);
48 void encodeButtonClicked(void);
49 void addFilesButtonClicked(void);
50 void clearFilesButtonClicked(void);
51 void removeFileButtonClicked(void);
52 void fileDownButtonClicked(void);
53 void fileUpButtonClicked(void);
54 void showDetailsButtonClicked(void);
55 void tabPageChanged(int idx);
56 void tabActionActivated(QAction *action);
57 void styleActionActivated(QAction *action);
58 void outputFolderViewClicked(const QModelIndex &index);
59 void makeFolderButtonClicked(void);
60 void gotoHomeFolderButtonClicked(void);
61 void gotoDesktopButtonClicked(void);
62 void gotoMusicFolderButtonClicked(void);
63 void checkUpdatesActionActivated(void);
64 void visitHomepageActionActivated(void);
65 void openFolderActionActivated(void);
66 void notifyOtherInstance(void);
67 void addFileDelayed(const QString &filePath);
68 void handleDelayedFiles(void);
69 void editMetaButtonClicked(void);
70 void clearMetaButtonClicked(void);
71 void updateEncoder(int id);
72 void updateRCMode(int id);
73 void updateBitrate(int value);
76 void showEvent(QShowEvent *event);
77 void dragEnterEvent(QDragEnterEvent *event);
78 void dropEvent(QDropEvent *event);
81 void addFiles(const QStringList &files);
83 FileListModel *m_fileListModel;
84 QFileSystemModel *m_fileSystemModel;
85 QActionGroup *m_tabActionGroup;
86 QActionGroup *m_styleActionGroup;
87 QButtonGroup *m_encoderButtonGroup;
88 QButtonGroup *m_modeButtonGroup;
89 WorkingBanner *m_banner;
90 MessageHandlerThread *m_messageHandler;
91 QStringList *m_delayedFileList;
92 QTimer *m_delayedFileTimer;
93 AudioFileModel *m_metaData;
94 MetaInfoModel *m_metaInfoModel;
95 SettingsModel *m_settings;