-
Notifications
You must be signed in to change notification settings - Fork 2
/
GalleryItemColor.h
44 lines (34 loc) · 1.3 KB
/
GalleryItemColor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* 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;
};