platform/shared/qt/rhodes/impl/NativeToolbarImpl.h in rhodes-3.5.1.12 vs platform/shared/qt/rhodes/impl/NativeToolbarImpl.h in rhodes-5.5.0
- old
+ new
@@ -29,43 +29,20 @@
#include "logging/RhoLog.h"
#include "common/IRhoThreadImpl.h"
#include "ruby/ext/rho/rhoruby.h"
-class CNativeToolbar
+/*class CNativeToolbar
{
DEFINE_LOGCLASS;
-public:
- static const int MIN_TOOLBAR_HEIGHT = 60;
-
-public:
- class CCreateTask: public rho::common::IRhoRunnable
- {
- rho_param *m_param;
- public:
- CCreateTask(rho_param *p) : m_param(rho_param_dup(p)){ }
- ~CCreateTask(){ rho_param_free(m_param); }
- virtual void runObject(){
- CNativeToolbar::getInstance().createToolbar(m_param);
- }
- };
- class CRemoveTask: public rho::common::IRhoRunnable
- {
- public:
- virtual void runObject(){
- CNativeToolbar::getInstance().removeToolbar();
- }
- };
-
-public:
- CNativeToolbar(void) {};
+public:*/
+ static const int MIN_TOOLBAR_HEIGHT = 60;
+/* CNativeToolbar(void) {};
~CNativeToolbar(void) {};
- static CNativeToolbar& getInstance();
- int getHeight();
- bool isStarted();
-private:
- void createToolbar(rho_param *param);
- void removeToolbar();
-};
+};*/
+
+bool rho_osximpl_toolbar_isStarted();
+void rho_osximpl_toolbar_create( const rho::Vector<rho::String>& toolbarElements, const rho::Hashtable<rho::String, rho::String>& toolBarProperties);
+void rho_osximpl_toolbar_remove();
#endif // NATIVETOOLBARIMPL_H