cutter/src/widgets/CommentsWidget.h

47 lines
948 B
C
Raw Normal View History

#ifndef COMMENTSWIDGET_H
#define COMMENTSWIDGET_H
2017-10-02 09:41:28 +00:00
#include <memory>
#include "CutterDockWidget.h"
class MainWindow;
class QTreeWidgetItem;
2017-04-09 19:55:06 +00:00
namespace Ui
{
class CommentsWidget;
}
class CommentsWidget : public CutterDockWidget
{
Q_OBJECT
public:
explicit CommentsWidget(MainWindow *main, QAction *action = nullptr);
~CommentsWidget();
protected:
void resizeEvent(QResizeEvent *event) override;
private slots:
void on_commentsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_nestedCmtsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_toolButton_clicked();
void on_toolButton_2_clicked();
void on_actionHorizontal_triggered();
void on_actionVertical_triggered();
void showTitleContextMenu(const QPoint &pt);
2017-09-02 08:46:48 +00:00
void refreshTree();
private:
2017-10-02 09:41:28 +00:00
std::unique_ptr<Ui::CommentsWidget> ui;
MainWindow *main;
};
#endif // COMMENTSWIDGET_H