aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-22 17:03:01 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:51 +0100
commit545b8bc04c4fec252f769599af0a688a0f89d578 (patch)
treeb9ce8f6b0bf5dee7827bb88b2e6c9375c2e7097f /src/menu
parente64584cbdf9749b9f2ac78edfe1c65a576a29495 (diff)
downloadusdx-545b8bc04c4fec252f769599af0a688a0f89d578.tar.gz
usdx-545b8bc04c4fec252f769599af0a688a0f89d578.tar.xz
usdx-545b8bc04c4fec252f769599af0a688a0f89d578.zip
menu/container: added log
Diffstat (limited to '')
-rw-r--r--src/menu/container.cpp3
-rw-r--r--src/menu/container.hpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/menu/container.cpp b/src/menu/container.cpp
index d39ac736..a5519f0d 100644
--- a/src/menu/container.cpp
+++ b/src/menu/container.cpp
@@ -28,6 +28,9 @@
namespace usdx
{
+ log4cpp::Category& Container::log =
+ log4cpp::Category::getInstance("usdx.menu.container");
+
Container::Container(Container* owner)
: DrawableControl(owner)
{
diff --git a/src/menu/container.hpp b/src/menu/container.hpp
index c8f0351b..ce12ce39 100644
--- a/src/menu/container.hpp
+++ b/src/menu/container.hpp
@@ -28,6 +28,8 @@
#define CONTAINER_HPP
#include <list>
+#include <log4cpp/Category.hh>
+
#include "drawable_control.hpp"
namespace usdx
@@ -35,6 +37,8 @@ namespace usdx
class Container : public DrawableControl
{
private:
+ static log4cpp::Category& log;
+
std::list<DrawableControl*> controls;
protected: