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

« back to all changes in this revision

Viewing changes to src/qt4gui/controlPanel/WQtControlPanel.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:
48
48
#include "WQtRoiHeaderTreeItem.h"
49
49
#include "WQtSubjectTreeItem.h"
50
50
#include "WQtTreeWidget.h"
 
51
#include "../guiElements/WQtDockWidget.h"
51
52
 
52
53
class WMainWindow;
53
54
class WQtColormapper;
55
56
/**
56
57
 * container widget for a tree widget with context menu and some control widgets
57
58
 */
58
 
class WQtControlPanel : public QDockWidget
 
59
class WQtControlPanel : public WQtDockWidget
59
60
{
60
61
    Q_OBJECT
61
62
 
81
82
     * Adds a page to the context widget
82
83
     *
83
84
     * \param content A widget with controls
 
85
     * \param propContents The prop group widget.
84
86
     *
85
87
     * \return the index of the new tab
86
88
     */
87
 
    int addTabWidgetContent( WQtPropertyGroupWidget* content );
 
89
    int addTabWidgetContent( QWidget* content, WQtPropertyGroupWidget* propContents );
88
90
 
89
91
    /**
90
92
     * Adds a subject entry to the tree widget
173
175
     *
174
176
     * \return the ROI dock.
175
177
     */
176
 
    QDockWidget* getRoiDock() const;
 
178
    WQtDockWidget* getRoiDock() const;
 
179
 
 
180
    /**
 
181
     * Return the action to delete a selected roi
 
182
     *
 
183
     * \return the action
 
184
     */
 
185
    QAction* getRoiDeleteAction() const;
177
186
 
178
187
    /**
179
188
     * Gets the module dock widget.
180
189
     *
181
190
     * \return the module dock
182
191
     */
183
 
    QDockWidget* getModuleDock() const;
 
192
    WQtDockWidget* getModuleDock() const;
184
193
 
185
194
    /**
186
195
     * Gets the colormapper dock
187
196
     *
188
197
     * \return the dock
189
198
     */
190
 
    QDockWidget* getColormapperDock() const;
 
199
    WQtDockWidget* getColormapperDock() const;
191
200
 
192
201
    /**
193
202
     * Returns the module excluder. It then can be used for configuration.
293
302
 
294
303
    bool m_showToolBarText; //!< Show tool bar icons with text
295
304
 
296
 
    QDockWidget* m_roiDock;     //!< the dock widget with the ROI tree
297
 
    QDockWidget* m_moduleDock;  //!< the dock widget with the module tree
 
305
    WQtDockWidget* m_roiDock;     //!< the dock widget with the ROI tree
 
306
    WQtDockWidget* m_moduleDock;  //!< the dock widget with the module tree
298
307
 
299
308
    /**
300
309
     * The action to remove a module from the tree.
405
414
    /**
406
415
     * function that gets called when a tree item is selected, on a new select that tab widget
407
416
     * is rebuilt with the controls provided by the tree item
 
417
     *
 
418
     * \param item the item that has been clicked
408
419
     */
409
 
    void selectRoiTreeItem();
 
420
    void selectRoiTreeItem( QTreeWidgetItem* item );
410
421
 
411
422
    /**
412
423
     * Will be called to select the data module for the given texture.
428
439
     *
429
440
     * \param props the properties.
430
441
     * \param infoProps the information properties shown on a separate tab
 
442
     * \param name the name used as title. Can be empty but should not.
431
443
     */
432
 
    void buildPropTab( boost::shared_ptr< WProperties > props, boost::shared_ptr< WProperties > infoProps );
 
444
    void buildPropTab( boost::shared_ptr< WProperties > props, boost::shared_ptr< WProperties > infoProps, const std::string& name );
433
445
 
434
446
    /**
435
447
     * Function gets change when a change to a tree item occurs.
451
463
 
452
464
    /**
453
465
     * function to notify the ROI manager of any drag&drop action in the ROI tree
 
466
     *
 
467
     * \param event the drop event
454
468
     */
455
 
    void handleRoiDragDrop();
 
469
    void handleRoiDragDrop( QDropEvent* event );
456
470
};
457
471
 
458
472
#endif  // WQTCONTROLPANEL_H