mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
55 lines
1.0 KiB
C
55 lines
1.0 KiB
C
|
//////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// pgAdmin 4 - PostgreSQL Tools
|
||
|
//
|
||
|
// Copyright (C) 2013, The pgAdmin Development Team
|
||
|
// This software is released under the PostgreSQL Licence
|
||
|
//
|
||
|
// BrowserWindow.h - Declaration of the main window class
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#ifndef BROWSERWINDOW_H
|
||
|
#define BROWSERWINDOW_H
|
||
|
|
||
|
#include <QtGlobal>
|
||
|
|
||
|
#if QT_VERSION >= 0x050000
|
||
|
#include <QtWidgets>
|
||
|
#include <QtWebKitWidgets>
|
||
|
#else
|
||
|
#include <QMainWindow>
|
||
|
#include <QWebView>
|
||
|
#endif
|
||
|
|
||
|
QT_BEGIN_NAMESPACE
|
||
|
class QAction;
|
||
|
class QMenu;
|
||
|
QT_END_NAMESPACE
|
||
|
|
||
|
class BrowserWindow : public QMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
BrowserWindow();
|
||
|
|
||
|
private slots:
|
||
|
void openUrl();
|
||
|
void about();
|
||
|
|
||
|
private:
|
||
|
QWebView *webView;
|
||
|
QMenu *fileMenu;
|
||
|
QMenu *helpMenu;
|
||
|
QAction *openUrlAction;
|
||
|
QAction *exitAction;
|
||
|
QAction *aboutAction;
|
||
|
|
||
|
void createActions();
|
||
|
void createMenus();
|
||
|
QString execPython(QString script);
|
||
|
};
|
||
|
|
||
|
#endif
|