2 #define y2log_component "web-ui"
6 #include "YWebPushButton.h"
8 #include <WContainerWidget>
10 #include <WApplication>
14 using Wt::Ext::Button;
18 #include <sys/syscall.h>
19 #include <sys/types.h>
24 tid = syscall(SYS_gettid);
30 extern WApplication* _wApp;
32 YWebPushButton::YWebPushButton( YWidget * parent, const string & label )
33 : YPushButton( parent, label ), Button( label, (WContainerWidget *) parent->widgetRep() )
38 y2security( "Using application %p, tid %d", _wApp, gettid());
39 setWidgetRep( new WPushButton(label, _wApp->root() ) );
41 y2milestone( "Pushbutton %s created", label.c_str());
45 YWebPushButton::~YWebPushButton()
50 int YWebPushButton::preferredWidth()
56 int YWebPushButton::preferredHeight()
63 void YWebPushButton::setSize( int newWidth, int newHeight )