[Monodevelop-patches-list] r1070 - in trunk/MonoDevelop: data/resources/glade src/Main/Base/Gui/Dialogs/OptionPanels/ProjectOptions
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Feb 29 21:34:33 EST 2004
Author: dkor
Date: 2004-02-29 21:34:33 -0500 (Sun, 29 Feb 2004)
New Revision: 1070
Modified:
trunk/MonoDevelop/data/resources/glade/Base.glade
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/ProjectOptions/GeneralProjectOptions.cs
Log:
Internationalized, Modified GeneralProjectPanelproperties in UI
Modified: trunk/MonoDevelop/data/resources/glade/Base.glade
===================================================================
--- trunk/MonoDevelop/data/resources/glade/Base.glade 2004-02-29 21:36:41 UTC (rev 1069)
+++ trunk/MonoDevelop/data/resources/glade/Base.glade 2004-03-01 02:34:33 UTC (rev 1070)
@@ -2958,9 +2958,9 @@
<property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label56">
+ <widget class="GtkLabel" id="informationHeaderLabel">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Project Information</b></property>
+ <property name="label" translatable="yes"><b>Project Information-</b></property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -3024,9 +3024,9 @@
<property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label53">
+ <widget class="GtkLabel" id="nameLabel">
<property name="visible">True</property>
- <property name="label" translatable="yes">_Name</property>
+ <property name="label" translatable="yes">_Name-</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -3072,7 +3072,7 @@
</child>
<child>
- <widget class="GtkEntry" id="ProjectNameEntry">
+ <widget class="GtkEntry" id="projectNameEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
@@ -3118,9 +3118,9 @@
<property name="spacing">0</property>
<child>
- <widget class="GtkLabel" id="label44">
+ <widget class="GtkLabel" id="descriptionLabel">
<property name="visible">True</property>
- <property name="label" translatable="yes">_Description</property>
+ <property name="label" translatable="yes">_Description-</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -3177,7 +3177,7 @@
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
- <widget class="GtkTextView" id="ProjectDescriptionTextView">
+ <widget class="GtkTextView" id="projectDescriptionTextView">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
@@ -3216,10 +3216,10 @@
</child>
<child>
- <widget class="GtkCheckButton" id="EnableViewStateCheckButton">
+ <widget class="GtkCheckButton" id="enableViewStateCheckButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Enable _viewstate</property>
+ <property name="label" translatable="yes">Enable _viewstate-</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@@ -3261,9 +3261,9 @@
<property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label52">
+ <widget class="GtkLabel" id="onProjectLoadHeaderLabel">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>On Project Load </b></property>
+ <property name="label" translatable="yes"><b>On Project Load- </b></property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -3309,10 +3309,10 @@
</child>
<child>
- <widget class="GtkCheckButton" id="NewFilesOnLoadCheckButton">
+ <widget class="GtkCheckButton" id="newFilesOnLoadCheckButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Search for new _files on load</property>
+ <property name="label" translatable="yes">Search for new _files on load-</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@@ -3382,10 +3382,10 @@
</child>
<child>
- <widget class="GtkCheckButton" id="AutoInsertNewFilesCheckButton">
+ <widget class="GtkCheckButton" id="autoInsertNewFilesCheckButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Automaticly _include found files</property>
+ <property name="label" translatable="yes">Automaticly _include found files-</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/ProjectOptions/GeneralProjectOptions.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/ProjectOptions/GeneralProjectOptions.cs 2004-02-29 21:36:41 UTC (rev 1069)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/ProjectOptions/GeneralProjectOptions.cs 2004-03-01 02:34:33 UTC (rev 1070)
@@ -33,53 +33,82 @@
class GeneralProjectOptionsWidget : GladeWidgetExtract {
// Gtk Controls
- [Glade.Widget] Entry ProjectNameEntry;
- [Glade.Widget] TextView ProjectDescriptionTextView;
- [Glade.Widget] CheckButton NewFilesOnLoadCheckButton;
- [Glade.Widget] CheckButton AutoInsertNewFilesCheckButton;
- [Glade.Widget] CheckButton EnableViewStateCheckButton;
+ [Glade.Widget] Label informationHeaderLabel;
+ [Glade.Widget] Label nameLabel;
+ [Glade.Widget] Label descriptionLabel;
+ [Glade.Widget] Label onProjectLoadHeaderLabel;
+ [Glade.Widget] Entry projectNameEntry;
+ [Glade.Widget] TextView projectDescriptionTextView;
+ [Glade.Widget] CheckButton newFilesOnLoadCheckButton;
+ [Glade.Widget] CheckButton autoInsertNewFilesCheckButton;
+ [Glade.Widget] CheckButton enableViewStateCheckButton;
+ // Services
+ StringParserService StringParserService = (StringParserService)ServiceManager.Services.GetService (
+ typeof (StringParserService));
IProject project;
+
+
public GeneralProjectOptionsWidget (IProperties CustomizationObject) : base ("Base.glade", "GeneralProjectOptionsPanel")
{
this.project = (IProject)((IProperties)CustomizationObject).GetProperty("Project");
+
+ nameLabel.Text = StringParserService.Parse(
+ "${res:Dialog.Options.PrjOptions.General.ProjectNameLabel}");
+ nameLabel.UseUnderline = true;
- ProjectNameEntry.Text = project.Name;
- ProjectDescriptionTextView.Buffer.Text = project.Description;
- EnableViewStateCheckButton.Active = project.EnableViewState;
+ descriptionLabel.Text = StringParserService.Parse(
+ "${res:Dialog.Options.PrjOptions.General.ProjectDescriptionLabel}");
+ descriptionLabel.UseUnderline = true;
+
+ // FIXME: il8n this
+ informationHeaderLabel.Markup = "<b>" + "Project Information" + "</b>";
+ // FIXME: il8n this
+ onProjectLoadHeaderLabel.Markup = "<b>" + "On Project Load" + "</b>";
+
+ newFilesOnLoadCheckButton.Label = StringParserService.Parse(
+ "${res:Dialog.Options.PrjOptions.General.SearchNewFileOnLoadCheckBox}");
+ autoInsertNewFilesCheckButton.Label = StringParserService.Parse(
+ "${res:Dialog.Options.PrjOptions.General.AutoIncludeFilesCheckBox}");
+ enableViewStateCheckButton.Label = StringParserService.Parse(
+ "${res:Dialog.Options.PrjOptions.General.ViewStateCheckBox}" );
+
+ projectNameEntry.Text = project.Name;
+ projectDescriptionTextView.Buffer.Text = project.Description;
+ enableViewStateCheckButton.Active = project.EnableViewState;
switch (project.NewFileSearch)
{
case NewFileSearch.None:
- NewFilesOnLoadCheckButton.Active = false;
- AutoInsertNewFilesCheckButton.Active = false;
+ newFilesOnLoadCheckButton.Active = false;
+ autoInsertNewFilesCheckButton.Active = false;
break;
case NewFileSearch.OnLoad:
- NewFilesOnLoadCheckButton.Active = true;
- AutoInsertNewFilesCheckButton.Active = false;
+ newFilesOnLoadCheckButton.Active = true;
+ autoInsertNewFilesCheckButton.Active = false;
break;
default:
- NewFilesOnLoadCheckButton.Active = true;
- AutoInsertNewFilesCheckButton.Active = true;
+ newFilesOnLoadCheckButton.Active = true;
+ autoInsertNewFilesCheckButton.Active = true;
break;
}
- NewFilesOnLoadCheckButton.Clicked += new EventHandler(AutoLoadCheckBoxCheckedChangeEvent);
+ newFilesOnLoadCheckButton.Clicked += new EventHandler(AutoLoadCheckBoxCheckedChangeEvent);
AutoLoadCheckBoxCheckedChangeEvent(null, null);
}
void AutoLoadCheckBoxCheckedChangeEvent(object sender, EventArgs e)
{
- AutoInsertNewFilesCheckButton.Sensitive = false;
- AutoInsertNewFilesCheckButton.Active = NewFilesOnLoadCheckButton.Active;
+ autoInsertNewFilesCheckButton.Sensitive = false;
+ autoInsertNewFilesCheckButton.Active = newFilesOnLoadCheckButton.Active;
// FIXME: leave this deselected and checked by default for 0.1 release, uncomment again after release
/*
- AutoInsertNewFilesCheckButton.Sensitive = NewFilesOnLoadCheckButton.Active;
- if (NewFilesOnLoadCheckButton.Active == false)
+ autoInsertNewFilesCheckButton.Sensitive = newFilesOnLoadCheckButton.Active;
+ if (newFilesOnLoadCheckButton.Active == false)
{
- AutoInsertNewFilesCheckButton.Active = false;
+ autoInsertNewFilesCheckButton.Active = false;
}
*/
}
@@ -87,12 +116,12 @@
public void Store (IProperties CustomizationObject)
{
- project.Name = ProjectNameEntry.Text;
- project.Description = ProjectDescriptionTextView.Buffer.Text;
- project.EnableViewState = EnableViewStateCheckButton.Active;
+ project.Name = projectNameEntry.Text;
+ project.Description = projectDescriptionTextView.Buffer.Text;
+ project.EnableViewState = enableViewStateCheckButton.Active;
- if (NewFilesOnLoadCheckButton.Active) {
- project.NewFileSearch = AutoInsertNewFilesCheckButton.Active ? NewFileSearch.OnLoadAutoInsert : NewFileSearch.OnLoad;
+ if (newFilesOnLoadCheckButton.Active) {
+ project.NewFileSearch = autoInsertNewFilesCheckButton.Active ? NewFileSearch.OnLoadAutoInsert : NewFileSearch.OnLoad;
} else {
project.NewFileSearch = NewFileSearch.None;
}
More information about the Monodevelop-patches-list
mailing list