hivemind 1.0.0
Loading...
Searching...
No Matches
Gui::ColorBox Class Reference

#include <color_box.h>

Inheritance diagram for Gui::ColorBox:
Inheritance graph
Collaboration diagram for Gui::ColorBox:
Collaboration graph

Public Slots

void UpdateColor (QColor color)
 

Signals

void ColorUpdated (QColor color)
 

Public Member Functions

 ColorBox (QWidget *parent=nullptr)
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 

Private Slots

void SelectColor ()
 

Private Attributes

QColor m_Color
 
QColorDialog * m_ColorDialog
 

Detailed Description

Definition at line 9 of file color_box.h.

Constructor & Destructor Documentation

◆ ColorBox()

Gui::ColorBox::ColorBox ( QWidget *  parent = nullptr)
explicit

Definition at line 9 of file color_box.cpp.

References m_ColorDialog.

Member Function Documentation

◆ ColorUpdated

void Gui::ColorBox::ColorUpdated ( QColor  color)
signal

Referenced by SelectColor().

Here is the caller graph for this function:

◆ mousePressEvent()

void Gui::ColorBox::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 39 of file color_box.cpp.

References SelectColor().

Here is the call graph for this function:

◆ paintEvent()

void Gui::ColorBox::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 21 of file color_box.cpp.

References m_Color.

◆ SelectColor

void Gui::ColorBox::SelectColor ( )
privateslot

Definition at line 52 of file color_box.cpp.

References ColorUpdated(), m_Color, and m_ColorDialog.

Referenced by mousePressEvent().

Here is the caller graph for this function:

◆ UpdateColor

void Gui::ColorBox::UpdateColor ( QColor  color)
slot

Definition at line 45 of file color_box.cpp.

References m_Color, and m_ColorDialog.

Referenced by Gui::AgentControls::SetActiveAgentIndex(), and Gui::AgentControls::SyncColor().

Here is the caller graph for this function:

Member Data Documentation

◆ m_Color

QColor Gui::ColorBox::m_Color
private

Definition at line 29 of file color_box.h.

Referenced by paintEvent(), SelectColor(), and UpdateColor().

◆ m_ColorDialog

QColorDialog* Gui::ColorBox::m_ColorDialog
private

Definition at line 30 of file color_box.h.

Referenced by ColorBox(), SelectColor(), and UpdateColor().


The documentation for this class was generated from the following files: