mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-10 14:05:25 +00:00
567f852c3a
* Seperate addressable item list widget from ListDockWidget. * Convert ResourceWidget, strings widget, flags widget, search widget, MemoryMapWidget, xrefs dialog * Don't silently overwrite comment in add comment action.
37 lines
659 B
C++
37 lines
659 B
C++
#ifndef COMMENTSDIALOG_H
|
|
#define COMMENTSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <memory>
|
|
|
|
#include "core/CutterCommon.h"
|
|
|
|
namespace Ui {
|
|
class CommentsDialog;
|
|
}
|
|
|
|
class CommentsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CommentsDialog(QWidget *parent = nullptr);
|
|
~CommentsDialog();
|
|
|
|
QString getComment();
|
|
void setComment(const QString &comment);
|
|
|
|
static void addOrEditComment(RVA offset, QWidget *parent);
|
|
private slots:
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
private:
|
|
std::unique_ptr<Ui::CommentsDialog> ui;
|
|
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|
};
|
|
|
|
#endif // COMMENTSDIALOG_H
|