--- a/src/hbcore/gui/hbmainwindow.h Mon May 03 12:48:33 2010 +0300
+++ b/src/hbcore/gui/hbmainwindow.h Fri May 14 16:09:54 2010 +0300
@@ -43,11 +43,6 @@
{
Q_OBJECT
- //Deprecated
- Q_PROPERTY(int currentViewIndex READ currentViewIndex WRITE setCurrentViewIndex)
- //Deprecated
- Q_PROPERTY(int viewCount READ viewCount)
-
Q_PROPERTY(Qt::Orientation orientation
READ orientation
WRITE setOrientation
@@ -58,17 +53,6 @@
explicit HbMainWindow(QWidget *parent = 0, Hb::WindowFlags windowFlags = Hb::WindowFlagNone);
~HbMainWindow();
- // deprecated
- QGraphicsWidget *removeView(int index);
- // deprecated
- int currentViewIndex() const;
- // deprecated
- int viewCount() const;
- // deprecated
- int indexOfView(HbView *view) const;
- // deprecated
- HbView *viewAt(int index) const;
-
HbView *addView(QGraphicsWidget *widget = 0);
HbView *insertView(int index, QGraphicsWidget *widget = 0);
void removeView(QGraphicsWidget *widget);
@@ -79,18 +63,7 @@
Qt::Orientation orientation() const;
void setOrientation(Qt::Orientation orientation, bool animate = true);
void unsetOrientation(bool animate = true);
-
- // Deprecated
- void showItems(Hb::SceneItems items);
- // Deprecated
- void hideItems(Hb::SceneItems items);
- // Deprecated
- Hb::SceneItems visibleItems() const;
- // Deprecated
- bool isItemVisible(Hb::SceneItem item) const;
- // Deprecated
- void setItemVisible(Hb::SceneItem item, bool visible);
-
+
WId nativeBackgroundWindow();
void resetNativeBackgroundWindow();
@@ -99,20 +72,13 @@
void setBackgroundImageName(Qt::Orientation orientation, const QString &name);
QString backgroundImageName(Qt::Orientation orientation) const;
+ void setAutomaticOrientationEffectEnabled(bool enabled = true);
+ bool automaticOrientationEffectEnabled() const;
+
public slots:
- // Deprecated
- void setCurrentViewIndex(int index);
- // Deprecated
- void nextView();
- // Deprecated
- void previousView();
-
void broadcastEvent( int eventType );
signals:
- // deprecated
- void currentViewIndexChanged(int index);
-
void viewReady();
void aboutToChangeView(HbView *oldView, HbView *newView);
void currentViewChanged(HbView *view);
@@ -138,7 +104,7 @@
Q_PRIVATE_SLOT(d_func(), void rootItemFirstPhaseDone(const HbEffect::EffectStatus& status))
Q_PRIVATE_SLOT(d_func(), void rootItemFinalPhaseDone(const HbEffect::EffectStatus& status))
Q_PRIVATE_SLOT(d_func(), void orientationEffectFinished(const HbEffect::EffectStatus& status))
- Q_PRIVATE_SLOT(d_func(), void _q_viewChanged(int))
+ Q_PRIVATE_SLOT(d_func(), void _q_viewChanged())
Q_PRIVATE_SLOT(d_func(), void _q_viewRemoved(QGraphicsWidget *))
Q_PRIVATE_SLOT(d_func(), void _q_viewTitleChanged(const QString &))
Q_PRIVATE_SLOT(d_func(), void _q_viewToolBarChanged())