aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/KvsObject_popupMenu.cpp
diff options
context:
space:
mode:
authorGravatar Robert Förster2012-02-29 05:33:52 +0000
committerGravatar Robert Förster2012-02-29 05:33:52 +0000
commitfd6b0a334036131c27a1c3d004db40272ce61f37 (patch)
tree30f261eae45c07389ba1ea869a01bef08eea083b /src/modules/objects/KvsObject_popupMenu.cpp
parentI previously broke the objects module, this should fix it (diff)
downloadKVIrc-fd6b0a334036131c27a1c3d004db40272ce61f37.tar.gz
KVIrc-fd6b0a334036131c27a1c3d004db40272ce61f37.tar.bz2
KVIrc-fd6b0a334036131c27a1c3d004db40272ce61f37.zip
fix some indentation which got lost in the last commit.
someone with too much free time should fix all the files to be indented correctly (right...) git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6087 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/KvsObject_popupMenu.cpp')
-rw-r--r--src/modules/objects/KvsObject_popupMenu.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/objects/KvsObject_popupMenu.cpp b/src/modules/objects/KvsObject_popupMenu.cpp
index fa1930c87..bf0987ec4 100644
--- a/src/modules/objects/KvsObject_popupMenu.cpp
+++ b/src/modules/objects/KvsObject_popupMenu.cpp
@@ -52,9 +52,9 @@
[class]widget[/class]
@description:
This widget can be used to display a popup menu.Technically, a popup menu consists of a list of menu items.[br]
- You add items with insertItem(). An item is either a string. In addition, items can have an optional icon drawn on the very left side.[br]
+ You add items with insertItem(). An item is either a string. In addition, items can have an optional icon drawn on the very left side.[br]
@functions:
- !fn: $insertItem(<text:string>,[icon_id:string])
+ !fn: $insertItem(<text:string>,[icon_id:string])
Inserts menu items into a popup menu with optional icon and return the popup identifier.
!fn: $addMenu(<popupmenu:hobject,[idx:uinteger])
Add a popupmenu.
@@ -68,7 +68,7 @@
Removes the menu item that has the identifier id.
!fn: $removeItemAt(<index:uinteger>)
Removes the menu item at position index.
- !fn: $insertSeparator(<index:uinteger>)
+ !fn: $insertSeparator(<index:uinteger>)
Inserts a separator at position index.[br]
If the index is negative the separator becomes the last menu item.
!fn: $activatedEvent(<popup_id:uinteger>)
@@ -91,11 +91,11 @@
constructor()
{
// we store the item's id for checkit in activatedEvent
- @%tile_id=@$insertItem("Tile",118)
- @%cascade_id=@$insertItem("Cascade",115)
- @$insertSeparator(3)
- @%closeactw_id=@$insertItem("Close Active Window",08)
- @%closeallw_id=@$insertItem("Close All Window",58)
+ @%tile_id=@$insertItem("Tile",118)
+ @%cascade_id=@$insertItem("Cascade",115)
+ @$insertSeparator(3)
+ @%closeactw_id=@$insertItem("Close Active Window",08)
+ @%closeallw_id=@$insertItem("Close All Window",58)
}
activatedEvent()
{
@@ -197,12 +197,12 @@ static void removeAction(int idx)
KVSO_BEGIN_REGISTERCLASS(KvsObject_popupMenu,"popupmenu","widget")
- KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,insertItem)
+ KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,insertItem)
KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,setTitle)
KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,exec)
- KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,insertSeparator)
+ KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,insertSeparator)
KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,removeItem)
- KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,addMenu)
+ KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,addMenu)
// events
KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_popupMenu,highlightedEvent)