repoindex/gui/mainwindow.h

40 lines
647 B
C
Raw Normal View History

2016-02-27 21:00:58 +01:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "./webviewprovider.h"
#include <QMainWindow>
#ifdef REPOINDEX_USE_WEBENGINE
# include <QWebEngineView>
#else
# include <QWebView>
#endif
namespace RepoIndex {
2016-02-28 02:33:25 +01:00
class Manager;
2016-02-27 21:00:58 +01:00
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
2016-02-28 02:33:25 +01:00
MainWindow(const QString &webdir, Manager *manager);
2016-02-27 21:00:58 +01:00
protected:
bool event(QEvent *event);
private slots:
void showInfoWebViewContextMenu(const QPoint &);
void copyInfoWebViewSelection();
private:
2016-02-28 02:33:25 +01:00
Manager *m_manager;
2016-02-27 21:00:58 +01:00
WEB_VIEW_PROVIDER m_webView;
2016-02-28 02:33:25 +01:00
QMenu *m_contextMenu;
QAction *m_copyAction;
2016-02-27 21:00:58 +01:00
};
}
#endif // MAINWINDOW_H