17 from .ConfigurationPageBase import ConfigurationPageBase |
17 from .ConfigurationPageBase import ConfigurationPageBase |
18 from .Ui_DebuggerRubyPage import Ui_DebuggerRubyPage |
18 from .Ui_DebuggerRubyPage import Ui_DebuggerRubyPage |
19 |
19 |
20 import Preferences |
20 import Preferences |
21 import Utilities |
21 import Utilities |
|
22 import UI.PixmapCache |
22 |
23 |
23 |
24 |
24 class DebuggerRubyPage(ConfigurationPageBase, Ui_DebuggerRubyPage): |
25 class DebuggerRubyPage(ConfigurationPageBase, Ui_DebuggerRubyPage): |
25 """ |
26 """ |
26 Class implementing the Debugger Ruby configuration page. |
27 Class implementing the Debugger Ruby configuration page. |
30 Constructor |
31 Constructor |
31 """ |
32 """ |
32 super(DebuggerRubyPage, self).__init__() |
33 super(DebuggerRubyPage, self).__init__() |
33 self.setupUi(self) |
34 self.setupUi(self) |
34 self.setObjectName("DebuggerRubyPage") |
35 self.setObjectName("DebuggerRubyPage") |
|
36 |
|
37 self.rubyInterpreterButton.setIcon(UI.PixmapCache.getIcon("open.png")) |
35 |
38 |
36 self.rubyInterpreterCompleter = E5FileCompleter( |
39 self.rubyInterpreterCompleter = E5FileCompleter( |
37 self.rubyInterpreterEdit) |
40 self.rubyInterpreterEdit) |
38 |
41 |
39 # set initial values |
42 # set initial values |
58 """ |
61 """ |
59 Private slot to handle the Ruby interpreter selection. |
62 Private slot to handle the Ruby interpreter selection. |
60 """ |
63 """ |
61 file = E5FileDialog.getOpenFileName( |
64 file = E5FileDialog.getOpenFileName( |
62 self, |
65 self, |
63 self.trUtf8("Select Ruby interpreter for Debug Client"), |
66 self.tr("Select Ruby interpreter for Debug Client"), |
64 self.rubyInterpreterEdit.text()) |
67 self.rubyInterpreterEdit.text()) |
65 |
68 |
66 if file: |
69 if file: |
67 self.rubyInterpreterEdit.setText( |
70 self.rubyInterpreterEdit.setText( |
68 Utilities.toNativeSeparators(file)) |
71 Utilities.toNativeSeparators(file)) |