///////////////////////////////////////////////////////////////////////////////
// LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
class QMenu;
class QUrl;
class QModelIndex;
+class QEventLoop;
class SettingsModel;
class WorkingBanner;
class lamexp_icon_t;
//UIC forward declartion
-namespace Ui {
+namespace Ui
+{
class MainWindow;
}
+//IPC forward declartion
+namespace MUtils
+{
+ class IPCChannel;
+}
+
//MainWindow class
class MainWindow: public QMainWindow
{
Q_OBJECT
public:
- MainWindow(FileListModel *fileListModel, AudioFileModel_MetaInfo *metaInfo, SettingsModel *settingsModel, QWidget *parent = 0);
+ MainWindow(MUtils::IPCChannel *const ipcChannel, FileListModel *const fileListModel, AudioFileModel_MetaInfo *const metaInfo, SettingsModel *const settingsModel, QWidget *const parent = 0);
~MainWindow(void);
bool isAccepted() { return m_accepted; }
void clearMetaButtonClicked(void);
void closeButtonClicked(void);
void compressionTabEventOccurred(QWidget*, QEvent*);
+ void cornerWidgetEventOccurred(QWidget *sender, QEvent *event);
void customParamsChanged(void);
void customParamsHelpRequested(QWidget *obj, QEvent *event);
void customTempFolderChanged(const QString &text);
void encodeButtonClicked(void);
void exportCsvContextActionTriggered(void);
void fileDownButtonClicked(void);
+ void fileExtAddButtonClicked();
+ void fileExtModelChanged();
+ void fileExtRemoveButtonClicked();
void fileUpButtonClicked(void);
void findFileContextActionTriggered(void);
void forceStereoDownmixEnabledChanged(bool checked);
void metaTagsEnabledChanged(void);
void neroAAC2PassChanged(bool checked);
void neroAACProfileChanged(int value);
+ void normalizationCoupledChanged(bool checked);
+ void normalizationDynamicChanged(bool checked);
void normalizationEnabledChanged(bool checked);
+ void normalizationFilterSizeChanged(int value);
+ void normalizationFilterSizeFinished(void);
void normalizationMaxVolumeChanged(double volume);
- void normalizationModeChanged(int mode);
void notifyOtherInstance(void);
void openFolderActionActivated(void);
void opusSettingsChanged(void);
void previewContextActionTriggered(void);
void refreshFolderContextActionTriggered(void);
void removeFileButtonClicked(void);
- void renameOutputEnabledChanged(bool checked);
+ void renameButtonClicked(bool checked);
+ void renameOutputEnabledChanged(const bool &checked);
void renameOutputPatternChanged(void);
- void renameOutputPatternChanged(const QString &text, bool silent = false);
+ void renameOutputPatternChanged(const QString &text, const bool &silent = false);
+ void renameRegExpEnabledChanged(const bool &checked);
+ void renameRegExpValueChanged(void);
+ void renameRegExpSearchChanged (const QString &text, const bool &silent = false);
+ void renameRegExpReplaceChanged(const QString &text, const bool &silent = false);
void resetAdvancedOptionsButtonClicked(void);
void restoreCursor(void);
void samplingRateChanged(int value);
Ui::MainWindow *ui; //for Qt UIC
void addFiles(const QStringList &files);
- void addFolder(const QString &path, bool recursive = false, bool delayed = false);
+ void addFolder(const QString &path, bool recursive = false, bool delayed = false, QString filter = QString());
bool checkForUpdates(void);
void initializeTranslation(void);
void refreshFavorites(void);
-
+ void openDocumentLink(QAction *const action);
+ void moveSelectedFiles(const bool &up);
+
+ void showBanner(const QString &text);
+ void showBanner(const QString &text, QThread *const thread);
+ void showBanner(const QString &text, QEventLoop *const eventLoop);
+ void showBanner(const QString &text, bool &flag, const bool &test);
+
bool m_accepted;
bool m_firstTimeShown;
uint m_outputFolderViewInitCounter;
bool m_outputFolderViewCentering;
- lamexp_icon_t *m_windowIcon;
-
- WorkingBanner *m_banner;
- QList<QUrl> *m_droppedFileList;
- QStringList *m_delayedFileList;
- QTimer *m_delayedFileTimer;
- DropBox *m_dropBox;
- QLabel *m_dropNoteLabel;
- FileListModel *m_fileListModel;
- QFileSystemModelEx *m_fileSystemModel;
- MessageHandlerThread *m_messageHandler;
+
+ FileListModel *const m_fileListModel;
AudioFileModel_MetaInfo *const m_metaData;
- MetaInfoModel *m_metaInfoModel;
- QMenu *m_outputFolderContextMenu;
- SettingsModel *m_settings;
- QMenu *m_sourceFilesContextMenu;
- QMenu *m_outputFolderFavoritesMenu;
- QLabel *m_outputFolderNoteBox;
+ SettingsModel *const m_settings;
+
+ QScopedPointer<WorkingBanner> m_banner;
+ QScopedPointer<MetaInfoModel> m_metaInfoModel;
+ QScopedPointer<QFileSystemModelEx> m_fileSystemModel;
+
+ QScopedPointer<QList<QUrl>> m_droppedFileList;
+ QScopedPointer<QStringList> m_delayedFileList;
+ QScopedPointer<QTimer> m_delayedFileTimer;
+ QScopedPointer<DropBox> m_dropBox;
+ QScopedPointer<QLabel> m_dropNoteLabel;
+
+ QScopedPointer<MessageHandlerThread> m_messageHandler;
+ QScopedPointer<QLabel> m_outputFolderNoteBox;
+
+ QScopedPointer<QMenu> m_outputFolderContextMenu;
+ QScopedPointer<QMenu> m_sourceFilesContextMenu;
+ QScopedPointer<QMenu> m_outputFolderFavoritesMenu;
+
+ QScopedPointer<QActionGroup> m_languageActionGroup;
+ QScopedPointer<QActionGroup> m_styleActionGroup;
+ QScopedPointer<QActionGroup> m_tabActionGroup;
+ QScopedPointer<QButtonGroup> m_encoderButtonGroup;
+ QScopedPointer<QButtonGroup> m_modeButtonGroup;
+ QScopedPointer<QButtonGroup> m_overwriteButtonGroup;
QAction *m_findFileContextAction;
QAction *m_previewContextAction;
QAction *m_addFavoriteFolderAction;
QAction *m_exportCsvContextAction;
QAction *m_importCsvContextAction;
- QActionGroup *m_languageActionGroup;
- QActionGroup *m_styleActionGroup;
- QActionGroup *m_tabActionGroup;
- QButtonGroup *m_encoderButtonGroup;
- QButtonGroup *m_modeButtonGroup;
- QButtonGroup *m_overwriteButtonGroup;
-
- CustomEventFilter *m_evenFilterCustumParamsHelp;
- CustomEventFilter *m_evenFilterOutputFolderMouse;
- CustomEventFilter *m_evenFilterOutputFolderView;
- CustomEventFilter *m_evenFilterCompressionTab;
+
+ QScopedPointer<CustomEventFilter> m_evenFilterCornerWidget;
+ QScopedPointer<CustomEventFilter> m_evenFilterCustumParamsHelp;
+ QScopedPointer<CustomEventFilter> m_evenFilterOutputFolderMouse;
+ QScopedPointer<CustomEventFilter> m_evenFilterOutputFolderView;
+ QScopedPointer<CustomEventFilter> m_evenFilterCompressionTab;
};