diff options
Diffstat (limited to 'src/LayerMenu.hh')
-rw-r--r-- | src/LayerMenu.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LayerMenu.hh b/src/LayerMenu.hh index 86d34ba..6b13179 100644 --- a/src/LayerMenu.hh +++ b/src/LayerMenu.hh | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: LayerMenu.hh,v 1.3 2003/05/07 11:30:28 fluxgen Exp $ | 23 | // $Id: LayerMenu.hh,v 1.4 2003/05/15 11:17:27 fluxgen Exp $ |
24 | 24 | ||
25 | #ifndef LAYERMENU_HH | 25 | #ifndef LAYERMENU_HH |
26 | #define LAYERMENU_HH | 26 | #define LAYERMENU_HH |
@@ -45,7 +45,7 @@ public: | |||
45 | LayerMenuItem(const char *label, ItemType *object, int layernum): | 45 | LayerMenuItem(const char *label, ItemType *object, int layernum): |
46 | FbTk::MenuItem(label), m_object(object), m_layernum(layernum) {} | 46 | FbTk::MenuItem(label), m_object(object), m_layernum(layernum) {} |
47 | 47 | ||
48 | bool isEnabled() const { return m_object->getLayerItem().getLayerNum() != m_layernum; } ; | 48 | bool isEnabled() const { return m_object->layerItem().getLayerNum() != m_layernum; } ; |
49 | void click(int button, int time) { | 49 | void click(int button, int time) { |
50 | m_object->moveToLayer(m_layernum); | 50 | m_object->moveToLayer(m_layernum); |
51 | FbTk::MenuItem::click(button, time); | 51 | FbTk::MenuItem::click(button, time); |
@@ -101,12 +101,12 @@ LayerMenu<ItemType>::LayerMenu(FbTk::MenuTheme &tm, int screen_num, FbTk::ImageC | |||
101 | // TODO: fetch nls string | 101 | // TODO: fetch nls string |
102 | if (save_rc) { | 102 | if (save_rc) { |
103 | insert(new LayerMenuItem<ItemType>( | 103 | insert(new LayerMenuItem<ItemType>( |
104 | layer_menuitems[i].default_str, | 104 | layer_menuitems[i].default_str, |
105 | m_object, layer_menuitems[i].layernum, saverc_cmd)); | 105 | m_object, layer_menuitems[i].layernum, saverc_cmd)); |
106 | } else { | 106 | } else { |
107 | insert(new LayerMenuItem<ItemType>( | 107 | insert(new LayerMenuItem<ItemType>( |
108 | layer_menuitems[i].default_str, | 108 | layer_menuitems[i].default_str, |
109 | m_object, layer_menuitems[i].layernum)); | 109 | m_object, layer_menuitems[i].layernum)); |
110 | } | 110 | } |
111 | } | 111 | } |
112 | update(); | 112 | update(); |