42 lines
1023 B
C++
42 lines
1023 B
C++
|
|
#ifndef CCONNECTORSELECTWIDGET_H
|
|
#define CCONNECTORSELECTWIDGET_H
|
|
|
|
#include "GlobalDefine.h"
|
|
#include <QWidget>
|
|
#include "ConnectorClickZoneWidget.h"
|
|
#include <QList>
|
|
|
|
class CConnectorSelectWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CConnectorSelectWidget(QWidget *parent = 0);
|
|
virtual ~CConnectorSelectWidget();
|
|
void paintEvent(QPaintEvent *);
|
|
|
|
QPixmap *mConnectorLayoutPixmap;
|
|
|
|
QList<CConnectorClickZoneWidget*> mInputClickZoneList;
|
|
QList<CConnectorClickZoneWidget*> mOutputSelectZoneList;
|
|
|
|
int ClearAllOutputConSelections();
|
|
int ClearAllInputConSelections();
|
|
int ClearAllConnectorsSelections();
|
|
|
|
CConnectorClickZoneWidget* FindOutputSelectionZone(CConnectorDefs::eConnectorType type);
|
|
|
|
|
|
private:
|
|
CConnectorDefs::eConnectorType mCurSelConnector;
|
|
signals:
|
|
void ConnectorSelected(CConnectorDefs::eConnectorType ConType);
|
|
|
|
public slots:
|
|
|
|
void InputConnectorZoneClicked(CConnectorClickZoneWidget *ConType);
|
|
|
|
};
|
|
|
|
#endif // CCONNECTORSELECTWIDGET_H
|