35 lines
536 B
C
35 lines
536 B
C
|
#ifndef MAINWINDOW_H
|
||
|
#define MAINWINDOW_H
|
||
|
|
||
|
#include "./webviewprovider.h"
|
||
|
|
||
|
#include <QMainWindow>
|
||
|
#ifdef REPOINDEX_USE_WEBENGINE
|
||
|
# include <QWebEngineView>
|
||
|
#else
|
||
|
# include <QWebView>
|
||
|
#endif
|
||
|
|
||
|
namespace RepoIndex {
|
||
|
|
||
|
class MainWindow : public QMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
MainWindow(const QString &webdir);
|
||
|
|
||
|
protected:
|
||
|
bool event(QEvent *event);
|
||
|
|
||
|
private slots:
|
||
|
void showInfoWebViewContextMenu(const QPoint &);
|
||
|
void copyInfoWebViewSelection();
|
||
|
|
||
|
private:
|
||
|
WEB_VIEW_PROVIDER m_webView;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // MAINWINDOW_H
|