24 #include <QColorDialog>
29 QWidget( parent, fl ), fbMenuLock(false), fbSettingPanelData(false)
31 setObjectName( name ? name :
"Go4Style");
40 PaletteComboBox->addItem(
"dummy");
42 PaletteComboBox->setItemText(
Go4_None,
"unnamed palette");
43 PaletteComboBox->setItemText(
Go4_Default,
"ClassicDefault");
44 PaletteComboBox->setItemText(
Go4_DeepSea,
"DeepSea");
48 PaletteComboBox->setItemText(
Go4_RainBow,
"RainBow");
51 PaletteComboBox->setItemText(
Go4_Bird,
"Bird");
55 PaletteComboBox->setItemText(
Go4_Ocean,
"Ocean");
57 PaletteComboBox->setItemText(
Go4_Alpine,
"Alpine");
59 PaletteComboBox->setItemText(
Go4_Army,
"Army");
61 PaletteComboBox->setItemText(
Go4_Aurora,
"Aurora");
62 PaletteComboBox->setItemText(
Go4_Avocado,
"Avocado");
63 PaletteComboBox->setItemText(
Go4_Beach,
"Beach");
67 PaletteComboBox->setItemText(
Go4_CMYK,
"CMYK");
68 PaletteComboBox->setItemText(
Go4_Candy,
"Candy");
69 PaletteComboBox->setItemText(
Go4_Cherry,
"Cherry");
70 PaletteComboBox->setItemText(
Go4_Coffee,
"Coffee");
73 PaletteComboBox->setItemText(
Go4_Fall,
"Fall");
75 PaletteComboBox->setItemText(
Go4_Fuchsia,
"Fuchsia");
79 PaletteComboBox->setItemText(
Go4_Island,
"Island");
80 PaletteComboBox->setItemText(
Go4_Lake,
"Lake");
83 PaletteComboBox->setItemText(
Go4_Mint,
"Mint");
84 PaletteComboBox->setItemText(
Go4_Neon,
"Neon");
85 PaletteComboBox->setItemText(
Go4_Pastel,
"Pastel");
86 PaletteComboBox->setItemText(
Go4_Pearl,
"Pearl");
87 PaletteComboBox->setItemText(
Go4_Pigeon,
"Pigeon");
88 PaletteComboBox->setItemText(
Go4_Plum,
"Plum");
89 PaletteComboBox->setItemText(
Go4_RedBlue,
"RedBlue");
90 PaletteComboBox->setItemText(
Go4_Rose,
"Rose");
91 PaletteComboBox->setItemText(
Go4_Rust,
"Rust");
93 PaletteComboBox->setItemText(
Go4_Sienna,
"Sienna");
94 PaletteComboBox->setItemText(
Go4_Solar,
"Solar");
97 PaletteComboBox->setItemText(
Go4_Sunset,
"Sunset");
103 PaletteComboBox->setItemText(
Go4_Cool,
"Cool");
104 PaletteComboBox->setItemText(
Go4_Copper,
"Copper");
106 PaletteComboBox->setItemText(
Go4_Viridis,
"Viridis");
118 Palette->setMinimum(min);
119 Palette->setMaximum(max);
120 Palette->setValue(def);
121 def=Palette->value();
123 gStyle->SetPalette(def);
132 const QString notavailable =
"not avail:";
137 label = PaletteComboBox->itemText(pt);
138 label.remove(notavailable);
139 if ((ix < min) || (ix > max)) {
140 label.prepend(notavailable);
142 PaletteComboBox->setItemText(pt, label);
148 QColor c = QColorDialog::getColor();
149 if (!c.isValid())
return;
150 Int_t color = TColor::GetColor(c.red(), c.green(), c.blue());
177 if(ix< Palette->minimum())
179 ix=Palette->minimum();
182 if(ix> Palette->maximum())
184 ix=Palette->maximum();
190 Palette->setValue(ix);
232 if (padopt==0)
break;
238 ContourSpin->setValue(nlvl>0 ? nlvl : 20);
virtual void SetContourLevels(int nlvl)
TGo4Style(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)
static TGo4MdiArea * Instance()
virtual void SetNamedPalette(int i)
Go4_Palette_t CodePalette(int i)
virtual void SetPalette(int t)
virtual void panelSlot(TGo4ViewPanel *panel, TPad *pad, int signalid)
virtual void SetPaletteRange(int min, int def, int max)
TGo4ViewPanel * GetActivePanel()
virtual void SetPadColor()
virtual TGo4Picture * GetPadOptions(TPad *pad)
Int_t GetHisContour() const
int DecodePalette(Go4_Palette_t key)
void getPaletteOpt(int &min, int &def, int &max)
void RefreshPaletteText(int min, int max)
virtual void ChangeDrawOption(int kind, int value, const char *drawopt)