tdeactionclasses.cpp
231 static_cast<TDEToolBar*>( w )->setButtonIconSet( itemId( id ), gui->iconSet( TDEIcon::Toolbar ) );
330 const_cast<TDEToolBarButton *>( static_cast<const TDEToolBarButton *>( TQT_TQWIDGET_CONST(senderObj) ) )->on( true );
510 d->m_menu->insertItem( d->makeMenuText( text ), this, TQT_SLOT( slotActivated( int ) ), 0, id );
643 kdDebug(129) << "TDESelectAction::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
802 kdDebug(129) << "TDESelectAction::slotActivated currentItem=" << currentItem() << " currentText=" << currentText() << endl;
1104 if ( url.isLocalFile() && !TDEGlobal::dirs()->relativeLocation("tmp", url.path()).startsWith("/"))
1438 TDEFontAction::TDEFontAction( uint fontListCriteria, const TQString& text, const TQString& pix,
1798 kdDebug(129) << "TDEActionMenu::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
1953 bar->insertButton( iconSet().pixmap(), id_, TQT_SIGNAL( buttonClicked(int, TQt::ButtonState) ), this,
2031 TDEMainWindow * mw = tqt_dynamic_cast<TDEMainWindow *>(tl); // try to see if it's a tdemainwindow
2176 connect( toolBar, TQT_SIGNAL( toolbarDestroyed() ), this, TQT_SLOT( slotToolbarDestroyed() ) );
2190 disconnect( toolBar, TQT_SIGNAL( toolbarDestroyed() ), this, TQT_SLOT( slotToolbarDestroyed() ) );
2198 //Q_ASSERT( m_widget ); // When exiting the app the widget could be destroyed before the toolbar.
2336 TQString text = KStringHandler::cEmSqueeze((*it).simplifyWhiteSpace(), m_popup->fontMetrics(), 20);
Remove this class in KDE-4.0. It doesn't add anything to TDESelectAction.
Definition: tdeactionclasses.h:585
virtual void setText(const TQString &text)
Sets the text associated with this action.
Definition: tdeaction.cpp:879
void urlSelected(const KURL &url)
This signal gets emited when the user selects an URL.
TDEToolBar * toolBar(const char *name=0)
Returns a pointer to the toolbar with the specified name.
Definition: tdemainwindow.cpp:1160
void remove(const KKeySequence &keySeq)
virtual void setItems(const TQStringList &lst)
Sets the items to be displayed in this action You need to call this.
Definition: tdeactionclasses.cpp:551
static TDEStandardDirs * dirs()
virtual void setExclusiveGroup(const TQString &name)
Defines which "exclusive group" this action is part of.
Definition: tdeactionclasses.cpp:249
TQString name(StdAccel id)
void slotButtonClicked(int, TQt::ButtonState state)
Definition: tdeaction.cpp:1156
void setStickyMenu(bool sticky)
If set to true, this action will create a sticky popup menu when plugged in a TDEToolbar.
Definition: tdeactionclasses.cpp:1790
This action is a normal action everywhere, except in a toolbar where it also has a popupmenu (optionn...
Definition: tdeactionclasses.h:1095
virtual void unplug(TQWidget *w)
"Unplug" or remove this action from a given widget.
Definition: tdeaction.cpp:745
int insertCombo(const TQStringList &list, int id, bool writable, const char *signal, const TQObject *receiver, const char *slot, bool enabled=true, const TQString &tooltiptext=TQString::null, int size=70, int index=-1, TQComboBox::Policy policy=TQComboBox::AtBottom)
Inserts a KComboBox with list.
Definition: tdetoolbar.cpp:352
bool stickyMenu() const
Returns true if this action creates a sticky popup menu.
Definition: tdeactionclasses.cpp:1786
Small
virtual TQString currentText() const
Returns the text of the currently selected item.
Definition: tdeactionclasses.cpp:571
bool isAttached() const
KWidgetAction(TQWidget *widget, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name)
Create an action that will embed widget into a toolbar when plugged.
Definition: tdeactionclasses.cpp:2117
void writePathEntry(const TQString &pKey, const TQString &path, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
bool delayed() const
Returns true if this action creates a delayed popup menu when plugged in a TDEToolbar.
Definition: tdeactionclasses.cpp:1924
void setToggle(int id, bool flag=true)
Turns button into a toggle button if flag is true.
Definition: tdetoolbar.cpp:513
const TDEShortcut & cut()
kdbgstream kdWarning(int area=0)
virtual void setEditable(bool)
When this action is plugged into a toolbar, it creates a combobox.
Definition: tdeactionclasses.cpp:807
int insertSeparator(int index=-1, int id=-1)
Inserts a separator into the toolbar with the given id.
Definition: tdetoolbar.cpp:396
bool isApplicationRegistered(const TQCString &remApp)
void setWindow(TQWidget *window)
Sets the window that will be related to this action.
Definition: tdeactionclasses.cpp:2080
void setDelayedPopup(int id, TQPopupMenu *_popup, bool toggle=false)
Sets a delayed popup for a button.
Definition: tdetoolbar.cpp:497
Toolbar
bool isValid() const
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeactionclasses.cpp:639
kndbgstream & endl(kndbgstream &s)
static TQString cEmSqueeze(const TQString &name, const TQFontMetrics &fontMetrics, uint maxlen=30)
void setMenuAccelsEnabled(bool b)
Sets whether any occurrence of the ampersand character ( & ) in items should be interpreted as keyboa...
Definition: tdeactionclasses.cpp:827
void setCheckedState(const KGuiItem &checkedItem)
Defines the text (and icon, tooltip, whatsthis) that should be displayed instead of the normal text,...
Definition: tdeactionclasses.cpp:259
void setDelayed(bool delayed)
If set to true, this action will create a delayed popup menu when plugged in a TDEToolbar.
Definition: tdeactionclasses.cpp:1928
void loadEntries(TDEConfig *config, TQString groupname=TQString::null)
Loads the recent files entries from a given TDEConfig object.
Definition: tdeactionclasses.cpp:1167
virtual void setCurrentItem(int index)
Sets the currently checked item.
Definition: tdeactionclasses.cpp:913
void setStickyMenu(bool sticky)
If set to true, this action will create a sticky popup menu when plugged in a TDEToolbar.
Definition: tdeactionclasses.cpp:1936
virtual void setComboWidth(int width)
When this action is plugged into a toolbar, it creates a combobox.
Definition: tdeactionclasses.cpp:467
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeaction.cpp:628
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeactionclasses.cpp:2019
TDEToggleToolBarAction(const char *toolBarName, const TQString &text, TDEActionCollection *parent, const char *name)
Create a TDEToggleToolbarAction that manages the toolbar named toolBarName.
Definition: tdeactionclasses.cpp:2000
bool isLocalFile() const
kdbgstream kdDebug(int area=0)
bool deleteGroup(const TQString &group, bool bDeep=true, bool bGlobal=false)
TQPopupMenu * popupMenu() const
Returns a pointer to the popup menu used by this action.
Definition: tdeactionclasses.cpp:486
TQWidget * widget()
Returns the widget associated with this action.
Definition: tdeactionclasses.h:1328
void setMaxComboViewCount(int n)
Sets the maximum items that are visible at once if the action is a combobox, that is the number of it...
Definition: tdeactionclasses.cpp:481
virtual int currentItem() const
Returns the index of the current item.
Definition: tdeactionclasses.cpp:579
TQString readPathEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
KComboBox * getCombo(int id)
Returns a pointer to the combobox with id.
Definition: tdetoolbar.cpp:613
TDEToolBarPopupAction(const TQString &text, const TQString &icon, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
Create a TDEToolBarPopupAction, with a text, an icon, an optional accelerator, parent and name.
Definition: tdeactionclasses.cpp:1883
TDESelectAction(const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
Constructs a select action with text and potential keyboard accelerator but nothing else.
Definition: tdeactionclasses.cpp:376
void setMaxItems(uint maxItems)
Sets the maximum of items in the recent files list.
Definition: tdeactionclasses.cpp:1074
TDERecentFilesAction(const TQString &text, const TDEShortcut &cut, TQObject *parent, const char *name=0, uint maxItems=10)
Definition: tdeactionclasses.cpp:947
TQString path() const
virtual TQString currentText() const
Returns the text of the currently selected item.
Definition: tdeactionclasses.cpp:923
static KURL fromPathOrURL(const TQString &text)
int insertButton(const TQString &icon, int id, bool enabled=true, const TQString &text=TQString::null, int index=-1, TDEInstance *_instance=TDEGlobal::instance())
Insert a button (a TDEToolBarButton) with a pixmap.
Definition: tdetoolbar.cpp:259
bool delayed() const
Returns true if this action creates a delayed popup menu when plugged in a TDEToolbar.
Definition: tdeactionclasses.cpp:1778
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeactionclasses.cpp:2284
TDEPopupMenu * popupMenu() const
The popup menu that is shown when clicking (some time) on the toolbar button.
Definition: tdeactionclasses.cpp:1989
TDEInstance * instance() const
The instance with which this class is associated.
Definition: tdeactioncollection.cpp:468
bool menuAccelsEnabled() const
Definition: tdeactionclasses.cpp:832
void setMixedMode(bool mode)
Controls the behavior of the clipboard history menu popup.
Definition: tdeactionclasses.cpp:2279
void setDelayed(bool _delayed)
If set to true, this action will create a delayed popup menu when plugged in a TDEToolbar.
Definition: tdeactionclasses.cpp:1782
void saveEntries(TDEConfig *config, TQString groupname=TQString::null)
Saves the current recent files entries to a given TDEConfig object.
Definition: tdeactionclasses.cpp:1212
TDEListAction(const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
Constructs a list action with text and potential keyboard accelerator but nothing else.
Definition: tdeactionclasses.cpp:847
virtual int currentItem() const
Returns the index of the current item.
Definition: tdeactionclasses.cpp:928
TDEPasteTextAction(const TQString &text, const TQString &icon, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent=0, const char *name=0)
Create a TDEPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action,...
Definition: tdeactionclasses.cpp:2259
static void getFontList(TQStringList &list, uint fontListCriteria)
Creates a list of font strings.
Definition: tdefontdialog.cpp:641
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeactionclasses.cpp:1794
virtual int comboWidth() const
When this action is plugged into a toolbar, it creates a combobox.
Definition: tdeactionclasses.cpp:599
void setRemoveAmpersandsInCombo(bool b) KDE_DEPRECATED
Definition: tdeactionclasses.cpp:817
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeactionclasses.cpp:1269
StripFileProtocol
static TDEInstance * instance()
kdbgstream kdError(int area=0)
TQStringList comboItems() const
Depending on the menuAccelsEnabled property this method will return the actions items in a way for in...
Definition: tdeactionclasses.cpp:725
TDEToggleFullScreenAction(const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, TQWidget *window, const char *name)
Create a TDEToggleFullScreenAction.
Definition: tdeactionclasses.cpp:2066
void setPopup(TQPopupMenu *p, bool unused=false)
Give this button a popup menu.
Definition: tdetoolbarbutton.cpp:365
int insertWidget(int id, int width, TQWidget *_widget, int index=-1)
Inserts a user-defined widget.
Definition: tdetoolbar.cpp:411
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeactionclasses.cpp:1940
TQString pathOrURL() const
bool stickyMenu() const
Returns true if this action creates a sticky popup menu.
Definition: tdeactionclasses.cpp:1932
TDERadioAction(const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
Constructs a radio action with text and potential keyboard accelerator but nothing else.
Definition: tdeactionclasses.cpp:273
bool removeAmpersandsInCombo() const
Definition: tdeactionclasses.cpp:822
TQString group() const
virtual bool isEditable() const
When this action is plugged into a toolbar, it creates a combobox.
Definition: tdeactionclasses.cpp:812
virtual int plug(TQWidget *widget, int index=-1)
Plug the action.
Definition: tdeactionclasses.cpp:2151
virtual bool eventFilter(TQObject *o, TQEvent *e)
Definition: tdeactionclasses.cpp:2104
void clearURLList()
Removes all entries from the recent files list.
Definition: tdeactionclasses.cpp:1160
void setGroup(const TQString &group)
TQString relativeLocation(const char *type, const TQString &absPath)
virtual void setCurrentItem(int index)
Sets the currently checked item.
Definition: tdeactionclasses.cpp:440
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeactionclasses.cpp:138
virtual bool isPlugged() const
returns whether the action is plugged into any container widget or not.
Definition: tdeaction.cpp:273
TDEToolBarButton * getButton(int id)
Returns a pointer to TDEToolBarButton.
Definition: tdetoolbar.cpp:631
TQStringList completeItems() const
Definition: tdeactionclasses.cpp:1344
void removeURL(const KURL &url)
Remove an URL from the recent files list.
Definition: tdeactionclasses.cpp:1140
TQString fileName(bool _ignore_trailing_slash_in_path=true) const
TDEToggleAction(const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
Constructs a toggle action with text and potential keyboard accelerator but nothing else.
Definition: tdeactionclasses.cpp:74
virtual void changeItem(int index, const TQString &text)
Changes the text of item.
Definition: tdeactionclasses.cpp:516
virtual void setShortcutConfigurable(bool)
Indicate whether the user may configure the action's shortcut.
Definition: tdeaction.cpp:874
uint maxItems() const
Returns the maximum of items in the recent files list.
Definition: tdeactionclasses.cpp:1069
void connectHighlight(TQWidget *container, TDEAction *action)
Call this function if you want to receive a signal whenever a TDEAction is highlighted in a menu or a...
Definition: tdeactioncollection.cpp:493
virtual TQString toolTip() const
Reimplemented for internal reasons.
Definition: tdeactionclasses.cpp:265
virtual TQString whatsThis() const
Get the What's this text for the action.
Definition: tdeaction.cpp:1039