cutter/src/widgets/Dashboard.h
Islam Bassuni a630a8f5bc
Partially refactor Dashboard to API (#2930)
Also fixes missing NX and PIC bits in Dashboard.
2022-05-30 19:34:17 +02:00

43 lines
815 B
C++

#ifndef DASHBOARD_H
#define DASHBOARD_H
#include <QFormLayout>
#include <memory>
#include "core/Cutter.h"
#include "CutterDockWidget.h"
QT_BEGIN_NAMESPACE
QT_FORWARD_DECLARE_CLASS(QLineEdit)
QT_FORWARD_DECLARE_CLASS(QJsonObject)
QT_END_NAMESPACE
class MainWindow;
namespace Ui {
class Dashboard;
}
class Dashboard : public CutterDockWidget
{
Q_OBJECT
public:
explicit Dashboard(MainWindow *main);
~Dashboard();
private slots:
void updateContents();
void on_certificateButton_clicked();
void on_versioninfoButton_clicked();
private:
std::unique_ptr<Ui::Dashboard> ui;
void setPlainText(QLineEdit *textBox, const QString &text);
void setRzBinInfo(RzBinInfo *binInfo);
const char *setBoolText(bool value);
QWidget *hashesWidget = nullptr;
};
#endif // DASHBOARD_H