Introduce NetworkModelActionProvider
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 30 Nov 2008 04:17:02 +0000 (05:17 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 30 Nov 2008 04:24:41 +0000 (05:24 +0100)
commita680b6fd6d62e39f9bc197ad856d9b438f179ba4
tree46a62711a348148455ba5be347c696b5604011cb
parent1d87ccad2d5ed6c93523f5a65756aed639c233c5
Introduce NetworkModelActionProvider

This is a central place for requesting a list of actions for any given (set of) NetworkModel items.
This allows us to create context menus easily in various places without duplicating code. Also,
NetworkModelActionProvider handles whatever it can internally, so there is no need to handle most
context menu actions elsewhere. This is not fully done yet; so far, we only provide BufferItem and NetworkItem
actions.
src/uisupport/CMakeLists.txt
src/uisupport/networkmodelactionprovider.cpp [new file with mode: 0644]
src/uisupport/networkmodelactionprovider.h [new file with mode: 0644]