cutter/src/dialogs/CommentsDialog.h
karliss 567f852c3a
Common behaviour for lists with items that have address part 2 (#1718)
* 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.
2019-09-02 00:30:25 +03:00

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