lib

KColorAction Class Reference

#include <kcoloractions.h>

Inheritance diagram for KColorAction:
TDEAction

Public Types

enum  Type { TextColor , FrameColor , BackgroundColor }
 
- Public Types inherited from TDEAction
enum  ActivationReason
 

Public Member Functions

 KColorAction (const TQString &text, int accel=0, TQObject *parent=0, const char *name=0)
 
 KColorAction (const TQString &text, int accel, TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 
 KColorAction (TQObject *parent=0, const char *name=0)
 
 KColorAction (const TQString &text, Type type, int accel=0, TQObject *parent=0, const char *name=0)
 
 KColorAction (const TQString &text, Type type, int accel, TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 
virtual void setColor (const TQColor &c)
 
TQColor color () const
 
virtual void setType (Type type)
 
Type type () const
 
- Public Member Functions inherited from TDEAction
 TDEAction (const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name)
 
 TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name)
 
 TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name)
 
 TDEAction (const KGuiItem &item, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name)
 
 TDEAction (const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
 
 TDEAction (const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 
 TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
 
 TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
 
 TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 
 TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 
 TDEAction (TQObject *parent=0, const char *name=0)
 
virtual int plug (TQWidget *widget, int index=-1)
 
virtual void plugAccel (TDEAccel *accel, bool configurable=true) TDE_DEPRECATED
 
virtual void unplug (TQWidget *w)
 
virtual void unplugAccel () TDE_DEPRECATED
 
virtual bool isPlugged () const
 
bool isPlugged (const TQWidget *container) const
 
virtual bool isPlugged (const TQWidget *container, int id) const
 
virtual bool isPlugged (const TQWidget *container, const TQWidget *_representative) const
 
uint tdeaccelCount () const
 
virtual TQString text () const
 
virtual const TDEShortcut & shortcut () const
 
virtual const TDEShortcut & shortcutDefault () const
 
virtual bool isEnabled () const
 
virtual bool isShortcutConfigurable () const
 
virtual TQString whatsThis () const
 
virtual TQString toolTip () const
 
virtual TQIconSet iconSet (TDEIcon::Group group, int size=0) const
 
TQIconSet iconSet () const
 
int accel () const TDE_DEPRECATED
 
void setAccel (int key) TDE_DEPRECATED
 
void setStatusText (const TQString &text)
 
int menuId (int i)
 

Additional Inherited Members

- Public Slots inherited from TDEAction
virtual void setText (const TQString &text)
 
virtual bool setShortcut (const TDEShortcut &)
 
virtual void setWhatsThis (const TQString &text)
 
virtual void setToolTip (const TQString &)
 
virtual void setIconSet (const TQIconSet &iconSet)
 
virtual void setEnabled (bool enable)
 
void setDisabled (bool disable)
 
virtual void setShortcutConfigurable (bool)
 
virtual void activate ()
 
- Signals inherited from TDEAction
void activated ()
 
void activated (TDEAction::ActivationReason reason, TQt::ButtonState state)
 
- Static Public Member Functions inherited from TDEAction
static int getToolButtonID ()
 
- Protected Slots inherited from TDEAction
void slotPopupActivated ()
 
void slotButtonClicked (int, TQt::ButtonState state)
 
- Protected Member Functions inherited from TDEAction
const KGuiItem & guiItem () const
 

Detailed Description

An action whose pixmap is automatically generated from a color.

It knows three types of pixmaps: text color, frame color and background color

Definition at line 29 of file kcoloractions.h.

Member Enumeration Documentation

◆ Type

enum KColorAction::Type

Definition at line 35 of file kcoloractions.h.

Constructor & Destructor Documentation

◆ KColorAction() [1/5]

KColorAction::KColorAction ( const TQString &  text,
int  accel = 0,
TQObject *  parent = 0,
const char *  name = 0 
)

Definition at line 31 of file kcoloractions.cpp.

◆ KColorAction() [2/5]

KColorAction::KColorAction ( const TQString &  text,
int  accel,
TQObject *  receiver,
const char *  slot,
TQObject *  parent,
const char *  name = 0 
)

Definition at line 39 of file kcoloractions.cpp.

◆ KColorAction() [3/5]

KColorAction::KColorAction ( TQObject *  parent = 0,
const char *  name = 0 
)

Definition at line 65 of file kcoloractions.cpp.

◆ KColorAction() [4/5]

KColorAction::KColorAction ( const TQString &  text,
Type  type,
int  accel = 0,
TQObject *  parent = 0,
const char *  name = 0 
)

Definition at line 48 of file kcoloractions.cpp.

◆ KColorAction() [5/5]

KColorAction::KColorAction ( const TQString &  text,
Type  type,
int  accel,
TQObject *  receiver,
const char *  slot,
TQObject *  parent,
const char *  name = 0 
)

Definition at line 56 of file kcoloractions.cpp.

Member Function Documentation

◆ color()

TQColor KColorAction::color ( ) const

Definition at line 81 of file kcoloractions.cpp.

◆ setColor()

void KColorAction::setColor ( const TQColor &  c)
virtual

Definition at line 72 of file kcoloractions.cpp.

◆ setType()

void KColorAction::setType ( Type  type)
virtual

Definition at line 86 of file kcoloractions.cpp.

◆ type()

KColorAction::Type KColorAction::type ( ) const

Definition at line 95 of file kcoloractions.cpp.


The documentation for this class was generated from the following files: