summaryrefslogtreecommitdiff
path: root/src/stamps/StampsView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-03 17:12:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-03 17:12:32 (GMT)
commit299c1da9ae6b79ddb6cc39477ad31fb1d2a3c566 (patch)
treea867e45707c6d819761782c90af00b0f6093cbcc /src/stamps/StampsView.cpp
parent838a612026c821c03e663c818d4bc9fe740febd8 (diff)
downloadpowder-299c1da9ae6b79ddb6cc39477ad31fb1d2a3c566.zip
powder-299c1da9ae6b79ddb6cc39477ad31fb1d2a3c566.tar.gz
Search and stamps scolling with mouse wheel, Esc to exit
Diffstat (limited to 'src/stamps/StampsView.cpp')
-rw-r--r--src/stamps/StampsView.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stamps/StampsView.cpp b/src/stamps/StampsView.cpp
index bddfb4f..c0d5981 100644
--- a/src/stamps/StampsView.cpp
+++ b/src/stamps/StampsView.cpp
@@ -133,6 +133,21 @@ void StampsView::NotifyStampsListChanged(StampsModel * sender)
}
}
+void StampsView::OnMouseWheel(int x, int y, int d)
+{
+ if(!d)
+ return;
+ if(d<0)
+ c->NextPage();
+ else
+ c->PrevPage();
+}
+void StampsView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt)
+{
+ if(key==KEY_ESCAPE)
+ c->Exit();
+}
+
StampsView::~StampsView() {
// TODO Auto-generated destructor stub
}