GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4Style Class Reference

#include <TGo4Style.h>

Inheritance diagram for TGo4Style:

Public Slots

virtual void panelSlot (TGo4ViewPanel *panel, TPad *pad, int signalid)
virtual void panelSlot (TGo4ViewPanel *panel, TPad *pad, int signalid)
virtual void SetContourLevels (int nlvl)
virtual void SetContourLevels (int nlvl)
virtual void SetNamedPalette (int i)
virtual void SetNamedPalette (int i)
virtual void SetPadColor ()
virtual void SetPadColor ()
virtual void SetPalette (int t)
virtual void SetPalette (int t)

Public Member Functions

 TGo4Style (QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags fl=Qt::Widget)
 TGo4Style (QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags fl=Qt::Widget)
virtual void SetPaletteRange (int min, int def, int max)
 Set default palette and minimum maximum indices.
virtual void SetPaletteRange (int min, int def, int max)
 Set default palette and minimum maximum indices.

Protected Member Functions

Go4_Palette_t CodePalette (int i)
 Transform ROOT palette index in named palette combobox index.
Go4_Palette_t CodePalette (int i)
 Transform ROOT palette index in named palette combobox index.
int DecodePalette (Go4_Palette_t key)
 Transform combobox index to ROOT palette index.
int DecodePalette (Go4_Palette_t key)
 Transform combobox index to ROOT palette index.
void RefreshPaletteText (int min, int max)
 Change selection menu entries according to index range.
void RefreshPaletteText (int min, int max)
 Change selection menu entries according to index range.

Protected Attributes

bool fbMenuLock {false}
bool fbSettingPanelData {false}

Detailed Description

Definition at line 99 of file TGo4Style.h.

Constructor & Destructor Documentation

◆ TGo4Style() [1/2]

◆ TGo4Style() [2/2]

TGo4Style::TGo4Style ( QWidget * parent = nullptr,
const char * name = nullptr,
Qt::WindowFlags fl = Qt::Widget )

Member Function Documentation

◆ CodePalette() [1/2]

Go4_Palette_t TGo4Style::CodePalette ( int i)
protected

Transform ROOT palette index in named palette combobox index.

Definition at line 191 of file TGo4Style.cpp.

References Go4_Default, Go4_None, GO4NAMEDPAL_MAX, and GO4NAMEDPAL_MIN.

Referenced by SetNamedPalette(), and SetPalette().

◆ CodePalette() [2/2]

Go4_Palette_t TGo4Style::CodePalette ( int i)
protected

Transform ROOT palette index in named palette combobox index.

◆ DecodePalette() [1/2]

int TGo4Style::DecodePalette ( Go4_Palette_t key)
protected

Transform combobox index to ROOT palette index.

Definition at line 203 of file TGo4Style.cpp.

References Go4_Default, Go4_None, and GO4NAMEDPAL_MIN.

Referenced by RefreshPaletteText(), and SetNamedPalette().

◆ DecodePalette() [2/2]

int TGo4Style::DecodePalette ( Go4_Palette_t key)
protected

Transform combobox index to ROOT palette index.

◆ panelSlot [1/2]

void TGo4Style::panelSlot ( TGo4ViewPanel * panel,
TPad * pad,
int signalid )
virtualslot

◆ panelSlot [2/2]

virtual void TGo4Style::panelSlot ( TGo4ViewPanel * panel,
TPad * pad,
int signalid )
virtualslot

◆ RefreshPaletteText() [1/2]

void TGo4Style::RefreshPaletteText ( int min,
int max )
protected

Change selection menu entries according to index range.

Definition at line 129 of file TGo4Style.cpp.

References DecodePalette(), GO4NAMEDPAL_MAX, and GO4NAMEDPAL_MIN.

Referenced by SetPaletteRange().

◆ RefreshPaletteText() [2/2]

void TGo4Style::RefreshPaletteText ( int min,
int max )
protected

Change selection menu entries according to index range.

References fbMenuLock.

◆ SetContourLevels [1/2]

void TGo4Style::SetContourLevels ( int nlvl)
virtualslot

◆ SetContourLevels [2/2]

virtual void TGo4Style::SetContourLevels ( int nlvl)
virtualslot

◆ SetNamedPalette [1/2]

void TGo4Style::SetNamedPalette ( int i)
virtualslot

Definition at line 169 of file TGo4Style.cpp.

References CodePalette(), DecodePalette(), and fbMenuLock.

Referenced by TGo4Style().

◆ SetNamedPalette [2/2]

virtual void TGo4Style::SetNamedPalette ( int i)
virtualslot

◆ SetPadColor [1/2]

void TGo4Style::SetPadColor ( )
virtualslot

◆ SetPadColor [2/2]

virtual void TGo4Style::SetPadColor ( )
virtualslot

◆ SetPalette [1/2]

void TGo4Style::SetPalette ( int t)
virtualslot

◆ SetPalette [2/2]

virtual void TGo4Style::SetPalette ( int t)
virtualslot

◆ SetPaletteRange() [1/2]

void TGo4Style::SetPaletteRange ( int min,
int def,
int max )
virtual

Set default palette and minimum maximum indices.

Definition at line 117 of file TGo4Style.cpp.

References RefreshPaletteText(), and SetPalette().

Referenced by TGo4Style().

◆ SetPaletteRange() [2/2]

virtual void TGo4Style::SetPaletteRange ( int min,
int def,
int max )
virtual

Set default palette and minimum maximum indices.

Field Documentation

◆ fbMenuLock

bool TGo4Style::fbMenuLock {false}
protected

Definition at line 128 of file TGo4Style.h.

Referenced by TGo4Style(), RefreshPaletteText(), SetNamedPalette(), and SetPalette().

◆ fbSettingPanelData

bool TGo4Style::fbSettingPanelData {false}
protected

Definition at line 129 of file TGo4Style.h.

Referenced by TGo4Style(), panelSlot(), and SetContourLevels().


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