2025-09-05 21:35:17 +00:00
|
|
|
#ifndef XLISTBOXDEF_H
|
|
|
|
|
#define XLISTBOXDEF_H
|
|
|
|
|
|
2025-12-19 23:06:03 -05:00
|
|
|
#include "qcolor.h"
|
2025-09-05 21:35:17 +00:00
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xcolumninfo.h"
|
|
|
|
|
#include "xmaterial.h"
|
|
|
|
|
|
|
|
|
|
class XListBoxDef : public XAsset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit XListBoxDef();
|
2025-12-19 23:06:03 -05:00
|
|
|
~XListBoxDef() = default;
|
2025-09-05 21:35:17 +00:00
|
|
|
|
2025-09-10 21:58:26 -04:00
|
|
|
void ParseData(XDataStream *aStream) override;
|
2025-09-05 21:35:17 +00:00
|
|
|
void Clear() override;
|
|
|
|
|
|
|
|
|
|
private:
|
2025-12-19 23:06:03 -05:00
|
|
|
qint32 mMousePos;
|
|
|
|
|
qint32 mStartPos;
|
|
|
|
|
qint32 mEndPos;
|
|
|
|
|
qint32 mDrawPadding;
|
2025-09-05 21:35:17 +00:00
|
|
|
float mElementWidth;
|
|
|
|
|
float mElementHeight;
|
2025-12-19 23:06:03 -05:00
|
|
|
qint32 mElementStyle;
|
|
|
|
|
qint32 mNumColumns;
|
2025-09-05 21:35:17 +00:00
|
|
|
QVector<XColumnInfo> mColumnInfo;
|
2025-12-19 23:06:03 -05:00
|
|
|
XString mDoubleClick;
|
|
|
|
|
qint32 mNotselectable;
|
|
|
|
|
qint32 mNoScrollBars;
|
|
|
|
|
qint32 mUsePaging;
|
|
|
|
|
QColor mSelectBorder;
|
|
|
|
|
QColor mDisableColor;
|
|
|
|
|
XMaterial mSelectIcon;
|
2025-09-05 21:35:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XLISTBOXDEF_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|