From ea39cc542e17ce592dc3c4f2053d534bc458d88e Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 30 May 2020 19:33:47 +0200 Subject: More usability, survives conmans torture nearly with 100% --- mainwindow.hpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'mainwindow.hpp') diff --git a/mainwindow.hpp b/mainwindow.hpp index b9da644..0481011 100644 --- a/mainwindow.hpp +++ b/mainwindow.hpp @@ -4,10 +4,14 @@ #include #include +#include "favouritecollection.hpp" + QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE +class BrowserTab; + class MainWindow : public QMainWindow { Q_OBJECT @@ -17,14 +21,25 @@ public: ~MainWindow(); - void addEmptyTab(); - void addNewTab(QUrl const & url); + BrowserTab * addEmptyTab(bool focus_new); + BrowserTab * addNewTab(bool focus_new, QUrl const & url); void setUrlPreview(QUrl const & url); +public: + FavouriteCollection favourites; + +private slots: + void on_browser_tabs_currentChanged(int index); + + void on_favourites_view_doubleClicked(const QModelIndex &index); + + void on_browser_tabs_tabCloseRequested(int index); + private: Ui::MainWindow *ui; QLabel * url_status; + }; #endif // MAINWINDOW_HPP -- cgit v1.2.3