46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <QMainWindow>
|
|
#include <string>
|
|
#include <session.h>
|
|
#include <includes.h>
|
|
#include <httpflow.h>
|
|
#include <editandresend.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
Ui::EditAndResend *ui_editandresend;
|
|
QThread* thread;
|
|
Session* current_session;
|
|
HistoryModel history_model;
|
|
HistoryProxyModel history_proxy;
|
|
|
|
QAction* editAndResendMenu;
|
|
QAction* hideHistoryColumn;
|
|
QAction* showHistoryColumn;
|
|
|
|
// hack for supplying the initial data to edit&resend
|
|
std::tuple<QString, QString, QString, QString> current_selection;
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
void openEditAndResend();
|
|
public slots:
|
|
void updateHistory();
|
|
void editMenuRequested(QPoint pos);
|
|
void edit2MenuRequested(QPoint pos);
|
|
void edit3MenuRequested(QPoint pos);
|
|
void edit4MenuRequested(QPoint pos);
|
|
void historyMenuRequested(QPoint pos);
|
|
private slots:
|
|
void on_selectionChange(const QItemSelection& selection);
|
|
void on_searchEdit_textEdited(const QString &arg1);
|
|
};
|