Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
333334c6
Commit
333334c6
authored
14 years ago
by
Olivier Goffart
Browse files
Options
Downloads
Patches
Plain Diff
Remove src/tools/qml/qmlobserver/qdeclarativedesignview.h as it is now in qmljsdebugger library
parent
42e34d6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tools/qml/qmlobserver/qdeclarativedesignview.h
+0
-137
0 additions, 137 deletions
src/tools/qml/qmlobserver/qdeclarativedesignview.h
with
0 additions
and
137 deletions
src/tools/qml/qmlobserver/qdeclarativedesignview.h
deleted
100644 → 0
+
0
−
137
View file @
42e34d6c
#ifndef QDECLARATIVEDESIGNVIEW_H
#define QDECLARATIVEDESIGNVIEW_H
#include
"qmlviewerconstants.h"
#include
<qdeclarativeview.h>
#include
<QWeakPointer>
QT_FORWARD_DECLARE_CLASS
(
QDeclarativeItem
);
QT_FORWARD_DECLARE_CLASS
(
QMouseEvent
);
QT_FORWARD_DECLARE_CLASS
(
QToolBar
);
namespace
QmlViewer
{
class
AbstractFormEditorTool
;
class
SelectionTool
;
class
ZoomTool
;
class
ColorPickerTool
;
class
LayerItem
;
class
BoundingRectHighlighter
;
class
SubcomponentEditorTool
;
class
QmlToolbar
;
class
CrumblePath
;
class
QDeclarativeDesignView
:
public
QDeclarativeView
{
Q_OBJECT
public:
enum
ContextFlags
{
IgnoreContext
,
ContextSensitive
};
explicit
QDeclarativeDesignView
(
QWidget
*
parent
=
0
);
~
QDeclarativeDesignView
();
void
setSelectedItems
(
QList
<
QGraphicsItem
*>
items
);
QList
<
QGraphicsItem
*>
selectedItems
();
AbstractFormEditorTool
*
currentTool
()
const
;
LayerItem
*
manipulatorLayer
()
const
;
void
changeTool
(
Constants
::
DesignTool
tool
,
Constants
::
ToolFlags
flags
=
Constants
::
NoToolFlags
);
void
clearHighlight
();
void
highlight
(
QList
<
QGraphicsItem
*>
item
,
ContextFlags
flags
=
ContextSensitive
);
void
highlight
(
QGraphicsItem
*
item
,
ContextFlags
flags
=
ContextSensitive
);
bool
mouseInsideContextItem
()
const
;
bool
isEditorItem
(
QGraphicsItem
*
item
)
const
;
QList
<
QGraphicsItem
*>
selectableItems
(
const
QPoint
&
pos
)
const
;
QList
<
QGraphicsItem
*>
selectableItems
(
const
QPointF
&
scenePos
)
const
;
QList
<
QGraphicsItem
*>
selectableItems
(
const
QRectF
&
sceneRect
,
Qt
::
ItemSelectionMode
selectionMode
)
const
;
QGraphicsItem
*
currentRootItem
()
const
;
CrumblePath
*
crumblePathWidget
()
const
;
QToolBar
*
toolbar
()
const
;
static
QString
idStringForObject
(
QObject
*
obj
);
QRectF
adjustToScreenBoundaries
(
const
QRectF
&
boundingRectInSceneSpace
);
public
Q_SLOTS
:
void
setDesignModeBehavior
(
bool
value
);
bool
designModeBehavior
()
const
;
void
changeToSingleSelectTool
();
void
changeToMarqueeSelectTool
();
void
changeToZoomTool
();
void
changeToColorPickerTool
();
void
changeAnimationSpeed
(
qreal
slowdownFactor
);
void
continueExecution
(
qreal
slowdownFactor
=
1.0
f
);
void
pauseExecution
();
Q_SIGNALS
:
void
designModeBehaviorChanged
(
bool
inDesignMode
);
void
reloadRequested
();
void
marqueeSelectToolActivated
();
void
selectToolActivated
();
void
zoomToolActivated
();
void
colorPickerActivated
();
void
selectedColorChanged
(
const
QColor
&
color
);
void
executionStarted
(
qreal
slowdownFactor
);
void
executionPaused
();
protected
:
void
leaveEvent
(
QEvent
*
);
void
mousePressEvent
(
QMouseEvent
*
event
);
void
mouseMoveEvent
(
QMouseEvent
*
event
);
void
mouseReleaseEvent
(
QMouseEvent
*
event
);
void
keyPressEvent
(
QKeyEvent
*
event
);
void
keyReleaseEvent
(
QKeyEvent
*
keyEvent
);
void
mouseDoubleClickEvent
(
QMouseEvent
*
event
);
void
wheelEvent
(
QWheelEvent
*
event
);
private
Q_SLOTS
:
void
reloadView
();
void
onStatusChanged
(
QDeclarativeView
::
Status
status
);
void
onCurrentObjectsChanged
(
QList
<
QObject
*>
objects
);
void
applyChangesFromClient
();
void
createQmlObject
(
const
QString
&
qml
,
QObject
*
parent
,
const
QStringList
&
imports
,
const
QString
&
filename
=
QString
());
private
:
void
clearEditorItems
();
void
createToolbar
();
void
changeToSelectTool
();
QList
<
QGraphicsItem
*>
filterForCurrentContext
(
QList
<
QGraphicsItem
*>
&
itemlist
)
const
;
QList
<
QGraphicsItem
*>
filterForSelection
(
QList
<
QGraphicsItem
*>
&
itemlist
)
const
;
private
:
QPointF
m_cursorPos
;
QList
<
QWeakPointer
<
QGraphicsObject
>
>
m_currentSelection
;
Constants
::
DesignTool
m_currentToolMode
;
AbstractFormEditorTool
*
m_currentTool
;
SelectionTool
*
m_selectionTool
;
ZoomTool
*
m_zoomTool
;
ColorPickerTool
*
m_colorPickerTool
;
SubcomponentEditorTool
*
m_subcomponentEditorTool
;
LayerItem
*
m_manipulatorLayer
;
BoundingRectHighlighter
*
m_boundingRectHighlighter
;
bool
m_designModeBehavior
;
bool
m_executionPaused
;
qreal
m_slowdownFactor
;
QmlToolbar
*
m_toolbar
;
CrumblePath
*
m_crumblePath
;
};
}
//namespace QmlViewer
#endif // QDECLARATIVEDESIGNVIEW_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment