~saiarcot895/ubuntu/trusty/openscenegraph/armhf-support

« back to all changes in this revision

Viewing changes to OpenSceneGraph/examples/osganimationviewer/AnimtkViewerGUI

  • Committer: Bazaar Package Importer
  • Author(s): Loic Dachary (OuoU)
  • Date: 2009-03-23 14:08:20 UTC
  • mfrom: (1.1.7 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090323140820-i4j3jozdlhyn4lre
rules prevent lib64 with -D LIB_POSTFIX="" (Closes: #517671)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*-c++-*- 
 
2
   This program is free software; you can redistribute it and/or modify
 
3
   it under the terms of the GNU General Public License as published by
 
4
   the Free Software Foundation; either version 2 of the License, or
 
5
   (at your option) any later version.
 
6
 
 
7
   This program is distributed in the hope that it will be useful,
 
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
   GNU General Public License for more details.
 
11
 
 
12
   You should have received a copy of the GNU General Public License
 
13
   along with this program; if not, write to the Free Software
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
 
15
 
 
16
   Authors:
 
17
 
 
18
   Jeremy Moles  <jeremy@emperorlinux.com>
 
19
   Cedric Pinson <mornifle@plopbyte.net>
 
20
*/
 
21
 
 
22
#ifndef ANIMTKVIEWERGUI_H
 
23
#define ANIMTKVIEWERGUI_H
 
24
 
 
25
#include <osgWidget/WindowManager>
 
26
 
 
27
class AnimtkViewerGUI: public osgWidget::WindowManager {
 
28
    osg::ref_ptr<osgWidget::Box> _buttonBox;
 
29
    osg::ref_ptr<osgWidget::Box> _listBox;
 
30
    osg::ref_ptr<osgWidget::Box> _labelBox;
 
31
 
 
32
protected:
 
33
    osgWidget::Widget* _createButton(const std::string&);
 
34
    
 
35
    bool _buttonPush(osgWidget::Event&);
 
36
    bool _listMouseHover(osgWidget::Event&);
 
37
 
 
38
    void _createButtonBox();
 
39
    void _createListBox();
 
40
    void _createLabelBox();
 
41
 
 
42
public:
 
43
    AnimtkViewerGUI(osgViewer::View*, float, float, unsigned int);
 
44
};
 
45
 
 
46
#endif