~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                                ci.Icon = pad.Icon;
71
71
                                ci.UseMarkup = true;
72
72
                                ci.Description = GettextCatalog.GetString ("Show {0}", pad.Title);
73
 
                                ci.Checked = pad.Visible;
74
73
 
75
74
                                ActionCommand cmd = IdeApp.CommandService.GetActionCommand ("Pad|" + pad.Id);
76
75
                                if (cmd != null) ci.AccelKey = cmd.AccelKey; 
157
156
        {
158
157
                protected override void Update (CommandInfo info)
159
158
                {
160
 
                        info.Enabled = !String.Equals ("Default", IdeApp.Workbench.CurrentLayout, StringComparison.OrdinalIgnoreCase);
 
159
                        info.Enabled = !String.Equals ("Solution", IdeApp.Workbench.CurrentLayout, StringComparison.OrdinalIgnoreCase);
161
160
                }
162
161
                protected override void Run ()
163
162
                {
164
163
                        if (MessageService.Confirm (GettextCatalog.GetString ("Are you sure you want to delete the active layout?"), AlertButton.Delete)) {
165
164
                                string clayout = IdeApp.Workbench.CurrentLayout;
166
 
                                IdeApp.Workbench.CurrentLayout = "Default";
 
165
                                IdeApp.Workbench.CurrentLayout = "Solution";
167
166
                                IdeApp.Workbench.DeleteLayout (clayout);
168
167
                        }
169
168
                }
173
172
        {
174
173
                protected override void Update (CommandInfo info)
175
174
                {
176
 
                        base.Update (info);
177
 
                        info.Checked = IdeApp.Workbench.FullScreen;
 
175
                        if (Platform.IsMac) {
 
176
                                info.Text = IdeApp.Workbench.FullScreen
 
177
                                        ? GettextCatalog.GetString ("Exit Full Screen")
 
178
                                        : GettextCatalog.GetString ("Enter Full Screen");
 
179
                        } else {
 
180
                                info.Checked = IdeApp.Workbench.FullScreen;
 
181
                        }
178
182
                }
179
183
                
180
184
                protected override void Run ()