Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
333334c6
Commit
333334c6
authored
Jul 29, 2010
by
Olivier Goffart
Browse files
Remove src/tools/qml/qmlobserver/qdeclarativedesignview.h as it is now in qmljsdebugger library
parent
42e34d6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/qml/qmlobserver/qdeclarativedesignview.h
deleted
100644 → 0
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment