• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kfile
 

kio/kfile

Signals | Public Member Functions | Properties | List of all members
KIconButton Class Reference

#include <kicondialog.h>

Inherits TQPushButton.

Signals

void iconChanged (TQString icon)

Public Member Functions

 KIconButton (TQWidget *parent=0L, const char *name=0L)
 KIconButton (KIconLoader *loader, TQWidget *parent, const char *name=0L)
 ~KIconButton ()
void setStrictIconSize (bool b)
bool strictIconSize () const
void setIconType (KIcon::Group group, KIcon::Context context, bool user=false)
void setIcon (const TQString &icon)
void resetIcon ()
TQString icon () const
void setIconSize (int size)
int iconSize () const

Properties

TQString icon
int iconSize
bool strictIconSize

Detailed Description

A pushbutton for choosing an icon.

Pressing on the button will open a KIconDialog for the user to select an icon. The current icon will be displayed on the button.

See Also
KIconDialog A push button that allows selection of an icon.

Definition at line 257 of file kicondialog.h.

Constructor & Destructor Documentation

KIconButton::KIconButton ( TQWidget *  parent = 0L,
const char *  name = 0L 
)

Constructs a KIconButton using the global iconloader.

Definition at line 660 of file kicondialog.cpp.

KIconButton::KIconButton ( KIconLoader *  loader,
TQWidget *  parent,
const char *  name = 0L 
)

Constructs a KIconButton using a specific KIconLoader.

Definition at line 666 of file kicondialog.cpp.

KIconButton::~KIconButton ( )

Destructs the button.

Definition at line 685 of file kicondialog.cpp.

Member Function Documentation

TQString KIconButton::icon ( ) const
inline

Returns the name of the selected icon.

Definition at line 309 of file kicondialog.h.

void KIconButton::iconChanged ( TQString  icon)
signal

Emitted when the icon has changed.

int KIconButton::iconSize ( ) const

Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.

void KIconButton::resetIcon ( )

Resets the icon (reverts to an empty button).

Definition at line 733 of file kicondialog.cpp.

void KIconButton::setIcon ( const TQString &  icon)

Sets the button's initial icon.

Definition at line 718 of file kicondialog.cpp.

void KIconButton::setIconSize ( int  size)

Sets the size of the icon to be shown / selected.

See Also
KIcon::StdSizes
iconSize

Definition at line 701 of file kicondialog.cpp.

void KIconButton::setIconType ( KIcon::Group  group,
KIcon::Context  context,
bool  user = false 
)

Sets the icon group and context.

Use KIcon::NoGroup if you want to allow icons for any group in the given context.

Definition at line 711 of file kicondialog.cpp.

void KIconButton::setStrictIconSize ( bool  b)

Sets a strict icon size policy for allowed icons.

When true, only icons of the specified group's size in setIconType are allowed, and only icons of that size will be shown in the icon dialog.

Definition at line 691 of file kicondialog.cpp.

bool KIconButton::strictIconSize ( ) const

Returns true if a strict icon size policy is set.


The documentation for this class was generated from the following files:
  • kicondialog.h
  • kicondialog.cpp

kio/kfile

Skip menu "kio/kfile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kio/kfile

Skip menu "kio/kfile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kfile by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |