Author: mkudlvasr
Date: Thu Mar 5 17:02:14 2009
New Revision: 55945
URL: http://svn.opensuse.org/viewcvs/yast?rev=55945&view=rev
Log:
add test and fix for bnc#459657
Added:
branches/SuSE-Code-11-Branch/gtk/tests/MultiLine.ycp
Modified:
branches/SuSE-Code-11-Branch/gtk/ChangeLog
branches/SuSE-Code-11-Branch/gtk/src/YGText.cc
Modified: branches/SuSE-Code-11-Branch/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/gtk/ChangeLog?rev=55945&r1=55944&r2=55945&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/gtk/ChangeLog (original)
+++ branches/SuSE-Code-11-Branch/gtk/ChangeLog Thu Mar 5 17:02:14 2009
@@ -1,3 +1,8 @@
+2009-03-05 Martin Kudlvasr
+
+ * add tests/MultiLine.ycp for bnc#459657
+ * src/YGText.cc: overload doSetEnabled for YGMultiLineEdit
+
2009-02-19 Martin Kudlvasr
* change src/YGDialog.cc to maximize window when screen width <= 800 OR
Modified: branches/SuSE-Code-11-Branch/gtk/src/YGText.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/gtk/src/YGText.cc?rev=55945&r1=55944&r2=55945&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/gtk/src/YGText.cc (original)
+++ branches/SuSE-Code-11-Branch/gtk/src/YGText.cc Thu Mar 5 17:02:14 2009
@@ -8,6 +8,7 @@
#include "YGUtils.h"
#include "YGWidget.h"
#include "ygtktextview.h"
+#include
class YGTextView : public YGScrolledWidget
{
@@ -120,6 +121,11 @@
return 30;
}
+ virtual void doSetEnabled (bool enabled)
+ {
+ gtk_text_view_set_editable(GTK_TEXT_VIEW (getWidget()), enabled);
+ }
+
YGLABEL_WIDGET_IMPL (YMultiLineEdit)
};
Added: branches/SuSE-Code-11-Branch/gtk/tests/MultiLine.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/gtk/tests/MultiLine.ycp?rev=55945&view=auto
==============================================================================
--- branches/SuSE-Code-11-Branch/gtk/tests/MultiLine.ycp (added)
+++ branches/SuSE-Code-11-Branch/gtk/tests/MultiLine.ycp Thu Mar 5 17:02:14 2009
@@ -0,0 +1,62 @@
+// MultiLine Example
+{
+ string description = "Below is test Archive Description, please ignore its content
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+PSA Peugeot Citroën Chooses SUSE Linux Enterprise Desktop from Novell
+PARIS (Solutions Linux 2007)
+30 Jan 2007
+
+Giant French automaker to deploy Linux desktops, citing cost, usability, integration and support
+
+PSA Peugeot Citroën, the second-largest automobile manufacturer in Europe, and Novell just signed a multiyear contract allowing the deployment of up to 20,000 Linux* desktops plus 2,500 Linux servers from Novell.
+
+âWe found SUSE® Linux Enterprise Desktop to be well supported and extremely user friendly,â said an IT representative for PSA Peugeot Citroën. âNovell's commitment to open source and close collaboration with leading hardware and application vendors to ensure the support of our IT requirements were key factors in our choice. In addition, SUSE Linux Enterprise Desktop integrates seamlessly in our Windows-based infrastructure.â
+
+Ron Hovsepian, president and CEO of Novell, said, âPSA Peugeot Citroën has discovered the value a market-ready Linux platform can bring to their business, and SUSE Linux Enterprise Desktop is the market's only enterprise-class Linux desktop ready for routine business use. We are pleased to provide a compelling alternative to PSA Peugeot Citroën's current proprietary desktop platform and help the organization reduce costs while advancing its next-generation IT architecture.â
+
+SUSE Linux Enterprise Desktop delivers ease of use at lower hardware cost and many innovative features including three-dimensional desktop graphics, integrated search and a fully compatible office productivity suite through the Novell® edition of OpenOffice.org 2, all at a small fraction of the price of the proprietary operating system and office suite alternatives. SUSE Linux Enterprise Desktop is suited for complete desktop replacements, retail point of service solutions, thin-client deployments and engineering workstations. For more information on SUSE Linux Enterprise offerings from Novell, visit http://www.novell.com/linux.
+About Novell
+
+Novell, Inc. (Nasdaq: NOVL) delivers infrastructure software for the Open Enterprise. We are a leader in enterprise-wide operating systems based on Linux and open source and the security and systems management services required to operate mixed IT environments. We help our customers minimize cost, complexity and risk, allowing them to focus on innovation and growth. For more information, visit http://www.novell.com .
+
+Novell and SUSE are registered trademarks of Novell, Inc. in the United States and other countries. *Linux is a registered trademark of Linus Torvalds. All other third-party trademarks are the property of their respective owners.
+Press Contact
+
+Ian Bruce
+Novell, Inc.
+Telephone: +1 781 464-8034
+Email: ibruce@novell.com";
+ UI::OpenDialog (
+ `VBox (
+ `RadioButtonGroup (`id(`rb),
+ `VBox(
+ `Left (`RadioButton(`id(`edit_enabled), `opt(`notify), "&Enabled", true)),
+ `Left (`RadioButton(`id(`edit_disabled), `opt(`notify), "&Disabled"))
+ )
+ ),
+ `ReplacePoint (`id(`replace_edit),
+ `MultiLineEdit(`id(`description), `opt(nil),"Archive &Description", description)
+ ),
+ `PushButton(`id (`close), "&Close")
+ )
+ );
+
+ any ret = nil;
+ while (true)
+ {
+ ret = UI::UserInput();
+ if (ret == `close || ret == `cancel)
+ break;
+ any edit_status = nil;
+ if ((boolean) UI::QueryWidget(`id(`edit_enabled), `Value))
+ edit_status = nil;
+ else if ((boolean) UI::QueryWidget(`id(`edit_disabled), `Value))
+ edit_status = `disabled;
+ UI::ReplaceWidget (`replace_edit,
+ `MultiLineEdit(`id(`description), `opt(edit_status),
+ "Archive &Description", description));
+ }
+
+ UI::CloseDialog();
+}
+
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org