Loading common/view/view_group.cpp +8 −9 Original line number Original line Diff line number Diff line Loading @@ -73,6 +73,14 @@ void VIEW_GROUP::Clear() updateBbox(); updateBbox(); } } void VIEW_GROUP::FreeItems() { BOOST_FOREACH( VIEW_ITEM* item, m_items ) { delete item; } m_items.clear(); } unsigned int VIEW_GROUP::GetSize() const unsigned int VIEW_GROUP::GetSize() const { { Loading Loading @@ -125,15 +133,6 @@ void VIEW_GROUP::ViewGetLayers( int aLayers[], int& aCount ) const } } void VIEW_GROUP::ViewUpdate( int aUpdateFlags, bool aForceImmediateRedraw ) { BOOST_FOREACH( VIEW_ITEM* item, m_items ) { item->ViewUpdate( aUpdateFlags, aForceImmediateRedraw ); } } void VIEW_GROUP::updateBbox() void VIEW_GROUP::updateBbox() { { // Save the used VIEW, as it used nulled during Remove() // Save the used VIEW, as it used nulled during Remove() Loading include/view/view_group.h +8 −1 Original line number Original line Diff line number Diff line Loading @@ -121,7 +121,7 @@ public: virtual void ViewGetLayers( int aLayers[], int& aCount ) const; virtual void ViewGetLayers( int aLayers[], int& aCount ) const; /// @copydoc VIEW_ITEM::ViewUpdate() /// @copydoc VIEW_ITEM::ViewUpdate() virtual void ViewUpdate( int aUpdateFlags, bool aForceImmediateRedraw ); //virtual void ViewUpdate( int aUpdateFlags, bool aForceImmediateRedraw ); /** /** * Function SetLayer() * Function SetLayer() Loading @@ -134,6 +134,13 @@ public: m_layer = aLayer; m_layer = aLayer; } } void FreeItems(); KiGfx::VIEW *GetView() const { return m_view; } protected: protected: /// These functions cannot be used with VIEW_GROUP as they are intended only to work with /// These functions cannot be used with VIEW_GROUP as they are intended only to work with /// singular VIEW_ITEMs (there is only one-to-one relation between item/layer combination and /// singular VIEW_ITEMs (there is only one-to-one relation between item/layer combination and Loading Loading
common/view/view_group.cpp +8 −9 Original line number Original line Diff line number Diff line Loading @@ -73,6 +73,14 @@ void VIEW_GROUP::Clear() updateBbox(); updateBbox(); } } void VIEW_GROUP::FreeItems() { BOOST_FOREACH( VIEW_ITEM* item, m_items ) { delete item; } m_items.clear(); } unsigned int VIEW_GROUP::GetSize() const unsigned int VIEW_GROUP::GetSize() const { { Loading Loading @@ -125,15 +133,6 @@ void VIEW_GROUP::ViewGetLayers( int aLayers[], int& aCount ) const } } void VIEW_GROUP::ViewUpdate( int aUpdateFlags, bool aForceImmediateRedraw ) { BOOST_FOREACH( VIEW_ITEM* item, m_items ) { item->ViewUpdate( aUpdateFlags, aForceImmediateRedraw ); } } void VIEW_GROUP::updateBbox() void VIEW_GROUP::updateBbox() { { // Save the used VIEW, as it used nulled during Remove() // Save the used VIEW, as it used nulled during Remove() Loading
include/view/view_group.h +8 −1 Original line number Original line Diff line number Diff line Loading @@ -121,7 +121,7 @@ public: virtual void ViewGetLayers( int aLayers[], int& aCount ) const; virtual void ViewGetLayers( int aLayers[], int& aCount ) const; /// @copydoc VIEW_ITEM::ViewUpdate() /// @copydoc VIEW_ITEM::ViewUpdate() virtual void ViewUpdate( int aUpdateFlags, bool aForceImmediateRedraw ); //virtual void ViewUpdate( int aUpdateFlags, bool aForceImmediateRedraw ); /** /** * Function SetLayer() * Function SetLayer() Loading @@ -134,6 +134,13 @@ public: m_layer = aLayer; m_layer = aLayer; } } void FreeItems(); KiGfx::VIEW *GetView() const { return m_view; } protected: protected: /// These functions cannot be used with VIEW_GROUP as they are intended only to work with /// These functions cannot be used with VIEW_GROUP as they are intended only to work with /// singular VIEW_ITEMs (there is only one-to-one relation between item/layer combination and /// singular VIEW_ITEMs (there is only one-to-one relation between item/layer combination and Loading