~ubuntu-branches/ubuntu/vivid/openwalnut/vivid-proposed

« back to all changes in this revision

Viewing changes to src/qt4gui/WQtGLWidget.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Eichelbaum
  • Date: 2014-03-19 17:46:12 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140319174612-e4mgtr1avbq3f7ph
Tags: 1.4.0~rc1+hg3a3147463ee2-1
* Major functionality and stability improvements.
* Several bug fixes
* Changed ttf-liberation dependency to fonts-liberation (Closes: #722405)
* OpenWalnut now works properly with OpenSceneGraph 3.2 (Closes: #718381)
* See http://www.openwalnut.org/versions/2

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
/**
55
55
 * A widget containing an open gl display area. This initializes OpenGL context and adds a view to the
56
56
 * engine.
57
 
 * \ingroup gui
 
57
 * \ingroup ui
58
58
 */
59
59
// NOTE: to make this work with MOC, the defines must be set before MOC runs (ensured in Build system)
60
60
class WQtGLWidget: public WQtGLWidgetParent
125
125
    static const QGLFormat getDefaultFormat();
126
126
 
127
127
    /**
128
 
     * Returns the setting for throwing.
129
 
     *
130
 
     * \return the setting
131
 
     */
132
 
    WSettingAction* getThrowingSetting() const;
133
 
 
134
 
    /**
135
 
     * Returns the action used to configure the background color of this widget.
136
 
     *
137
 
     * \return the action.
138
 
     */
139
 
    QAction* getBackgroundColorAction() const;
140
 
 
141
 
    /**
142
 
     * Adds a screen capture dock using this view's screen capture callback.
143
 
     *
144
 
     * \param parent the main window parent
145
 
     * \return the capture dock instance.
146
 
     */
147
 
    WQtGLScreenCapture* getScreenCapture( WMainWindow* parent ) const;
148
 
 
149
 
    /**
150
128
     * The presets menu.
151
129
     *
152
130
     * \return the menu
154
132
    QMenu* getCameraPresetsMenu();
155
133
 
156
134
    /**
 
135
     * The presets menu including the reset action
 
136
     *
 
137
     * \return the menu
 
138
     */
 
139
    QMenu* getCameraPresetsAndResetMenu();
 
140
 
 
141
    /**
157
142
     * The action to trigger a camera reset.
158
143
     *
159
144
     * \return the action
213
198
     */
214
199
    std::string m_nameOfViewer;
215
200
 
216
 
 
217
201
    /**
218
202
     * Event handler for double clicks.
219
203
     *
338
322
    bool m_firstPaint;
339
323
 
340
324
    /**
341
 
     * The setting specifying whether the viewer's camera can be thrown.
342
 
     */
343
 
    WSettingAction* m_allowThrowSetting;
344
 
 
345
 
    /**
346
 
     * Action to trigger some colordialog for background-color-selection.
347
 
     */
348
 
    QAction* m_changeBGColorAction;
349
 
 
350
 
    /**
351
325
     * Called by the WGEViewer to notify about the first frame rendered
352
326
     */
353
327
    void notifyFirstRenderedFrame();
358
332
    QMenu* m_cameraPresetMenu;
359
333
 
360
334
    /**
 
335
     * Camera menu with reset action
 
336
     */
 
337
    QMenu* m_cameraPresetResetMenu;
 
338
 
 
339
    /**
361
340
     * Camera reset.
362
341
     */
363
342
    QAction* m_cameraResetAction;
364
 
 
365
 
private slots:
366
 
    /**
367
 
     * Function to handle updates in the setting \ref m_allowThrowSetting.
368
 
     */
369
 
    void updateThrowing();
370
 
 
371
 
    /**
372
 
     * Asks user for a new color for this widget.
373
 
     */
374
 
    void changeBGColor();
375
 
 
376
 
    /**
377
 
     * Updates the color of this widget according to the current settings.
378
 
     */
379
 
    void updateViewerBackground();
380
343
};
381
344
 
382
345
#endif  // WQTGLWIDGET_H