Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleaned object layout

  • Loading branch information...
commit af80726c56f79e0f0a30fc15b351f2f80d671128 1 parent 67d3d0c
Markus Fisch authored
Showing with 13 additions and 11 deletions.
  1. +2 −2 src/MenuItem.cpp
  2. +11 −9 src/MenuItem.h
4 src/MenuItem.cpp
View
@@ -6,7 +6,7 @@
* `-;_ . -´ `.`.
* `._' ´
*
- * Copyright (c) 2007-2010 Markus Fisch <mf@markusfisch.de>
+ * Copyright (c) 2007-2012 Markus Fisch <mf@markusfisch.de>
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
@@ -16,7 +16,7 @@
using namespace PieDock;
/**
- * Create a new, but iconless, menu item
+ * Create a new menu item without pre-defined icon
*
* @param t - title
* @param c - command
20 src/MenuItem.h
View
@@ -6,7 +6,7 @@
* `-;_ . -´ `.`.
* `._' ´
*
- * Copyright (c) 2007-2010 Markus Fisch <mf@markusfisch.de>
+ * Copyright (c) 2007-2012 Markus Fisch <mf@markusfisch.de>
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
@@ -30,14 +30,16 @@ namespace PieDock
MenuItem( std::string, std::string, bool = true );
MenuItem( Icon * );
virtual ~MenuItem() {}
- inline const std::string &getTitle() const { return title; }
- inline void setTitle( std::string t ) { title = t; }
- inline const std::string &getCommand() const { return command; }
- inline void setCommand( std::string c ) { command = c; }
- inline Icon *getIcon() const { return icon; }
- inline void setIcon( Icon *i ) { icon = i; }
- inline const bool isSticky() const { return sticky; }
- inline void makeSticky() { sticky = true; }
+ virtual inline const std::string &getTitle() const {
+ return title; }
+ virtual inline void setTitle( std::string t ) { title = t; }
+ virtual inline const std::string &getCommand() const {
+ return command; }
+ virtual inline void setCommand( std::string c ) { command = c; }
+ virtual inline Icon *getIcon() const { return icon; }
+ virtual inline void setIcon( Icon *i ) { icon = i; }
+ virtual inline const bool isSticky() const { return sticky; }
+ virtual inline void makeSticky() { sticky = true; }
private:
std::string title;
Please sign in to comment.
Something went wrong with that request. Please try again.