Mercurial > minori
diff src/include/window.h @ 2:23d0d9319a00
Update
Also converted everything to LF from CRLF
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 03:16:26 -0400 |
parents | 1ae666fdf9e2 |
children | 5af270662505 |
line wrap: on
line diff
--- a/src/include/window.h Tue Aug 08 19:49:15 2023 -0400 +++ b/src/include/window.h Sat Aug 12 03:16:26 2023 -0400 @@ -1,41 +1,45 @@ -#ifndef __window_h -# define __window_h -/* FIXME: include these in specific .cpp files */ -# include <QApplication> -# include <QMainWindow> -# include <QToolBar> -# include <QMenuBar> -# include <QWidget> -# include <QTreeView> -# include <QMessageBox> -# include <QDesktopServices> -# include <QUrl> -# include <QInputDialog> -# include <QDate> -# include <QHeaderView> -# include <QShortcut> -# include <QFile> -# include <QTextStream> -# include <QCloseEvent> -# include "config.h" -//# include "statistics.h" -//# include "now_playing.h" - -class MainWindow : public QMainWindow { - public: - MainWindow(QWidget* parent = nullptr); - void SetActivePage(QWidget* page); - void SetStyleSheet(enum Themes theme); - void ThemeChanged(); - void closeEvent(QCloseEvent* event); - - private: - QWidget* anime_list_page; -}; - -struct Session { - Config config; -}; - -extern Session session; -#endif // __window_h +#ifndef __window_h +# define __window_h +/* FIXME: include these in specific .cpp files */ +# include <QApplication> +# include <QMainWindow> +# include <QToolBar> +# include <QMenuBar> +# include <QWidget> +# include <QTreeView> +# include <QMessageBox> +# include <QDesktopServices> +# include <QUrl> +# include <QInputDialog> +# include <QDate> +# include <QHeaderView> +# include <QShortcut> +# include <QFile> +# include <QTextStream> +# include <QCloseEvent> +# include <QPlainTextEdit> +# include <QLabel> +# include <QHBoxLayout> +# include <QTextStream> +# include "config.h" +//# include "statistics.h" +//# include "now_playing.h" + +class MainWindow : public QMainWindow { + public: + MainWindow(QWidget* parent = nullptr); + void SetActivePage(QWidget* page); + void SetStyleSheet(enum Themes theme); + void ThemeChanged(); + void closeEvent(QCloseEvent* event); + + private: + QWidget* anime_list_page; +}; + +struct Session { + Config config; +}; + +extern Session session; +#endif // __window_h