21 #ifndef _COLOR_LISTBOX_H_
22 #define _COLOR_LISTBOX_H_
24 #include <tdelistbox.h>
26 class ColorListBox : public TDEListBox
32 ColorListBox( TQWidget *parent=0, const char * name=0, WFlags f=0 );
33 void setColor( uint index, const TQColor &color );
34 TQColor color( uint index ) const;
39 virtual void setEnabled( bool state );
42 void dragEnterEvent( TQDragEnterEvent *e );
43 void dragLeaveEvent( TQDragLeaveEvent *e );
44 void dragMoveEvent( TQDragMoveEvent *e );
45 void dropEvent( TQDropEvent *e );
48 void newColor( int index );
51 int mCurrentOnDragEnter;
56 class ColorListItem : public TQListBoxItem
59 ColorListItem( const TQString &text, const TQColor &color=TQt::black );
60 const TQColor &color( void );
61 void setColor( const TQColor &color );
64 virtual void paint( TQPainter * );
65 virtual int height( const TQListBox * ) const;
66 virtual int width( const TQListBox * ) const;
|