2017-03-29 10:18:37 +00:00
|
|
|
#ifndef COMMENTSWIDGET_H
|
|
|
|
#define COMMENTSWIDGET_H
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
#include "dockwidget.h"
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
class MainWindow;
|
2017-04-13 15:14:02 +00:00
|
|
|
class QTreeWidgetItem;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-09 19:55:06 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class CommentsWidget;
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
class CommentsWidget : public DockWidget
|
2017-03-29 10:18:37 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CommentsWidget(MainWindow *main, QWidget *parent = 0);
|
|
|
|
~CommentsWidget();
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
void setup() override;
|
|
|
|
|
|
|
|
void refresh() override;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-10 10:25:33 +00:00
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
private slots:
|
|
|
|
void on_commentsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
void on_toolButton_clicked();
|
|
|
|
|
|
|
|
void on_toolButton_2_clicked();
|
|
|
|
|
|
|
|
void showTitleContextMenu(const QPoint &pt);
|
|
|
|
|
|
|
|
void on_actionHorizontal_triggered();
|
|
|
|
|
|
|
|
void on_actionVertical_triggered();
|
|
|
|
|
2017-09-02 08:46:48 +00:00
|
|
|
void refreshTree();
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
private:
|
|
|
|
Ui::CommentsWidget *ui;
|
|
|
|
MainWindow *main;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COMMENTSWIDGET_H
|