mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
/**
|
|
* GalleryItemColor.h
|
|
* Copyright (c) 2013 ROBLOX Corp. All Rights Reserved.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#define signals protected
|
|
#define slots
|
|
#include <QtnRibbonGallery.h>
|
|
#undef signals
|
|
#undef slots
|
|
|
|
#include "util/BrickColor.h"
|
|
|
|
#define GALLERY_ITEM_USER_DATA 100
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
class StudioGalleryItem : public Qtitan::RibbonGalleryItem
|
|
{
|
|
public:
|
|
StudioGalleryItem()
|
|
{}
|
|
|
|
protected:
|
|
virtual void draw(QPainter* pPainter, Qtitan::RibbonGallery* pGallery, QRect rectItem, bool enabled, bool selected, bool pressed, bool checked);
|
|
};
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
class GalleryItemColor : public Qtitan::RibbonGalleryItem
|
|
{
|
|
public:
|
|
static void addStandardColors(Qtitan::RibbonGalleryGroup* items);
|
|
|
|
QColor getColor() const { return m_color; }
|
|
RBX::BrickColor getBrickColor() const { return m_brickColor; }
|
|
|
|
private:
|
|
GalleryItemColor(const RBX::BrickColor& color);
|
|
virtual void draw(QPainter* pPainter, Qtitan::RibbonGallery* pGallery, QRect rectItem, bool enabled, bool selected, bool pressed, bool checked);
|
|
|
|
QColor m_color;
|
|
RBX::BrickColor m_brickColor;
|
|
}; |