~ubuntu-branches/ubuntu/trusty/plee-the-bear/trusty-proposed

« back to all changes in this revision

Viewing changes to plee-the-bear/src/ptb/frame/menu_frame.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge, Julien Jorge
  • Date: 2010-11-17 20:13:34 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101117201334-o4dp7uq437to7oxb
Tags: 0.5.1-1
[ Julien Jorge ]
* New upstream release (Closes: #565062, #546514).
* Add armhf architecture (Closes: #604689).
* Remove patches integrated upstream: rpath-editors.diff, rpath-game.diff,
  editors-menu-section.diff.
* Bump the Standard-Version, no changes.
* Update my email address.
* Set build dependency of libclaw to 1.6.0.
* Add the missing ${misc:Depends} in debian/control.
* List gettext translations in bear-factory.install and plee-the-bear.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  Plee the Bear
3
3
 
4
 
  Copyright (C) 2005-2009 Julien Jorge, Sebastien Angibaud
 
4
  Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
5
5
 
6
6
  This program is free software; you can redistribute it and/or modify it
7
7
  under the terms of the GNU General Public License as published by the
30
30
#define __PTB_MENU_FRAME_HPP__
31
31
 
32
32
#include "ptb/frame/frame.hpp"
33
 
#include "ptb/frame/menu.hpp"
 
33
#include "gui/callback.hpp"
34
34
 
35
35
namespace ptb
36
36
{
42
42
    public frame
43
43
  {
44
44
  public:
45
 
    menu_frame( windows_layer* owning_layer );
46
 
 
47
 
  protected:
48
 
    menu& get_menu();
49
 
    const menu& get_menu() const;
50
 
 
51
 
  protected:
52
 
    bool on_key_press( const bear::input::key_info& key );
53
 
    bool on_button_press( bear::input::joystick::joy_code button,
54
 
                          unsigned int joy_index );
55
 
    bool on_mouse_press( bear::input::mouse::mouse_code key,
56
 
       const claw::math::coordinate_2d<unsigned int>& pos );
57
 
 
58
 
    virtual void validate() const;
 
45
    menu_frame( windows_layer* owning_layer, const std::string& title );
 
46
 
 
47
  protected:
 
48
    void push( const std::string& text, const bear::gui::callback& c );
59
49
 
60
50
  private:
61
 
    /** \brief Text zones. */
62
 
    menu* m_menu;
 
51
    /** \brief The top entry of the menu. */
 
52
    bear::gui::visual_component* m_top;
63
53
 
64
54
  }; // class menu_frame
65
55
} // namespace ptb