/* 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 the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ #ifndef SHEMOV_H #define SHEMOV_H #include #include class QTabWidget; class QLabel; class QActionGroup; class NewMovieWizard; class PicturesWidget; class SmTreeModel; class SmTreeView; class NewPicsDialog; class ArchiveView; class ArchiveBrowser; class SearchDialog; class RandomTab; class FSWidget; class MovieWidget; class SheMov : public QMainWindow { Q_OBJECT public: SheMov(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); enum TabNum { FileManager = 0, Movies = 1, Pictures = 2, ArchiveBrowserTab = 3, RandomDisp = 4 }; virtual ~SheMov() {} protected: virtual void closeEvent(QCloseEvent *event); private slots: void updateSelectedCount(int count); void statusbarMessage(const QString &message); void configure(); void tabChanged(int newTab); void setFsFree(); void aboutShemov(); void showStatistics(); void setSize(qint64 size); void setDuration(qint64 dur, bool maybeMore); void checkConsistency(); void toggleHover(QObject *object); void analyzeActors(); void analyzeGenres(); void analyzeSeries(); void analyzeParts(); signals: void configChanged(); private: void createStatusbar(); void createOpenWithMenuFS(); void writeSettings(); void readSettings(); void createPalette(); //Statusbar Items QLabel *mSelectedDuration; QLabel *mSelectedItems; QLabel *mSelectedSize; QLabel *mFsFree; //Actions QAction *mQuitA; QAction *mConfigA; QAction *mAboutShemovA; QAction *mAboutQtA; QAction *mStatisticsA; QAction *mConsistencyA; //DB analyze actions QAction *mAnalyzeActorsA; QAction *mAnalyzeGenresA; QAction *mAnalyzeSeriesA; QAction *mAnalyzePartsA; //widgets + dialogs QTabWidget *mTab; SearchDialog *mSearchDialog; PicturesWidget *mPicWidget; ArchiveBrowser *mArchiveBrowser; RandomTab *mRandomTab; FSWidget* mFileWidget; //rename me! MovieWidget *mMovieWidget; }; #endif