You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/Include/iBase/iProperty/PtyItems/ZxSymbolPullList.h

64 lines
1.1 KiB
C++

#pragma once
#include <QFrame>
#include "iProperty_global.h"
class QPainter;
namespace Ui {
class I_PROPERTY_EXPORT ZxSymbolPullList;
}
class ZxSymbolPullList : public QFrame
{
Q_OBJECT
public:
explicit ZxSymbolPullList(QWidget* parent = 0);
~ZxSymbolPullList();
int symbolNo();
void moveToProperPlace(const QPoint& ownerPosGlobal, const QSize& ownerSize);
signals:
void symbolChanged(int);
public slots:
void sltScrollBarChanged(int);
protected:
virtual void paintEvent(QPaintEvent *e);
virtual void mouseMoveEvent(QMouseEvent *e);
virtual void mousePressEvent(QMouseEvent *e);
private:
void drawCellSymbols();
void drawCellSelectedFlag();
int findCurrentCell(QPoint pos);
private:
Ui::ZxSymbolPullList *ui;
int m_nCurSymbolIndex;
int m_nStartSerialNumber;
// 常规布局参数
int m_nCellWidth;
int m_nCellHeight;
int m_nCellRow;
int m_nCellCol;
int m_nCellSpcaceX;
int m_nCellSpaceY;
int m_nSymSize;
int m_nCellOrgPosX;
int m_nCellOrgPosY;
};