eric6/Preferences/ConfigurationPages/CorbaPage.py

changeset 6942
2602857055c5
parent 6645
ad476851d7e0
child 7229
53054eb5b15a
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2006 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the Corba configuration page.
8 """
9
10 from __future__ import unicode_literals
11
12 from E5Gui.E5PathPicker import E5PathPickerModes
13
14 from .ConfigurationPageBase import ConfigurationPageBase
15 from .Ui_CorbaPage import Ui_CorbaPage
16
17 import Preferences
18
19
20 class CorbaPage(ConfigurationPageBase, Ui_CorbaPage):
21 """
22 Class implementing the Corba configuration page.
23 """
24 def __init__(self):
25 """
26 Constructor
27 """
28 super(CorbaPage, self).__init__()
29 self.setupUi(self)
30 self.setObjectName("CorbaPage")
31
32 self.idlPicker.setMode(E5PathPickerModes.OpenFileMode)
33 self.idlPicker.setToolTip(self.tr(
34 "Press to select the IDL compiler via a file selection dialog."))
35
36 # set initial values
37 self.idlPicker.setText(Preferences.getCorba("omniidl"))
38
39 def save(self):
40 """
41 Public slot to save the Corba configuration.
42 """
43 Preferences.setCorba("omniidl", self.idlPicker.text())
44
45
46 def create(dlg):
47 """
48 Module function to create the configuration page.
49
50 @param dlg reference to the configuration dialog
51 @return reference to the instantiated page (ConfigurationPageBase)
52 """
53 page = CorbaPage()
54 return page

eric ide

mercurial