Author: sh-sh-sh
Date: Fri Nov 30 17:23:38 2007
New Revision: 42566
URL: http://svn.opensuse.org/viewcvs/yast?rev=42566&view=rev
Log:
Created tag stable-2_16_6 for qt
Added:
tags/stable-2_16_6/qt/
- copied from r42565, trunk/qt/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: sh-sh-sh
Date: Fri Nov 30 17:22:19 2007
New Revision: 42565
URL: http://svn.opensuse.org/viewcvs/yast?rev=42565&view=rev
Log:
Created tag stable-2_16_11 for core
Added:
tags/stable-2_16_11/core/
- copied from r42564, trunk/core/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: sh-sh-sh
Date: Fri Nov 30 17:19:57 2007
New Revision: 42563
URL: http://svn.opensuse.org/viewcvs/yast?rev=42563&view=rev
Log:
new version for abuild
Modified:
trunk/core/VERSION
trunk/core/libyui/src/ChangeLog
trunk/core/package/yast2-core.changes
Modified: trunk/core/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=42563&r1=42562&…
==============================================================================
--- trunk/core/VERSION (original)
+++ trunk/core/VERSION Fri Nov 30 17:19:57 2007
@@ -1 +1 @@
-2.16.10
+2.16.11
Modified: trunk/core/libyui/src/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/ChangeLog?rev=42…
==============================================================================
--- trunk/core/libyui/src/ChangeLog (original)
+++ trunk/core/libyui/src/ChangeLog Fri Nov 30 17:19:57 2007
@@ -438,4 +438,16 @@
* Moved WizardCommand parsing out to YCPWizardCommandParser
* Added lots of pure virtual functions to YWizard
* All YCPValue and other YCP related code can now be removed from
- YWizard-derived classes
\ No newline at end of file
+ YWizard-derived classes
+
+
+2007-11-30 sh(a)suse.de
+
+* Migrated YDialog
+* Removed YContainerWidget for good
+* Removed legacy YWidget::queryWidget() and YWidget::changeWidget() methods
+* Dropped support for outdated property handling with old
+ YWidget::queryWidget() and YWidget::changeWidget() methods
+* Dropped support for outdated YWidget( YWidgetOpt ) constructors
+* Removed unneeded YWidgetOpt fields
+* Added basic default button handling to YDialog and YPushButton
\ No newline at end of file
Modified: trunk/core/package/yast2-core.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?…
==============================================================================
--- trunk/core/package/yast2-core.changes (original)
+++ trunk/core/package/yast2-core.changes Fri Nov 30 17:19:57 2007
@@ -1,4 +1,25 @@
-------------------------------------------------------------------
+Fri Nov 30 17:15:47 CET 2007 - sh(a)suse.de
+
+- Removed YContainerWidget for good
+- Removed legacy YWidget::queryWidget() and YWidget::changeWidget()
+ methods
+- Dropped support for outdated property handling with old
+ YWidget::queryWidget() and YWidget::changeWidget() methods
+- Dropped support for outdated YWidget( YWidgetOpt ) constructors
+- Unified Y*WidgetFactory::create*Dialog() methods:
+ - Added pure virtual YWidgetFactory::createDialog( type, colorMode)
+ - Made YWidgetFactory::createMainDialog() and
+ YWidgetFactory::createPopupDialog() non-virtual
+- Moved special YInputField macro handling for passwords
+ to YMacroRecorder (don't record passwords in macros)
+- Removed unneeded YWidgetOpt fields
+- Catch exceptions in evaluateReplaceWidget
+ (more graceful error handling)
+- Added basic default button handling to YDialog, YPushButton
+- V 2.16.11
+
+-------------------------------------------------------------------
Thu Nov 29 17:41:50 CET 2007 - locilka(a)suse.cz
- Added some examples to UI::GetDisplayInfo() documentation.
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: sh-sh-sh
Date: Fri Nov 30 17:12:18 2007
New Revision: 42560
URL: http://svn.opensuse.org/viewcvs/yast?rev=42560&view=rev
Log:
Added default button handling
Modified:
trunk/core/libyui/src/YDialog.cc
trunk/core/libyui/src/YDialog.h
trunk/core/libyui/src/YPushButton.cc
Modified: trunk/core/libyui/src/YDialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/YDialog.cc?rev=4…
==============================================================================
--- trunk/core/libyui/src/YDialog.cc (original)
+++ trunk/core/libyui/src/YDialog.cc Fri Nov 30 17:12:18 2007
@@ -22,6 +22,7 @@
#include <ycp/YCPSymbol.h>
#include "YDialog.h"
#include "YShortcutManager.h"
+#include "YPushButton.h"
#include "YUIException.h"
using std::string;
@@ -43,6 +44,7 @@
YDialogType dialogType;
YDialogColorMode colorMode;
bool shortcutCheckPostponed;
+ YPushButton * defaultButton;
};
@@ -115,6 +117,26 @@
}
+YPushButton *
+YDialog::defaultButton() const
+{
+ return priv->defaultButton;
+}
+
+
+void
+YDialog::setDefaultButton( YPushButton * newDefaultButton )
+{
+ if ( newDefaultButton && priv->defaultButton ) // already have one?
+ {
+ y2error( "Too many `opt(`default) PushButtons: [%s]",
+ newDefaultButton->label().c_str() );
+ }
+
+ priv->defaultButton = newDefaultButton;
+}
+
+
void
YDialog::setInitialSize()
{
Modified: trunk/core/libyui/src/YDialog.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/YDialog.h?rev=42…
==============================================================================
--- trunk/core/libyui/src/YDialog.h (original)
+++ trunk/core/libyui/src/YDialog.h Fri Nov 30 17:12:18 2007
@@ -25,9 +25,10 @@
class YMacroRecorder;
class YShortcutManager;
+class YPushButton;
class YDialogPrivate;
-// See YTypes.h for enum YDialogType and enum YDialogColorMode
+// See YTypes.h for enum YDialogType and enum YDialogColorMode
class YDialog : public YSingleChildContainerWidget
@@ -62,7 +63,7 @@
* Delete the topmost dialog.
*
* Will throw a YUINoDialogException if there is no dialog and 'doThrow' is
- * 'true'.
+ * 'true'.
*
* Returns 'true' if there is another open dialog after deleting,
* 'false' if there is none.
@@ -84,7 +85,7 @@
* Return the current (topmost) dialog.
*
* If there is none, throw a YUINoDialogException if 'doThrow' is 'true'
- * and return 0 if 'doThrow' is false.
+ * and return 0 if 'doThrow' is false.
**/
static YDialog * currentDialog( bool doThrow = true );
@@ -132,6 +133,27 @@
bool shortcutCheckPostponed() const;
/**
+ * Return this dialog's default button: The button that is activated when
+ * the user hits [Return] anywhere in this dialog. Note that this is not
+ * the same as the button that currently has the keyboard focus.
+ *
+ * This might return 0 if there is no default button.
+ **/
+ YPushButton * defaultButton() const;
+
+ /**
+ * Set this dialog's default button (the button that is activated when
+ * the user hits [Return] anywhere in this dialog). 0 means no default
+ * button.
+ *
+ * There should be no more than one default button in a dialog.
+ *
+ * Derived classes are free to overwrite this method, but they should
+ * call this base class method in the new implementation.
+ **/
+ virtual void setDefaultButton( YPushButton * defaultButton );
+
+ /**
* Implements the ui command queryWidget
**/
YCPValue queryWidget( const YCPSymbol & property );
@@ -139,7 +161,7 @@
protected:
static std::stack<YDialog *> _dialogStack;
-
+
private:
ImplPtr<YDialogPrivate> priv;
Modified: trunk/core/libyui/src/YPushButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/YPushButton.cc?r…
==============================================================================
--- trunk/core/libyui/src/YPushButton.cc (original)
+++ trunk/core/libyui/src/YPushButton.cc Fri Nov 30 17:12:18 2007
@@ -22,6 +22,7 @@
#include "YUI.h"
#include "YApplication.h"
+#include "YDialog.h"
#include "YUISymbols.h"
#include "YPushButton.h"
@@ -57,7 +58,12 @@
YPushButton::~YPushButton()
{
- // NOP
+ YDialog * dialog = findDialog();
+
+ if ( dialog && dialog->defaultButton() == this )
+ {
+ dialog->setDefaultButton( 0 );
+ }
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org