~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to src/Inventor/Qt/viewers/SoQtFullViewerP.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2004-05-29 02:58:50 UTC
  • Revision ID: james.westby@ubuntu.com-20040529025850-phd20eva5uyhhdrf
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SOQTFULLVIEWERP_H
 
2
#define SOQTFULLVIEWERP_H
 
3
 
 
4
/**************************************************************************\
 
5
 *
 
6
 *  This file is part of the Coin 3D visualization library.
 
7
 *  Copyright (C) 1998-2003 by Systems in Motion.  All rights reserved.
 
8
 *
 
9
 *  This library is free software; you can redistribute it and/or
 
10
 *  modify it under the terms of the GNU General Public License
 
11
 *  ("GPL") version 2 as published by the Free Software Foundation.
 
12
 *  See the file LICENSE.GPL at the root directory of this source
 
13
 *  distribution for additional information about the GNU GPL.
 
14
 *
 
15
 *  For using Coin with software that can not be combined with the GNU
 
16
 *  GPL, and for taking advantage of the additional benefits of our
 
17
 *  support services, please contact Systems in Motion about acquiring
 
18
 *  a Coin Professional Edition License.
 
19
 *
 
20
 *  See <URL:http://www.coin3d.org> for more information.
 
21
 *
 
22
 *  Systems in Motion, Teknobyen, Abels Gate 5, 7030 Trondheim, NORWAY.
 
23
 *  <URL:http://www.sim.no>.
 
24
 *
 
25
\**************************************************************************/
 
26
 
 
27
#ifndef SOQT_INTERNAL
 
28
#error this is a private header file
 
29
#endif /* !SOQT_INTERNAL */
 
30
 
 
31
#include <Inventor/Qt/viewers/SoGuiFullViewerP.h>
 
32
#include <qobject.h>
 
33
 
 
34
class QLabel;
 
35
class QLayout;
 
36
class QSlider;
 
37
class QLineEdit;
 
38
class QPushButton;
 
39
class QWidget;
 
40
class SoQtFullViewer;
 
41
class SoQtThumbWheel;
 
42
 
 
43
// ************************************************************************
 
44
 
 
45
// This class contains private data and methods used within the
 
46
// SoQtFullViewer class.
 
47
 
 
48
class SoQtFullViewerP : public QObject, public SoGuiFullViewerP
 
49
{
 
50
  Q_OBJECT
 
51
 
 
52
public:
 
53
  SoQtFullViewerP(SoQtFullViewer * publ);
 
54
  ~SoQtFullViewerP();
 
55
 
 
56
public slots:
 
57
  // Thumbwheels.
 
58
  void leftWheelPressed(void);
 
59
  void leftWheelChanged(float value);
 
60
  void leftWheelReleased(void);
 
61
  void rightWheelPressed(void);
 
62
  void rightWheelChanged(float value);
 
63
  void rightWheelReleased(void);
 
64
  void bottomWheelPressed(void);
 
65
  void bottomWheelChanged(float value);
 
66
  void bottomWheelReleased(void);
 
67
 
 
68
  // Button row.
 
69
  void interactbuttonClicked();
 
70
  void viewbuttonClicked();
 
71
  void homebuttonClicked();
 
72
  void sethomebuttonClicked();
 
73
  void viewallbuttonClicked();
 
74
  void seekbuttonClicked();
 
75
 
 
76
  // Menu items.
 
77
  void selectedViewing();
 
78
  void selectedDecoration();
 
79
  void selectedHeadlight();
 
80
 
 
81
  // Generic slots.
 
82
  void increaseInteractiveCount();
 
83
  void decreaseInteractiveCount();
 
84
 
 
85
public:
 
86
  static void setThumbWheelValue(void * wheel, float val);
 
87
 
 
88
  void showDecorationWidgets(SbBool onOff);
 
89
 
 
90
  void layoutAppButtons(QWidget * form);
 
91
 
 
92
  // Return pointer to pushbutton in right-side decoration bar.
 
93
  QPushButton * getViewerbutton(const int idx)
 
94
  {
 
95
    return (QPushButton *)this->viewerbuttons->get(idx);
 
96
  }
 
97
 
 
98
  QWidget * viewerwidget, * canvas;
 
99
  QWidget * interactbutton, * viewbutton;
 
100
  SbBool decorations;
 
101
  SbString menutitle;
 
102
  SbBool menuenabled;
 
103
  QLayout * mainlayout;
 
104
  QLayout * appbuttonlayout;
 
105
  QWidget * appbuttonform;
 
106
  SbPList * appbuttonlist;
 
107
  SbPList * viewerbuttons;
 
108
};
 
109
 
 
110
// ************************************************************************
 
111
 
 
112
#endif // ! SOQTFULLVIEWERP_H