[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [oxygen-gtk/argb] src/animations
From: Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date: 2011-01-21 14:23:44
Message-ID: 20110121142344.6789AA60BB () git ! kde ! org
[Download RAW message or body]
Git commit fe5d813c2ae25be30edaedddda68a2e9f0570f9a by Hugo Pereira Da Costa
Pushed by hpereiradacosta into branch argb
added placeholders for hooks in Oxygen::Animations.
M +17 -1 src/animations/oxygenanimations.cpp
M +16 -0 src/animations/oxygenanimations.h
http://commits.kde.org/d1a86b4e/fe5d813c2ae25be30edaedddda68a2e9f0570f9a
diff --git a/src/animations/oxygenanimations.cpp b/src/animations/oxygenanimations.cpp
index 86b8292..b8e75d7 100644
--- a/src/animations/oxygenanimations.cpp
+++ b/src/animations/oxygenanimations.cpp
@@ -29,7 +29,8 @@ namespace Oxygen
//_________________________________________
Animations::Animations( void ):
- _enabled( true )
+ _enabled( true ),
+ _hooksInitialized( false )
{
// create engines
@@ -51,8 +52,23 @@ namespace Oxygen
//____________________________________________________________________________________________
Animations::~Animations( void )
{
+
+ // delete all engines
for( BaseEngine::List::iterator iter = _engines.begin(); iter != _engines.end(); ++iter )
{ delete *iter; }
+
+ // clear hooks
+ _comboBoxHook.disconnect();
+
+ // FIXME: should we also clear the allWidgets list ?
+
+ }
+
+ //____________________________________________________________________________________________
+ void Animations::initializeHooks( void )
+ {
+ if( _hooksInitialized ) return;
+ _hooksInitialized = true;
}
//____________________________________________________________________________________________
diff --git a/src/animations/oxygenanimations.h b/src/animations/oxygenanimations.h
index c73e54f..b6c017f 100644
--- a/src/animations/oxygenanimations.h
+++ b/src/animations/oxygenanimations.h
@@ -26,6 +26,7 @@
#include "oxygencomboboxengine.h"
#include "oxygencomboboxentryengine.h"
#include "oxygendialogengine.h"
+#include "oxygenhook.h"
#include "oxygenhoverengine.h"
#include "oxygenmainwindowengine.h"
#include "oxygenmenushellengine.h"
@@ -54,6 +55,9 @@ namespace Oxygen
//! destructor
virtual ~Animations( void );
+ //! initialize hooks
+ void initializeHooks( void );
+
//! unregister widget
bool registerWidget( GtkWidget* );
@@ -171,6 +175,18 @@ namespace Oxygen
//! widget size engine
WidgetSizeEngine* _widgetSizeEngine;
+ //!@name hooks
+ //@{
+
+ //! true when hooks are initialized
+ bool _hooksInitialized;
+
+ //! combobox hook
+ Hook _comboBoxHook;
+
+
+ //@}
+
//! keep track of destruction and style change signals
/*!
this is needed so that signals are disconnected when either
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic