aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-05-30 19:33:47 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-05-30 19:33:47 +0200
commitea39cc542e17ce592dc3c4f2053d534bc458d88e (patch)
treec3c6a369d5b6d8a6a4e0b3e3667a56ca19e93173 /mainwindow.hpp
parent79ff338a3427a236ef53adf806c56616faa3426c (diff)
downloadkristall-ea39cc542e17ce592dc3c4f2053d534bc458d88e.tar.gz
More usability, survives conmans torture nearly with 100%
Diffstat (limited to 'mainwindow.hpp')
-rw-r--r--mainwindow.hpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/mainwindow.hpp b/mainwindow.hpp
index b9da644..0481011 100644
--- a/mainwindow.hpp
+++ b/mainwindow.hpp
@@ -4,10 +4,14 @@
#include <QMainWindow>
#include <QLabel>
+#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