BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DomPalette Class Reference
Collaboration diagram for DomPalette:
[legend]

Public Member Functions

 DomPalette ()
 
 ~DomPalette ()
 
void clearElementActive ()
 
void clearElementDisabled ()
 
void clearElementInactive ()
 
DomColorGroupelementActive () const
 
DomColorGroupelementDisabled () const
 
DomColorGroupelementInactive () const
 
bool hasElementActive () const
 
bool hasElementDisabled () const
 
bool hasElementInactive () const
 
void read (QXmlStreamReader &reader)
 
void setElementActive (DomColorGroup *a)
 
void setElementDisabled (DomColorGroup *a)
 
void setElementInactive (DomColorGroup *a)
 
void setText (const QString &s)
 
DomColorGrouptakeElementActive ()
 
DomColorGrouptakeElementDisabled ()
 
DomColorGrouptakeElementInactive ()
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child { Active = 1 , Inactive = 2 , Disabled = 4 }
 

Private Member Functions

 DomPalette (const DomPalette &other)
 
void clear (bool clear_all=true)
 
void operator= (const DomPalette &other)
 

Private Attributes

DomColorGroupm_active
 
uint m_children
 
DomColorGroupm_disabled
 
DomColorGroupm_inactive
 
QString m_text
 

Detailed Description

Definition at line 2213 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomPalette::Child
private
Enumerator
Active 
Inactive 
Disabled 

Definition at line 2253 of file ui4_p.h.

2253 { Active = 1, Inactive = 2, Disabled = 4 };
@ Active
Definition: ui4_p.h:2253
@ Inactive
Definition: ui4_p.h:2253
@ Disabled
Definition: ui4_p.h:2253

Constructor & Destructor Documentation

◆ DomPalette() [1/2]

DomPalette::DomPalette ( )

◆ ~DomPalette()

DomPalette::~DomPalette ( )

◆ DomPalette() [2/2]

DomPalette::DomPalette ( const DomPalette other)
private

Member Function Documentation

◆ clear()

void DomPalette::clear ( bool  clear_all = true)
private

◆ clearElementActive()

void DomPalette::clearElementActive ( )

◆ clearElementDisabled()

void DomPalette::clearElementDisabled ( )

◆ clearElementInactive()

void DomPalette::clearElementInactive ( )

◆ elementActive()

DomColorGroup* DomPalette::elementActive ( ) const
inline

Definition at line 2225 of file ui4_p.h.

2225 { return m_active; }
DomColorGroup * m_active
Definition: ui4_p.h:2250

◆ elementDisabled()

DomColorGroup* DomPalette::elementDisabled ( ) const
inline

Definition at line 2237 of file ui4_p.h.

2237 { return m_disabled; }
DomColorGroup * m_disabled
Definition: ui4_p.h:2252

◆ elementInactive()

DomColorGroup* DomPalette::elementInactive ( ) const
inline

Definition at line 2231 of file ui4_p.h.

2231 { return m_inactive; }
DomColorGroup * m_inactive
Definition: ui4_p.h:2251

◆ hasElementActive()

bool DomPalette::hasElementActive ( ) const
inline

Definition at line 2228 of file ui4_p.h.

2228 { return m_children & Active; }
uint m_children
Definition: ui4_p.h:2249

◆ hasElementDisabled()

bool DomPalette::hasElementDisabled ( ) const
inline

Definition at line 2240 of file ui4_p.h.

2240 { return m_children & Disabled; }

◆ hasElementInactive()

bool DomPalette::hasElementInactive ( ) const
inline

Definition at line 2234 of file ui4_p.h.

2234 { return m_children & Inactive; }

◆ operator=()

void DomPalette::operator= ( const DomPalette other)
private

◆ read()

void DomPalette::read ( QXmlStreamReader &  reader)

◆ setElementActive()

void DomPalette::setElementActive ( DomColorGroup a)

◆ setElementDisabled()

void DomPalette::setElementDisabled ( DomColorGroup a)

◆ setElementInactive()

void DomPalette::setElementInactive ( DomColorGroup a)

◆ setText()

void DomPalette::setText ( const QString &  s)
inline

Definition at line 2221 of file ui4_p.h.

2221 { m_text = s; }
QString m_text
Definition: ui4_p.h:2244

◆ takeElementActive()

DomColorGroup* DomPalette::takeElementActive ( )

◆ takeElementDisabled()

DomColorGroup* DomPalette::takeElementDisabled ( )

◆ takeElementInactive()

DomColorGroup* DomPalette::takeElementInactive ( )

◆ text()

QString DomPalette::text ( ) const
inline

Definition at line 2220 of file ui4_p.h.

2220 { return m_text; }

◆ write()

void DomPalette::write ( QXmlStreamWriter &  writer,
const QString &  tagName = "" 
) const

Member Data Documentation

◆ m_active

DomColorGroup* DomPalette::m_active
private

Definition at line 2250 of file ui4_p.h.

◆ m_children

uint DomPalette::m_children
private

Definition at line 2249 of file ui4_p.h.

◆ m_disabled

DomColorGroup* DomPalette::m_disabled
private

Definition at line 2252 of file ui4_p.h.

◆ m_inactive

DomColorGroup* DomPalette::m_inactive
private

Definition at line 2251 of file ui4_p.h.

◆ m_text

QString DomPalette::m_text
private

Definition at line 2244 of file ui4_p.h.


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