[yast-commit] r42000 - in /branches/tmp/sh/mod-ui/web-wt/src: YWebPushButton.cc YWebPushButton.h YWebWidgetFactory.cc
Author: visnov Date: Tue Nov 13 11:36:28 2007 New Revision: 42000 URL: http://svn.opensuse.org/viewcvs/yast?rev=42000&view=rev Log: missing files Added: branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.cc branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.h Modified: branches/tmp/sh/mod-ui/web-wt/src/YWebWidgetFactory.cc Added: branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.cc?rev=42000&view=auto ============================================================================== --- branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.cc (added) +++ branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.cc Tue Nov 13 11:36:28 2007 @@ -0,0 +1,57 @@ +/*---------------------------------------------------------------------\ +| | +| __ __ ____ _____ ____ | +| \ \ / /_ _/ ___|_ _|___ \ | +| \ V / _` \___ \ | | __) | | +| | | (_| |___) || | / __/ | +| |_|\__,_|____/ |_| |_____| | +| | +| core system | +| (C) SuSE GmbH | +\----------------------------------------------------------------------/ + + File: YWebPushButton.cc + + Author: Stefan Hundhammer <sh@suse.de> + +/-*/ + + +#define y2log_component "web-ui" +#include <ycp/y2log.h> + +#include "YWebPushButton.h" + + +using std::string; + + +YWebPushButton::YWebPushButton( YWidget * parent, const string & label ) + : YPushButton( parent, label ) +{ +} + + +YWebPushButton::~YWebPushButton() +{ + // NOP +} + +int YWebPushButton::preferredWidth() +{ + // FIXME + return 1; +} + +int YWebPushButton::preferredHeight() +{ + // FIXME + return 1; +} + + +void YWebPushButton::setSize( int newWidth, int newHeight ) +{ + // FIXME +} + Added: branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.h?rev=42000&view=auto ============================================================================== --- branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.h (added) +++ branches/tmp/sh/mod-ui/web-wt/src/YWebPushButton.h Tue Nov 13 11:36:28 2007 @@ -0,0 +1,84 @@ +/*---------------------------------------------------------------------\ +| | +| __ __ ____ _____ ____ | +| \ \ / /_ _/ ___|_ _|___ \ | +| \ V / _` \___ \ | | __) | | +| | | (_| |___) || | / __/ | +| |_|\__,_|____/ |_| |_____| | +| | +| core system | +| (C) SuSE GmbH | +\----------------------------------------------------------------------/ + + File: YWebPushButton.h + + Author: Stefan Hundhammer <sh@suse.de> + +/-*/ + +#ifndef YWebPushButton_h +#define YWebPushButton_h + +#include <yui/YPushButton.h> + + +using std::string; + + +class YWebPushButton : public YPushButton +{ +public: + /** + * Constructor. + **/ + YWebPushButton( YWidget * parent, const string & label ); + + /** + * Destructor. + **/ + ~YWebPushButton(); + + /** + * Return a descriptive name of this widget class for logging, + * debugging etc. + **/ + virtual const char * widgetClass() const { return "YWebPushButton"; } + + /** + * Preferred width of the widget. + * + * Reimplemented from YWidget + **/ + virtual int preferredWidth(); + + /** + * Preferred height of the widget. + * + * Reimplemented from YWidget + **/ + virtual int preferredHeight(); + + /** + * Set the new size of the widget. + * + * Layout manager widgets (like YLayoutBox) call this during geometry + * management after all widgets are queried about their preferred widths + * and heights. Depending on layout constraints, widgets might be resized + * beyond or below their preferred size. + * + * The sizes passed here are not meant to affect any future + * preferredWidth() or preferredHeight() calls; they are just the outcome + * of all kinds of compromises (too little screen space or too much) for + * the current geometry management calculation. + * + * Reimplemented from YWidget + **/ + virtual void setSize( int newWidth, int newHeight ); + +}; + + +typedef YWebPushButton YWebIconButton; + + +#endif // YWebPushButton_h Modified: branches/tmp/sh/mod-ui/web-wt/src/YWebWidgetFactory.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/web-wt/src/YWebWidgetFactory.cc?rev=42000&r1=41999&r2=42000&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/web-wt/src/YWebWidgetFactory.cc (original) +++ branches/tmp/sh/mod-ui/web-wt/src/YWebWidgetFactory.cc Tue Nov 13 11:36:28 2007 @@ -16,13 +16,14 @@ /-*/ +#define y2log_component "web-ui" +#include <ycp/y2log.h> + #include "YWebWidgetFactory.h" +#include "YWebPushButton.h" #include <string> -#include "YTypes.h" - -#include "YWebPushButton.h" using std::string; @@ -88,6 +89,7 @@ YPushButton * YWebWidgetFactory::createPushButton ( YWidget * parent, const string & label ) { + y2milestone( "Creating push button '%s'", label.c_str() ); return new YWebPushButton( parent, label ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
visnov@svn.opensuse.org