45 lines
816 B
C++
45 lines
816 B
C++
#ifndef FORMTITLE_H
|
|
#define FORMTITLE_H
|
|
|
|
#include <QWidget>
|
|
#include <QTableWidgetItem>
|
|
|
|
#pragma execution_character_set("utf-8")
|
|
|
|
namespace Ui {
|
|
class FormTitle;
|
|
}
|
|
|
|
class FormTitle : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FormTitle(QWidget *parent = nullptr, int indexID=0);
|
|
~FormTitle();
|
|
|
|
private:
|
|
Ui::FormTitle *ui;
|
|
|
|
public:
|
|
int m_indexID;
|
|
|
|
public:
|
|
void Init();
|
|
void Add(QString strLineName, QColor lineColor);
|
|
|
|
public slots:
|
|
void onItemClicked(QTableWidgetItem *item) ;
|
|
void s_DelCurve(int indexID, QString strLineName);
|
|
void s_DelLine();
|
|
void s_MoveLine();
|
|
//右键菜单
|
|
void on_tableWidget_customContextMenuRequested(const QPoint &pos);
|
|
|
|
signals:
|
|
void sig_LineClicked(int index);
|
|
void removeSelectedGraphByTitle();
|
|
};
|
|
|
|
#endif // FORMTITLE_H
|