GSI Object Oriented Online Offline (Go4) GO4-6.4.0
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 SetContourLevels (int nlvl)
 
virtual void SetNamedPalette (int i)
 
virtual void SetPadColor ()
 
virtual void SetPalette (int t)
 

Public Member Functions

 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.
 

Protected Member Functions

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.
 
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()

Member Function Documentation

◆ CodePalette()

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().

◆ DecodePalette()

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().

◆ panelSlot

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

◆ RefreshPaletteText()

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().

◆ SetContourLevels

void TGo4Style::SetContourLevels ( int nlvl)
virtualslot

◆ SetNamedPalette

void TGo4Style::SetNamedPalette ( int i)
virtualslot

Definition at line 169 of file TGo4Style.cpp.

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

Referenced by TGo4Style().

◆ SetPadColor

void TGo4Style::SetPadColor ( )
virtualslot

◆ SetPalette

void TGo4Style::SetPalette ( int t)
virtualslot

◆ SetPaletteRange()

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().

Field Documentation

◆ fbMenuLock

bool TGo4Style::fbMenuLock {false}
protected

Definition at line 128 of file TGo4Style.h.

Referenced by TGo4Style(), 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: