forked from samnazarko/osmc-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowsertab.h
41 lines (35 loc) · 806 Bytes
/
browsertab.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef BROWSERTAB_H
#define BROWSERTAB_H
#include <QWidget>
#include <QTabWidget>
#include <QUrl>
namespace Ui {
class BrowserTab;
}
class BrowserTab : public QWidget
{
Q_OBJECT
public:
static QString INITIAL_TITLE;
explicit BrowserTab(QWidget *parent = 0);
~BrowserTab();
private:
Ui::BrowserTab *ui;
QTabWidget* tabWidget;
QStringList* urlList;
int currentUrlIndex = -1;
bool isLoading = false;
private slots:
void createAndSwitchTab();
void removeTab();
void evaluteUrlField();
void goBack();
void goForward();
void evaluateClickedLink(QUrl url);
void onLoadStarted();
void onLoadProgress(int progress);
void onLoadFinished(bool success);
void setTitle(QString title);
void checkLoading();
};
#endif // BROWSERTAB_H