File indexing completed on 2024-12-22 04:18:17

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2007 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef COLORPALETTE_H
0014 #define COLORPALETTE_H
0015 
0016 #include <QWidget>
0017 #include "ui_colorpalette.h"
0018 
0019 #include "kstwidgets_export.h"
0020 
0021 namespace Kst {
0022 
0023 class KSTWIDGETS_EXPORT ColorPalette : public QWidget, public Ui::ColorPalette 
0024 {
0025     Q_OBJECT
0026 
0027   public:
0028     explicit ColorPalette(QWidget *parent = 0);
0029     ~ColorPalette();
0030 
0031     QString selectedPalette();
0032     bool selectedPaletteDirty() const;
0033     void refresh(const QString &palette = QString());
0034     int currentPaletteIndex();
0035     void setPalette(const QString palette);
0036 
0037     void clearSelection();
0038 
0039   public slots:
0040     void updatePalette(const QString &palette = QString());
0041 
0042   Q_SIGNALS:
0043     void selectionChanged();
0044 
0045 };
0046 
0047 }
0048 #endif
0049 // vim: ts=2 sw=2 et