75 #include <OpenFlipper/BasePlugin/ViewInterface.hh>
78 #include <OpenFlipper/widgets/coreWidget/SideArea.hh>
79 #include <OpenFlipper/widgets/coreWidget/ColorStatusBar.hh>
81 #include <OpenFlipper/widgets/glWidget/QtBaseViewer.hh>
82 #include <OpenFlipper/widgets/glWidget/QtGLGraphicsScene.hh>
83 #include <OpenFlipper/widgets/glWidget/QtGLGraphicsView.hh>
84 #include <OpenFlipper/widgets/glWidget/QtMultiViewLayout.hh>
85 #include <OpenFlipper/widgets/glWidget/QtSlideWindow.hh>
88 #include <QMainWindow>
89 #include <QStackedWidget>
95 #include <QFutureWatcher>
97 #include <QDockWidget>
99 #include <OpenFlipper/widgets/aboutWidget/aboutWidget.hh>
100 #include <OpenFlipper/widgets/loggerWidget/loggerWidget.hh>
101 #include <OpenFlipper/widgets/optionsWidget/optionsWidget.hh>
102 #include <OpenFlipper/widgets/helpWidget/helpWidget.hh>
103 #include <OpenFlipper/widgets/stereoSettingsWidget/stereoSettingsWidget.hh>
104 #include <OpenFlipper/widgets/postProcessorWidget/postProcessorWidget.hh>
105 #include <OpenFlipper/widgets/rendererWidget/rendererWidget.hh>
106 #include <OpenFlipper/widgets/rendererWidget/rendererObjectWidget.hh>
108 #include <OpenFlipper/Core/PluginInfo.hh>
110 #include <ACG/QtWidgets/QtSceneGraphWidget.hh>
112 #include <ACG/Scenegraph/DrawModes.hh>
113 #include <ACG/Scenegraph/CoordsysNode.hh>
115 #include <OpenFlipper/INIFile/INIFile.hh>
118 #include "../viewModeWidget/viewModeChangeWidget.hh"
188 PickMode(
const std::string& _n,
const bool _t,
const bool _v, QCursor _c, QToolBar *_tb = 0 );
198 void visible(
const bool _visible);
210 std::string
name()
const;
219 void tracking(
const bool _tracking);
242 void cursor(
const QCursor _cursor);
251 void toolbar(QToolBar* _toolbar);
293 CoreWidget( QVector<ViewMode*>& _viewModes, std::vector<PluginInfo>& _plugins, QList< SlotInfo >& _coreSlots );
301 void addEmptyObjectMenu();
306 void recentOpen(QAction*);
324 void log(QString _message);
344 bool event( QEvent *event );
361 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
362 bool _multiUse =
false);
365 void call( QString _expression ,
bool& _success );
369 typedef std::multimap< std::pair< int, Qt::KeyboardModifiers > , std::pair< QObject*, int > >
KeyMap;
371 typedef std::pair< KeyMap::iterator, KeyMap::iterator >
KeyRange;
408 void slotRegisterKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
409 bool _multiUse =
false);
416 void slotAddKeyMapping(
int _key, Qt::KeyboardModifiers _modifiers, QObject* _plugin,
int _keyBindingID);
465 void startVideoCaptureDialog();
518 void showLogger(OpenFlipper::Options::LoggerState _state);
610 void slotAddViewModeComplete(QString _mode ,
bool _custom, QStringList _toolboxes, QStringList _toolbars, QStringList _contextmenus);
619 void slotChangeView(QString _mode, QStringList _toolboxWidgets, QStringList _toolbars, QStringList _contextmenus,
bool _expandAll =
false);
649 void setViewMode( QString _mode,
bool _expandAll =
false );
1032 bool comments_visible_only,
bool comments_targeted_only,
1033 bool store_material_info,
int snapshot_width,
int snapshot_height,
1034 bool snapshot_transparent,
bool hide_coord_sys,
1035 int snapshot_multisampling,
bool store_view);
1046 void writeImageAsynchronously(QImage* _image,
const QString _name);
1051 std::map<QFutureWatcher<void>*,QFuture<void>*> watcher_garbage_;
1058 void delete_garbage();
1118 void slotShowPostProcessorManager();
1230 void getToolBar( QString _name, QToolBar*& _toolbar);
1244 void statusMessage(QString _message,
int _timeout = 0);
1246 void clearStatusMessage();
1250 void addWidgetToStatusbar(QWidget* _widget);
1253 void setupStatusBar();
1258 QLabel* statusIcon_;
1472 bool _mouse_tracking =
false,
1474 bool _visible =
true,
1475 QCursor _cursor = Qt::ArrowCursor );
1483 const std::string&
pickMode()
const;
1581 #endif // COREWIDGET_HH defined
void showStatusBar(bool _state)
Show or hide status bar.
void slotAddStackWidget(QString _name, QWidget *_widget)
QMenu containing the recently opened files.
void slotUpdateStackWidget(QString _name, QWidget *_widget)
QMenu containing the recently opened files.
void toolBoxVisChanged(bool _state)
will be emitted if the visibility of the toolbox is changed
void slotLocalChangeBackFaceCulling(bool _backFaceCulling)
Set backface culling for active viewer.
QActionGroup * viewGroup_
Group for all menu items.
QtMultiViewLayout * baseLayout_
Base layout that holds gl views.
void setToolBoxOrientationOnTheRight(bool _toolBoxRight)
Set orientation of tool box (either on the right or the left side of the screen)
void dragOpenFile(QString _filename)
void showAboutWidget()
Display the about widget.
QWidget * toolBoxArea_
Widget for toolBox.
Viewer::ActionMode actionMode_
applicationStatus
Enum for the statusBar Status Icon.
void updatePickMenu()
update pick mode menu
void slotAddViewModeComplete(QString _mode, bool _custom, QStringList _toolboxes, QStringList _toolbars, QStringList _contextmenus)
Completly configure a view mode ( set toolbars, toolboxes, context menus, ... )
void slotGlobalChangeTwoSidedLighting(bool _lighting)
Set two-sided lighting for all viewers.
void slotAddContextItem(QAction *_entry, ContextMenuType _type)
called by plugins to add a new context menu item
QAction * perspectiveProjectionAction_
This variable holds the global draw menu.
void saveOptions()
Pointer to the OptionsWidget.
void showHelpBrowser(const QString &page=homePage_)
Display the help Browser.
std::set< QToolBar * > registeredToolbars_
Store all toolbars that once have been registered.
ProjectionMode
projection mode
QString snapshotName_
Create a snapshot of the whole app with fileDialog.
void slotGlobalToggleMipmapping()
If mipmapping is disabled in all viewers, enable it in all viewers. Otherwise disable it...
std::vector< MenuInfo > contextMenus_
All real context menu entries.
void slotGetStackWidget(QString _name, QWidget *&_widget)
QMenu containing the recently opened files.
void slotSetContextBackgroundColor()
Set Background Color for one viewer.
QStringList visibleToolboxes
List of Visible Toolboxes in this view mode.
void slotHideContextMenu()
Hide the context menu.
void slotGlobalToggleMultisampling()
If multisampling is disabled in all viewers, enable it in all viewers. Otherwise disable it...
void slotAddViewModeToolboxes(QString _mode, QStringList _usedWidgets)
Add or change Toolboxes for a ViewMode (non-userdefined viewMode)
void slotPasteViewAndWindow()
Paste the view, the window and toolbox size to the last active examiner.
void signalPickModeChanged(const std::string &)
void drawModeChanged(int _viewerId)
The viewer with id _viewerId changed its draw Mode.
QToolBar * mainToolbar_
Called by Plugins to add a Toolbar.
void hidePickToolBar()
Hide picking toolbar.
void setPickModeToolbar(const std::string &_mode, QToolBar *_toolbar)
Set the additional toolbar of the given PickMode.
void slotSetViewMode(QAction *action)
Slot for setting ViewMode from Menu.
void moveToolBoxToBottom(QString _name)
Move a specific toolbox widget to the bottom of the side area.
void coreKeyPressEvent()
handle key events for the core
void setPickModeCursor(const std::string &_name, QCursor _cursor)
set a new cursor for the pick mode
QMenu * contextSelectionMenu_
Context Menu containing all selection elements.
void slotRemoveToolbar(QToolBar *_toolbar)
Called by Plugins to remove a Toolbar.
void moveForward()
When using first person mode move forward.
int toolbarCount_
Called by Plugins to add a Toolbar.
QSize defaultIconSize_
Show logger in splitter or not.
bool event(QEvent *event)
typedefs
void slotGlobalChangeMipmapping(bool _multisampling)
Set mipmapping for all viewers.
void slotAddViewModeContextMenus(QString _mode, QStringList _usedToolbars)
Add or change Toolbars for a ViewMode (non-userdefined viewMode)
void slotGlobalHomeView()
Set the viewer to home position.
void slotGlobalChangeAnimation(bool _animation)
Set the animation mode for all viewers.
void slotApplyStereoSettings(int _tmpParam=0)
void slotViewMenuAction(QAction *_action)
QMenu containing the recently opened files.
std::vector< KeyBinding > coreKeys_
vector of keys registered to the core
QToolButton * questionButton_
Called by Plugins to add a Toolbar.
void slotGetMenubarMenu(QString _name, QMenu *&_menu, bool _create)
File Menu.
QMenu * fileMenu_
File Menu.
std::vector< glViewer * > examiner_widgets_
Examiner Widget.
void log(Logtype _type, QString _message)
Logg with OUT,WARN or ERR as type.
void slotLocalChangeTwoSidedLighting(bool _lighting)
Set two-sided lighting for active viewer.
void slotPostProcessorMenu(QAction *_action)
Called when a different post processor has been chosen.
void slotUpdateGlobalDrawMenu()
Setup and update the global draw menu.
void viewerSnapshot()
Create a snapshot of the whole app.
void slotGlobalPostProcessorMenu(QAction *_action)
Called when the global postprocessor is selected.
void toggleStatusBar()
Change visibility of the Status Bar.
void moveBack()
When using first person mode move backward.
StereoSettingsWidget * stereoSettingsWidget_
Widget to change stereo settings.
void registerKey(int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
internal signal to register CoreWidget keys
void strafeRight()
When using first person mode strafe to the right.
void slotRemoveViewMode(QString _name)
Remove viewMode.
void showToolbox(bool _state)
Show or hide toolbox.
void setFullscreen(bool _state)
Enable or disable fullscreen mode.
QtGLGraphicsScene * glScene_
graphics scene used to paint gl context and widgets
QSplitter * splitter_
Spliter between toplevel objects and the textedit at the bottom.
void slotGlobalRendererMenu(QAction *_action)
Called when the global renderer is selected.
void toggleFullscreen()
Set application to Fullscreen and back.
std::string name() const
PickMode Name.
AboutWidget * aboutWidget_
Pointer to the about widget.
LoggerWidget * logWidget_
Textedit at the bottom for log messages.
QMenu * algorithmMenu_
Algorithms Menu.
void updateRecent()
Update the recent files menu.
void slotGlobalDrawMenu(QAction *_action)
Called when the global drawMode is selected.
QStringList visibleToolbars
List of Toolbars in this view mode.
void slotGlobalChangeBackFaceCulling(bool _backFaceCulling)
Set backface culling for all viewers.
void slotActivateExaminer()
void closeEvent(QCloseEvent *event)
Called on applications close.
QMenu * recentFilesMenu_
QMenu containing the recently opened files.
void updatePopupMenu(const QPoint &_point)
check current context and initialize context menu according to this context.
bool stereoActive_
The viewer with id _viewerId changed its draw Mode.
QList< SlotInfo > & coreSlots_
list of scripting slots from core
void clearAll()
Clear all data objects.
Class for the handling of simple configuration files.
void updateContextMenu(int)
tells the plugins to update their context menu when an object is picked
void coreKeyReleaseEvent(QKeyEvent *_e)
if a keyReleaseEvent belongs to the core this functions is called
ACG::SceneGraph::CoordsysNode::ProjectionMode getCoordsysProjection()
Toggle coordsys projection mode of the active viewer.
void stopVideoCapture()
Stop video capturing.
void sceneRectChanged(const QRectF &rect)
QMenu * contextMenu_
context Menu for the gl area
void slotUpdateStackMenu()
QMenu containing the recently opened files.
QAction * globalBackfaceCullingAction_
Action to globally set backface culling.
void resizeViewers(int _width, int _height)
resize the examinerViewer
ContextMenuType type
Type of the context Menu ( Context for what type .. Background,Object,Node)
void setPickModeMouseTracking(const std::string &_name, bool _mouseTracking)
set mouseTracking for the pick mode
void setActivePickToolBar(QToolBar *_tool)
Set toolbar to be active pick toolbar.
void updateContextMenuBackground()
tells the plugins to update their context menu when the background is picked
void initViewModes()
init ViewModes that were loaded via ini-file
QSplitter * toolSplitter_
Spliter between toplevel objects and toolbox.
QAction * globalAnimationAction_
Action to globally set animation.
void registerCoreKeys()
Register all events related to the core.
Struct containing information about pickModes.
InverseKeyMap invKeys_
mapping of all registered keys and the corresponding plugins to currently assigned keys ...
void statusBarVisChanged(bool _state)
will be emitted if the visibility of the statusbar is changed
QMap< QString, QMenu * > menus_
All available menus.
static const QString homePage_
Pointer to the help Browser.
QtSlideWindow * slidingLogger_
Class that holds the animated log widget.
void startDrag(QMouseEvent *_event)
HelpWidget * helpWidget_
Pointer to the help Browser.
void slotViewerDrawMenu(QAction *_action)
Called when a coordsys drawMode has been changed.
void changeHelpSite(QUrl)
Pointer to the help Browser.
void applicationSnapshotName(QString _name)
Set the snapshot name.
QScrollArea * toolBoxScroll_
Toolbox scroll area.
void slotLog(Logtype _type, QString _message)
Slot writing everything to the Logger widget.
Viewer::ActionMode lastActionMode()
void addAboutInfo(QString _text, QString _tabName)
Adds an entry to the about dialog.
void slotAddContextItemToViewMode(QAction *_entry)
called by slotAddContextItem to add the item to the view mode
QToolButton * stereoButton_
Called by Plugins to add a Toolbar.
void slotAddViewModeToolbars(QString _mode, QStringList _usedToolbars)
Add or change Toolbars for a ViewMode (non-userdefined viewMode)
QToolBar * pickToolBarExternal_
Extra toolbar not in scene for picking.
void saveKeyBindings(INIFile &_ini)
Store current key assignments to a given INI file.
ACG::SceneGraph::DrawModes::DrawMode activeDrawModes_
This variable holds the global draw menu.
QAction * AC_ShowViewModeControls_
Action for View Mode Widget Conrol in Menu.
void slotPasteView()
Paste the view to the last active examiner.
void slotSetViewAndWindowGeometry(QString view)
Set the supplied serialized view.
QMenu * viewMenu_
View Menu.
QAction * globalMultisamplingAction_
Action to globally set multisampling.
void slotGlobalToggleBackFaceCulling()
If backface culling is disabled in all viewers, enable it in all viewers. Otherwise disable it...
void showReducedMenuBar(bool reduced)
typedefs
Viewer::ActionMode lastActionMode_
QMenu * toolsMenu_
Tools Menu.
void slotChangeView(QString _mode, QStringList _toolboxWidgets, QStringList _toolbars, QStringList _contextmenus, bool _expandAll=false)
Slot for Changing visible toolWidgets.
QToolButton * pickButton_
Called by Plugins to add a Toolbar.
std::pair< KeyMap::iterator, KeyMap::iterator > KeyRange
typedefs
QGraphicsWidget * centerWidget_
center widged
void slotAddMenubarActions(std::vector< QAction * > _actions, QString _name)
File Menu.
QWidgetAction * viewModeChangePopupAction_
Handle to picking toolbar.
void updateContextMenuNode(int)
tells the plugins to update their context menu when a node is picked
std::string name_
Name of the pickMode.
void updatePopupMenuNode(QMenu *_menu, ACG::SceneGraph::BaseNode *_node)
Update context Menu when an arbitrary node has been clicked on.
void slotGlobalOrthographicProjection()
Toggle projection mode of all viewers to orthographic projection.
QScrollArea * getToolboxScrollArea()
Show logger in splitter or not.
void slotShowRenderObjectWidget()
Shows the widget containing the current render objects.
void resizeApplication(int _width, int _height)
resize the whole Application
QMenu * rendererMenu_
This variable holds the global renderer menu.
QActionGroup * rendererGroup_
Group for all renderers.
void slotUpdateExaminer(unsigned _id)
update the content of the specified examiner
QComboBox * viewerLayoutBox_
Called by Plugins to add a Toolbar.
QVector< QWidget * > toolWidgets_
a List of all widgets in the toolbar
KeyBinding getKeyBinding(QObject *_plugin, int _keyIndex)
typedefs
void slotContextSwitchProjection()
Toggle projection mode of the active viewer.
QGLWidget * glWidget_
gl widget used as drawing area to paint the graphics scene
void showLoggerInSplitView(bool _show)
Show logger in splitter or not.
QToolBar * toolbar() const
PickMode toolbar.
bool custom
Is this a user defined custom view mode or a plugin generated one.
QStringList visibleContextMenus
List of context Menus in this view mode.
void showViewModeControls(bool _show)
Hide or show the View Mode controls.
void slotLockRotation(bool _lock)
Lock rotation in current examiner widget.
void slotLocalChangeMipmapping(bool _mipmapping)
Set mipmapping for active viewer.
QMenu * viewModeMenu_
Submenu holding all ViewMode actions.
void getToolBar(QString _name, QToolBar *&_toolbar)
Called by Plugins to get access to specific Toolbars by name.
std::vector< StackWidgetInfo > stackWidgetList_
QMenu containing the recently opened files.
void dragEnterEvent(QDragEnterEvent *_event)
void slotSetViewingDirection(QAction *_action)
Change the viewing direction from context-menu.
OpenFlipper::Options::LoggerState loggerState_
Show logger in splitter or not.
bool visible() const
PickMode visible.
void updatePopupMenuCoordsysNode(QMenu *_menu, const int _part)
Update context Menu when Coordsys node has been clicked on.
void closeChangeViewModePopup()
Closes the change view mode popup.
void slotExaminerSnapshot()
Create a snapshot of the last active examiner.
RendererObjectWidget * rendererObjectWidget_
shows the widget for the rendermanager
QStackedWidget * stackedWidget_
Container widget for holding multiple views.
QVector< ViewMode * > & viewModes_
List of currently available viewModes.
std::vector< PluginInfo > plugins_
List of all loaded plugins_.
void PluginKeyReleaseEvent(QKeyEvent *)
ViewMode struct This struct contains a ViewMode and its status information such as used widgets...
std::map< QToolBar *, QGraphicsProxyWidget * > PickToolBarMap
Handle to picking toolbar.
void slotShowSceneGraphDialog()
std::vector< QToolBar * > toolbars_
Called by Plugins to add a Toolbar.
void slotShowRenderManager()
shows the widget for the rendermanager
void PluginKeyEvent(QKeyEvent *)
void slotGlobalViewAll()
Change view on all viewers to view complete scene.
void setupMenuBar()
Setup the main menubar.
QMenu * globalDrawMenu_
This variable holds the global draw menu.
void slotGlobalToggleTwoSidedLighting()
If two-sided lighting is disabled in all viewers, enable it in all viewers. Otherwise disable it...
void slotUpdateRendererMenu()
Setup and update the global renderer menu.
QAction * orthogonalProjectionAction_
This variable holds the global draw menu.
void slotSetGlobalBackgroundColor()
Set Background Color for all viewers at once.
void slotAddMenubarAction(QAction *_action, QString _name)
File Menu.
Logtype
Log types for Message Window.
void slotContextHomeView()
Set the active viewer to home position.
void slotAddToolbar(QToolBar *_toolbar)
Called by Plugins to add a Toolbar.
void stereoButtonContextMenu(const QPoint &_pos)
Creates custom context menu for stereo viewer settings.
void strafeLeft()
When using first person mode strafe to the left.
void showLogger(OpenFlipper::Options::LoggerState _state)
Change visibility of the logger.
Viewer::ActionMode actionMode()
QMenu * helpMenu_
Help Menu.
void loadPlugin(const QString &_filename, const bool _silent, QString &_licenseErrors, QObject *_plugin=0)
Function for loading Plugins.
bool shiftPressed_
Store the state of the shift key.
viewModeChangeWidget * modeChangeWidget
Handle to picking toolbar.
QWidget * getToolboxArea()
Show logger in splitter or not.
void slotGlobalToggleAnimation()
If animation is disabled in all viewers, enable it in all viewers. Otherwise disable it...
QString name
Name of the View Mode.
void slotLocalChangeMultisampling(bool _multisampling)
Set multisampling for active viewer.
void setViewerLayout(int _idx)
Change viewer layout that was selected in the combo box.
QMenu * windowMenu_
Window Menu.
QActionGroup * drawGroupViewer_
DrawGroup for per Viewer Draw Modes.
void slotSnapshotName()
Set the snapShot name for all examiners.
void actionPickMenu(QAction *_action)
void getPickMode(std::string &_name)
void applicationSnapshotDialog()
Create a snapshot of the whole app with fileDialog.
QMenu * viewerDrawMenu_
Draw Menu for per Viewer Draw Modes.
DataType contextType
Type of objects for which the context Menu should be visible.
QWidget * viewerDrawMenuWidget_
owns all the checkboxes of viewerDrawMenu_
QToolBar * viewerToolbar_
Called by Plugins to add a Toolbar.
void slotCustomContextMenu(const QPoint &_point)
This slot is called by the examiner widgets gl area when a context menu is requested.
void showMenuBar(bool _state)
Show or hide menubar.
QAction * globalTwosidedLightingAction_
Action to globally set two-sided lighting.
virtual void keyReleaseEvent(QKeyEvent *_e)
passes keyReleaseEvents to either the Core or a Plugin depending on who has registered the key ...
void fullScreenChanged(bool _state)
will be emitted if the fullscreen state is changed (_state = true => in fullscreen) ...
void slotGlobalChangeMultisampling(bool _multisampling)
Set multisampling for all viewers.
const std::string & pickMode() const
void slotSwitchNavigation(bool _egomode)
Switch navigation mode.
void applyOptions()
Pointer to the OptionsWidget.
void startVideoCapture(QString _baseName, int _fps, bool _captureViewers)
Start video capturing.
bool eventFilter(QObject *_obj, QEvent *_event)
typedefs
ACG::SceneGraph::DrawModes::DrawMode availableGlobalDrawModes_
This variable holds the global draw menu.
void nextViewerLayout()
Switches over to the next view mode.
Implementation of the logger Widget.
void slotRenderMenu(QAction *_action)
Called when a different renderer has been chosen.
std::vector< PickMode > pick_modes_
void showToolBar(bool _state)
Show or hide toolbar, emits toolBarToggled( bool _state )
SideArea * toolBox_
Toolbox.
void slotCopyView()
Copy view from the last active examiner.
void slotContextSwitchCoordsysProjection()
Toggle coordsys projection mode of the active viewer.
KeyMap keys_
mapping of all keys to registered keys and the corresponding plugins
void expandToolBoxWidget(QWidget *widget, bool expand)
QAction * action
The context item.
void addCoreLicenseInfo()
Add license information about core parts.
SideArea * getToolbox()
Show logger in splitter or not.
void slotGlobalPerspectiveProjection()
Toggle projection mode of all viewers to perspective projection.
void slotSwitchWheels(bool _state)
Show / hide wheels.
void dropEvent(QDropEvent *_event)
void slotSetView(QString view)
Set the supplied serialized view.
QToolButton * viewModePopupBtn_
view mode gear icon at the upper left of the tool box
void viewerSnapshotDialog()
Create a snapshot of the whole app with fileDialog.
virtual void keyPressEvent(QKeyEvent *_e)
Handle key events.
void slotGlobalSetHomeView()
Set the home position for all viewers.
QMap< QString, QString > additionalAboutTabs_
Additional tab information, that could be provided by plugins.
void toolBarVisChanged(bool _state)
will be emitted if the visibility of the toolbar is changed
void updatePopupMenuObject(QMenu *_menu, BaseObjectData *_object)
Update popup Menu when an object has been clicked on.
void showOptionsWidget()
Display the Options Browser.
void toggleToolbox()
Hide or show toolbox area.
PickToolBarMap curPickingToolbarItems_
Handle to picking toolbar.
void toggleMenuBar()
Hide or show menu bar.
void slotLocalChangeAnimation(bool _animation)
Set the animation mode for active viewer.
QtGLGraphicsView * glView_
graphics view that holds the gl scene
std::vector< QAction * > extended_actions
QAction * fileMenuEnd_
First entry after all relevant parts of the File Menu.
std::multimap< std::pair< int, Qt::KeyboardModifiers >, std::pair< QObject *, int > > KeyMap
typedefs
CoreWidget(QVector< ViewMode * > &_viewModes, std::vector< PluginInfo > &_plugins, QList< SlotInfo > &_coreSlots)
constructor
void setViewMode(QString _mode, bool _expandAll=false)
Set the view Mode to the given Mode.
QWidget * viewModeControlBox_
Group box containing Task Switcher Controls.
void setPickMode(const std::string &_name)
The Menu will be shown when the background was picked.
PickMode(const std::string &_n, const bool _t, const bool _v, QCursor _c, QToolBar *_tb=0)
Constructor.
void slotSetViewModeIcon(QString _mode, QString _iconName)
Sets the Icon for a given View Mode (non-userdefined viewMode)
void menuBarVisChanged(bool _state)
will be emitted if the visibility of the menubar is changed
CursorPainter * cursorPainter_
Cursor handling.
void removePickModeToolbar(const std::string &_mode)
Removes the additional toolbar of the given PickMode.
QMenu * stackMenu_
QMenu containing the recently opened files.
ACG::QtWidgets::QtSceneGraphDialog * sceneGraphDialog_
Handle to picking toolbar.
void call(QString _expression, bool &_success)
call a scripting function
OptionsWidget * optionsWidget_
Pointer to the OptionsWidget.
void setForceNativeCursor(bool _state)
Use native or gl painted cursor.
QActionGroup * drawGroup_
This variable holds the global draw menu.
void slotViewModeDialog()
Show a dialog in which the viewMode can be edited.
int snapshotCounter_
Create a snapshot of the whole app with fileDialog.
void updateInSceneLoggerGeometry()
Set in-scene logger geometry right.
void slotAddKeyMapping(int _key, Qt::KeyboardModifiers _modifiers, QObject *_plugin, int _keyBindingID)
add a new key Mapping
void slotRegisterSlotKeyBindings()
register scripting slots to allow keyBindings
bool tracking() const
PickMode mouse tracking.
void addRecent(QString _filename, DataType _type)
Add a recent file and update menu.
QAction * globalMipmappingAction_
Action to globally set mipmapping.
std::string pick_mode_name_
void slotRegisterKey(int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
key registration
int originalLoggerSize_
Size of the logging window ( defaults to 240 )
void moveToolBoxToTop(QString _name)
Move a specific toolbox widget to the top of the side area.
void setActionMode(const Viewer::ActionMode _am)
QToolButton * moveButton_
Called by Plugins to add a Toolbar.
void toggleToolBar()
Hide or show current toolbar.
void updatePopupMenuBackground(QMenu *_menu, const QPoint &_point)
Update context Menu when background has been clicked on.
QSize defaultIconSize()
Show logger in splitter or not.
void slotUpdateViewerDrawMenu()
Creates a draw Menu for the currently active Viewer.
bool addContextMenus(QMenu *_menu, ContextMenuType _type, int _id=-1)
void slotContextSetHomeView()
Set the active viewers home position.
void slotViewMenuAboutToShow()
Called before the view Menu is shown.
void slotToggleStereoMode()
Enable or disable Stereo.
void loadKeyBindings(INIFile &_ini)
Load key assignments from a given INI file.
void toggleLogger()
Hide or show logging area.
void applicationSnapshot()
Create a snapshot of the whole app.
void slotContextViewAll()
Change view on active viewer to view complete scene.
void slotCoordSysVisibility(bool _visible)
Hide coordinate systems in all viewers.
QAction * viewModeButton_
a List of all widgets in the toolbar
QCursor cursor() const
PickMode cursor.
void getActionMode(Viewer::ActionMode &_am)
void addPickMode(const std::string &_name, bool _mouse_tracking=false, int _pos=-1, bool _visible=true, QCursor _cursor=Qt::ArrowCursor)
add pick mode
QString getRPCName(QObject *_plugin)
typedefs
RendererDialog * rendererDialog_
shows the widget for the rendermanager