|
|
|
//
|
|
|
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
|
|
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
|
|
|
// may also apply
|
|
|
|
|
|
|
|
|
|
|
|
// Generated by preSip
|
|
|
|
// module tdeui version KDE 3.5.3
|
|
|
|
|
|
|
|
|
|
|
|
// This software is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of
|
|
|
|
// the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public
|
|
|
|
// License along with this library; see the file COPYING.
|
|
|
|
// If not, write to the Free Software Foundation, Inc.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
|
|
|
|
class KHSSelector : KXYSelector
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcolordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
KHSSelector (TQWidget* /TransferThis/ = 0, const char* = 0);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void drawPalette (TQPixmap*);
|
|
|
|
virtual void resizeEvent (TQResizeEvent*);
|
|
|
|
virtual void drawContents (TQPainter*);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//igx virtual void virtual_hook (int, void*);
|
|
|
|
|
|
|
|
}; // class KHSSelector
|
|
|
|
|
|
|
|
|
|
|
|
class KValueSelector : KSelector
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcolordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
KValueSelector (TQWidget* /TransferThis/ = 0, const char* = 0);
|
|
|
|
KValueSelector (Orientation, TQWidget* /TransferThis/ = 0, const char* = 0);
|
|
|
|
int hue () const;
|
|
|
|
void setHue (int);
|
|
|
|
int saturation () const;
|
|
|
|
void setSaturation (int);
|
|
|
|
void updateContents ();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void drawPalette (TQPixmap*);
|
|
|
|
virtual void resizeEvent (TQResizeEvent*);
|
|
|
|
virtual void drawContents (TQPainter*);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//igx virtual void virtual_hook (int, void*);
|
|
|
|
|
|
|
|
}; // class KValueSelector
|
|
|
|
|
|
|
|
|
|
|
|
class KColor : TQColor
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcolordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
KColor ();
|
|
|
|
KColor (const KColor&);
|
|
|
|
KColor (const TQColor&);
|
|
|
|
|
|
|
|
%If ( KDE_3_1_4 - )
|
|
|
|
bool operator == (const KColor&) const;
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setHsv (int, int, int);
|
|
|
|
void setRgb (int, int, int);
|
|
|
|
void rgb (int*, int*, int*);
|
|
|
|
void hsv (int*, int*, int*);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
}; // class KColor
|
|
|
|
|
|
|
|
|
|
|
|
class KPaletteTable : TQWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcolordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
KPaletteTable (TQWidget* /TransferThis/, int = 210, int = 16);
|
|
|
|
void addToCustomColors (const TQColor&);
|
|
|
|
void addToRecentColors (const TQColor&);
|
|
|
|
TQString palette ();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setPalette (const TQString&);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void colorSelected (const TQColor&, const TQString&);
|
|
|
|
void colorDoubleClicked (const TQColor&, const TQString&);
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void slotColorCellSelected (int);
|
|
|
|
void slotColorCellDoubleClicked (int);
|
|
|
|
void slotColorTextSelected (const TQString&);
|
|
|
|
void slotSetPalette (const TQString&);
|
|
|
|
void slotShowNamedColorReadError ();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void readNamedColor ();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//igx virtual void virtual_hook (int, void*);
|
|
|
|
|
|
|
|
}; // class KPaletteTable
|
|
|
|
|
|
|
|
|
|
|
|
class KColorCells : TQGridView
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcolordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
KColorCells (TQWidget* /TransferThis/, int, int);
|
|
|
|
void setColor (int, const TQColor&);
|
|
|
|
TQColor color (int) const;
|
|
|
|
int numCells () const;
|
|
|
|
void setShading (bool);
|
|
|
|
void setAcceptDrags (bool);
|
|
|
|
int getSelected () const;
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void colorSelected (int);
|
|
|
|
void colorDoubleClicked (int);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void paintCell (TQPainter*, int, int);
|
|
|
|
virtual void resizeEvent (TQResizeEvent*);
|
|
|
|
virtual void mouseReleaseEvent (TQMouseEvent*);
|
|
|
|
virtual void mousePressEvent (TQMouseEvent*);
|
|
|
|
virtual void mouseMoveEvent (TQMouseEvent*);
|
|
|
|
virtual void dragEnterEvent (TQDragEnterEvent*);
|
|
|
|
virtual void dropEvent (TQDropEvent*);
|
|
|
|
virtual void mouseDoubleClickEvent (TQMouseEvent*);
|
|
|
|
int posToCell (const TQPoint&, bool = 0);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//igx virtual void virtual_hook (int, void*);
|
|
|
|
|
|
|
|
}; // class KColorCells
|
|
|
|
|
|
|
|
|
|
|
|
class KColorPatch : TQFrame
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcolordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
KColorPatch (TQWidget* /TransferThis/);
|
|
|
|
void setColor (const TQColor&);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void colorChanged (const TQColor&);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void drawContents (TQPainter*);
|
|
|
|
virtual void mouseMoveEvent (TQMouseEvent*);
|
|
|
|
virtual void dragEnterEvent (TQDragEnterEvent*);
|
|
|
|
virtual void dropEvent (TQDropEvent*);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//igx virtual void virtual_hook (int, void*);
|
|
|
|
|
|
|
|
}; // class KColorPatch
|
|
|
|
|
|
|
|
|
|
|
|
class KColorDialog : KDialogBase
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcolordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
KColorDialog (TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0);
|
|
|
|
TQColor color ();
|
|
|
|
static int getColor (TQColor&, TQWidget* /Transfer/ = 0);
|
|
|
|
static int getColor (TQColor&, const TQColor&, TQWidget* /Transfer/ = 0);
|
|
|
|
static TQColor grabColor (const TQPoint&);
|
|
|
|
void setDefaultColor (const TQColor&);
|
|
|
|
TQColor defaultColor () const;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setColor (const TQColor&);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void colorSelected (const TQColor&);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void mouseReleaseEvent (TQMouseEvent*);
|
|
|
|
virtual void keyPressEvent (TQKeyEvent*);
|
|
|
|
|
|
|
|
%If ( KDE_3_2_0 - )
|
|
|
|
virtual bool eventFilter (TQObject*, TQEvent*);
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//igx virtual void virtual_hook (int, void*);
|
|
|
|
|
|
|
|
}; // class KColorDialog
|
|
|
|
|