org.kde.koala
Interface KToolBarSignals


public interface KToolBarSignals


Method Summary
 void clicked(int id)
          Emitted when button id is clicked.
 void doubleClicked(int id)
          Emitted when button id is double-clicked.
 void highlighted(int id)
          This signal is emitted when item id gets highlighted/unhighlighted (i.e when mouse enters/exits).
 void highlighted(int id, boolean isHighlighted)
          This signal is emitted when item id gets highlighted/unhighlighted (i.e when mouse enters/exits).
 void modechange()
          This signal is emitted when toolbar detects changing of following parameters: highlighting, button-size, button-mode.
 void moved(int arg1)
          Emitted when toolbar changes position, or when an item is removed from toolbar.
 void pressed(int arg1)
          Emitted when button id is pressed.
 void released(int arg1)
          Emits when button id is released.
 void toggled(int arg1)
          Emitted when a toggle button changes state.
 void toolbarDestroyed()
          This signal is emitted when the toolbar is getting deleted, and before ~KToolbar finishes (so it's still time to remove widgets from the toolbar).
 

Method Detail

clicked

void clicked(int id)
Emitted when button id is clicked.


doubleClicked

void doubleClicked(int id)
Emitted when button id is double-clicked. Note: you will always recive two clicked() , pressed() and released() signals. There is no way to avoid it - at least no easy way. If you need to resolve this all you can do is set up timers which wait for QApplication.doubleClickInterval() to expire. If in that time you don't get this signal, you may belive that button was only clicked and not double-clicked. And please note that butons with popup menus do not emit this signal, but those with delayed popup do.


pressed

void pressed(int arg1)
Emitted when button id is pressed.


released

void released(int arg1)
Emits when button id is released.


toggled

void toggled(int arg1)
Emitted when a toggle button changes state. Emitted also if you change state with setButton() or toggleButton() If you make a button normal again, with setToggle(false), this signal won't be emitted.


highlighted

void highlighted(int id,
                 boolean isHighlighted)
This signal is emitted when item id gets highlighted/unhighlighted (i.e when mouse enters/exits). Note that this signal is emitted from all buttons (normal, disabled and toggle) even when there is no visible change in buttons (i.e., buttons do not raise when mouse enters). The parameter isHighlighted is true when mouse enters and false when mouse exits.


highlighted

void highlighted(int id)
This signal is emitted when item id gets highlighted/unhighlighted (i.e when mouse enters/exits). Note that this signal is emitted from all buttons (normal, disabled and toggle) even when there is no visible change in buttons (i.e., buttons do not raise when mouse enters).


moved

void moved(int arg1)
Emitted when toolbar changes position, or when an item is removed from toolbar. If you subclass KMainWindow and reimplement KMainWindow.resizeEvent() be sure to connect to this signal. Note: You can connect this signal to a slot that doesn't take parameter.


modechange

void modechange()
This signal is emitted when toolbar detects changing of following parameters: highlighting, button-size, button-mode. This signal is internal, aimed to buttons.


toolbarDestroyed

void toolbarDestroyed()
This signal is emitted when the toolbar is getting deleted, and before ~KToolbar finishes (so it's still time to remove widgets from the toolbar). Used by KWidgetAction.