From 837ebd8ad2cdf2ddf50ba0ba5e7e78c489e4fcad Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 5 May 2015 14:18:28 +0300 Subject: [PATCH] fix build --- src/dlangide/ui/frame.d | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/src/dlangide/ui/frame.d b/src/dlangide/ui/frame.d index c9d91e2..11f2dc7 100644 --- a/src/dlangide/ui/frame.d +++ b/src/dlangide/ui/frame.d @@ -58,32 +58,10 @@ class BackgroundOperationWatcherTest : BackgroundOperationWatcher { } } -/// Subclass of toolbars that can update their items -class UpdateableToolBarComboBox : ToolBarComboBox { - this(string id, dstring[] items) { - super(id, items); - } - - @property items(dstring[] newItems) { - _adapter.items = newItems; - if(newItems.length > 0) { - selectedItemIndex = 0; - } - requestLayout(); - } - - @property dstring selectedItem() { - size_t index = _selectedItemIndex; - if(index < 0 || index >= _adapter.itemCount) return ""; - - return _adapter.items.get(index); - } -} - /// DIDE app frame class IDEFrame : AppFrame { - private UpdateableToolBarComboBox projectConfigurationCombo; + private ToolBarComboBox projectConfigurationCombo; MenuItem mainMenuItems; WorkspacePanel _wsPanel; @@ -464,7 +442,7 @@ class IDEFrame : AppFrame { tb.addButtons(ACTION_DEBUG_START); - projectConfigurationCombo = new UpdateableToolBarComboBox("projectConfig", [ProjectConfiguration.DEFAULT_NAME.to!dstring]); + projectConfigurationCombo = new ToolBarComboBox("projectConfig", [ProjectConfiguration.DEFAULT_NAME.to!dstring]);//Updateable projectConfigurationCombo.onItemClickListener = delegate(Widget source, int index) { if (currentWorkspace) { currentWorkspace.setStartupProjectConfiguration(projectConfigurationCombo.selectedItem.to!string);