Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/palettedocker/palettedocker_dock.cpp
Context not available. | |||||
52 | #include <squeezedcombobox.h> | 52 | #include <squeezedcombobox.h> | ||
---|---|---|---|---|---|
53 | 53 | | |||
54 | #include "KisPaletteModel.h" | 54 | #include "KisPaletteModel.h" | ||
55 | #include "KisColorsetChooser.h" | | |||
56 | #include "ui_wdgpalettedock.h" | 55 | #include "ui_wdgpalettedock.h" | ||
57 | #include "kis_palette_delegate.h" | 56 | #include "kis_palette_delegate.h" | ||
58 | #include "kis_palette_view.h" | 57 | #include "kis_palette_view.h" | ||
58 | #include <KisColorsetChooser.h> | ||||
59 | 59 | | |||
60 | PaletteDockerDock::PaletteDockerDock( ) | 60 | PaletteDockerDock::PaletteDockerDock( ) | ||
61 | : QDockWidget(i18n("Palette")) | 61 | : QDockWidget(i18n("Palette")) | ||
Context not available. | |||||
93 | m_serverAdapter->connectToResourceServer(); | 93 | m_serverAdapter->connectToResourceServer(); | ||
94 | rServer->addObserver(this); | 94 | rServer->addObserver(this); | ||
95 | 95 | | |||
96 | m_colorSetChooser = new KisColorsetChooser(this); | 96 | m_paletteChooser = new KisColorsetChooser(this); | ||
97 | connect(m_colorSetChooser, SIGNAL(paletteSelected(KoColorSet*)), this, SLOT(setColorSet(KoColorSet*))); | 97 | connect(m_paletteChooser, SIGNAL(paletteSelected(KoColorSet*)), this, SLOT(setColorSet(KoColorSet*))); | ||
98 | 98 | | |||
99 | m_wdgPaletteDock->bnColorSets->setIcon(KisIconUtils::loadIcon("hi16-palette_library")); | 99 | m_wdgPaletteDock->bnColorSets->setIcon(KisIconUtils::loadIcon("hi16-palette_library")); | ||
100 | m_wdgPaletteDock->bnColorSets->setToolTip(i18n("Choose palette")); | 100 | m_wdgPaletteDock->bnColorSets->setToolTip(i18n("Choose palette")); | ||
101 | m_wdgPaletteDock->bnColorSets->setPopupWidget(m_colorSetChooser); | 101 | m_wdgPaletteDock->bnColorSets->setPopupWidget(m_paletteChooser); | ||
102 | 102 | | |||
103 | connect(m_wdgPaletteDock->cmbNameList, SIGNAL(currentIndexChanged(int)), this, SLOT(setColorFromNameList(int))); | 103 | connect(m_wdgPaletteDock->cmbNameList, SIGNAL(currentIndexChanged(int)), this, SLOT(setColorFromNameList(int))); | ||
104 | KisConfig cfg; | 104 | KisConfig cfg; | ||
Context not available. |