Fix settings
PATCH v2 1/1 Fix settings
Fix some issues with the settings dialog that were introduced as a result of merging the fix for #2162.
The second version of the patch removes a stray "distro" combobox from simple settings.
[YOCTO #3117]
--- bitbake/lib/bb/ui/crumbs/hig.py | 228 ++++++++++++-------------- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 2 +- 2 files changed, 110 insertions(+), 120 deletions(-)
bitbake/lib/bb/ui/crumbs/hig.py +109 -119
@@ -195,7 +195,6 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper): self.max_threads = max_threads # class members for internal use - self.distro_combo = None self.dldir_text = None self.sstatedir_text = None self.sstatemirror_text = None
@@ -330,7 +329,6 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper): self.refresh_proxy_components() def response_cb(self, dialog, response_id): - #self.configuration.curr_distro = self.distro_combo.get_active_text() self.configuration.dldir = self.dldir_text.get_text() self.configuration.sstatedir = self.sstatedir_text.get_text() self.configuration.sstatemirror = self.sstatemirror_text.get_text()
@@ -352,6 +350,115 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper): md5 = self.config_md5() self.settings_changed = (self.md5 != md5) + def create_build_environment_page(self): + advanced_vbox = gtk.VBox(False, 6) + advanced_vbox.set_border_width(6) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">BB number threads:</span>") + tooltip = "Sets the number of threads that BitBake tasks can simultaneously run. See the <a href=\"" + tooltip += "http://www.yoctoproject.org/docs/current/poky-ref-manual/" + tooltip += "poky-ref-manual.html#var-BB_NUMBER_THREADS\">Poky reference manual</a> for information" + bbthread_widget, self.bb_spinner = self.gen_spinner_widget(self.configuration.bbthread, 1, self.max_threads, tooltip) + sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(bbthread_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Parallel make:</span>") + tooltip = "Sets the maximum number of threads the host can use during the build. See the <a href=\"" + tooltip += "http://www.yoctoproject.org/docs/current/poky-ref-manual/" + tooltip += "poky-ref-manual.html#var-PARALLEL_MAKE\">Poky reference manual</a> for information" + pmake_widget, self.pmake_spinner = self.gen_spinner_widget(self.configuration.pmake, 1, self.max_threads, tooltip) + sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(pmake_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Select download directory:</span>") + tooltip = "Select a folder that caches the upstream project source code" + dldir_widget, self.dldir_text = self.gen_entry_widget(self.configuration.dldir, self, tooltip) + sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(dldir_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Select SSTATE directory:</span>") + tooltip = "Select a folder that caches your prebuilt results" + sstatedir_widget, self.sstatedir_text = self.gen_entry_widget(self.configuration.sstatedir, self, tooltip) + sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(sstatedir_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Select SSTATE mirror:</span>") + tooltip = "Select the pre-built mirror that will speed your build" + sstatemirror_widget, self.sstatemirror_text = self.gen_entry_widget(self.configuration.sstatemirror, self, tooltip) + sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(sstatemirror_widget, expand=False, fill=False) + + return advanced_vbox + + def create_proxy_page(self): + advanced_vbox = gtk.VBox(False, 6) + advanced_vbox.set_border_width(6) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Set the proxies used when fetching source code</span>") + tooltip = "Set the proxies used when fetching source code. A blank field uses a direct internet connection." + info = HobInfoButton(tooltip, self) + hbox = gtk.HBox(False, 12) + hbox.pack_start(label, expand=True, fill=True) + hbox.pack_start(info, expand=False, fill=False) + sub_vbox.pack_start(hbox, expand=False, fill=False) + + self.direct_checkbox = gtk.RadioButton(None, "Direct internet connection") + self.direct_checkbox.set_tooltip_text("Check this box to use a direct internet connection with no proxy") + self.direct_checkbox.set_active(not self.configuration.enable_proxy) + sub_vbox.pack_start(self.direct_checkbox, expand=False, fill=False) + + self.proxy_checkbox = gtk.RadioButton(self.direct_checkbox, "Manual proxy configuration") + self.proxy_checkbox.set_tooltip_text("Check this box to manually set up a specific proxy") + self.proxy_checkbox.set_active(self.configuration.enable_proxy) + sub_vbox.pack_start(self.proxy_checkbox, expand=False, fill=False) + + self.same_checkbox = gtk.CheckButton("Use the same proxy for all protocols") + self.same_checkbox.set_tooltip_text("Check this box to use the HTTP proxy for all five proxies") + self.same_checkbox.set_active(self.configuration.same_proxy) + hbox = gtk.HBox(False, 12) + hbox.pack_start(self.same_checkbox, expand=False, fill=False, padding=24) + sub_vbox.pack_start(hbox, expand=False, fill=False) + + proxy_widget, self.http_proxy, self.http_proxy_port, self.http_proxy_details = self.gen_proxy_entry_widget( + "http", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.https_proxy, self.https_proxy_port, self.https_proxy_details = self.gen_proxy_entry_widget( + "https", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.ftp_proxy, self.ftp_proxy_port, self.ftp_proxy_details = self.gen_proxy_entry_widget( + "ftp", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.git_proxy, self.git_proxy_port, self.git_proxy_details = self.gen_proxy_entry_widget( + "git", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.cvs_proxy, self.cvs_proxy_port, self.cvs_proxy_details = self.gen_proxy_entry_widget( + "cvs", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + self.direct_checkbox.connect("toggled", self.proxy_checkbox_toggled_cb) + self.proxy_checkbox.connect("toggled", self.proxy_checkbox_toggled_cb) + self.same_checkbox.connect("toggled", self.same_checkbox_toggled_cb) + + self.refresh_proxy_components() + return advanced_vbox + + def create_visual_elements(self): self.nb = gtk.Notebook() self.nb.set_show_tabs(True)
@@ -364,7 +471,6 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper): self.show_all() - # # AdvancedSettings Dialog #
@@ -685,122 +791,6 @@ class AdvancedSettingDialog (CrumbsDialog, SettingsUIHelper): return advanced_vbox - def create_build_environment_page(self): - advanced_vbox = gtk.VBox(False, 6) - advanced_vbox.set_border_width(6) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Select distro:</span>") - tooltip = "Selects the Yocto Project distribution you want" - distro_widget, self.distro_combo = self.gen_combo_widget(self.configuration.curr_distro, self.all_distros, tooltip) - sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(distro_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">BB number threads:</span>") - tooltip = "Sets the number of threads that BitBake tasks can simultaneously run. See the <a href=\"" - tooltip += "http://www.yoctoproject.org/docs/current/poky-ref-manual/" - tooltip += "poky-ref-manual.html#var-BB_NUMBER_THREADS\">Poky reference manual</a> for information" - bbthread_widget, self.bb_spinner = self.gen_spinner_widget(self.configuration.bbthread, 1, self.max_threads, tooltip) - sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(bbthread_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Parallel make:</span>") - tooltip = "Sets the maximum number of threads the host can use during the build. See the <a href=\"" - tooltip += "http://www.yoctoproject.org/docs/current/poky-ref-manual/" - tooltip += "poky-ref-manual.html#var-PARALLEL_MAKE\">Poky reference manual</a> for information" - pmake_widget, self.pmake_spinner = self.gen_spinner_widget(self.configuration.pmake, 1, self.max_threads, tooltip) - sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(pmake_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Select download directory:</span>") - tooltip = "Select a folder that caches the upstream project source code" - dldir_widget, self.dldir_text = self.gen_entry_widget(self.configuration.dldir, self, tooltip) - sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(dldir_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Select SSTATE directory:</span>") - tooltip = "Select a folder that caches your prebuilt results" - sstatedir_widget, self.sstatedir_text = self.gen_entry_widget(self.configuration.sstatedir, self, tooltip) - sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(sstatedir_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Select SSTATE mirror:</span>") - tooltip = "Select the pre-built mirror that will speed your build" - sstatemirror_widget, self.sstatemirror_text = self.gen_entry_widget(self.configuration.sstatemirror, self, tooltip) - sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(sstatemirror_widget, expand=False, fill=False) - - return advanced_vbox - - def create_proxy_page(self): - advanced_vbox = gtk.VBox(False, 6) - advanced_vbox.set_border_width(6) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Set the proxies used when fetching source code</span>") - tooltip = "Set the proxies used when fetching source code. A blank field uses a direct internet connection." - info = HobInfoButton(tooltip, self) - hbox = gtk.HBox(False, 12) - hbox.pack_start(label, expand=True, fill=True) - hbox.pack_start(info, expand=False, fill=False) - sub_vbox.pack_start(hbox, expand=False, fill=False) - - self.direct_checkbox = gtk.RadioButton(None, "Direct internet connection") - self.direct_checkbox.set_tooltip_text("Check this box to use a direct internet connection with no proxy") - self.direct_checkbox.set_active(not self.configuration.enable_proxy) - sub_vbox.pack_start(self.direct_checkbox, expand=False, fill=False) - - self.proxy_checkbox = gtk.RadioButton(self.direct_checkbox, "Manual proxy configuration") - self.proxy_checkbox.set_tooltip_text("Check this box to manually set up a specific proxy") - self.proxy_checkbox.set_active(self.configuration.enable_proxy) - sub_vbox.pack_start(self.proxy_checkbox, expand=False, fill=False) - - self.same_checkbox = gtk.CheckButton("Use the same proxy for all protocols") - self.same_checkbox.set_tooltip_text("Check this box to use the HTTP proxy for all five proxies") - self.same_checkbox.set_active(self.configuration.same_proxy) - hbox = gtk.HBox(False, 12) - hbox.pack_start(self.same_checkbox, expand=False, fill=False, padding=24) - sub_vbox.pack_start(hbox, expand=False, fill=False) - - proxy_widget, self.http_proxy, self.http_proxy_port, self.http_proxy_details = self.gen_proxy_entry_widget( - "http", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.https_proxy, self.https_proxy_port, self.https_proxy_details = self.gen_proxy_entry_widget( - "https", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.ftp_proxy, self.ftp_proxy_port, self.ftp_proxy_details = self.gen_proxy_entry_widget( - "ftp", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.git_proxy, self.git_proxy_port, self.git_proxy_details = self.gen_proxy_entry_widget( - "git", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.cvs_proxy, self.cvs_proxy_port, self.cvs_proxy_details = self.gen_proxy_entry_widget( - "cvs", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - self.direct_checkbox.connect("toggled", self.proxy_checkbox_toggled_cb) - self.proxy_checkbox.connect("toggled", self.proxy_checkbox_toggled_cb) - self.same_checkbox.connect("toggled", self.same_checkbox_toggled_cb) - - self.refresh_proxy_components() - return advanced_vbox - def create_others_page(self): advanced_vbox = gtk.VBox(False, 6) advanced_vbox.set_border_width(6)
bitbake/lib/bb/ui/crumbs/imagedetailspage.py +1 -1
@@ -587,7 +587,7 @@ class ImageDetailsPage (HobPage): def settings_button_clicked_cb(self, button): # Create an advanced settings dialog - response, settings_changed = self.builder.show_adv_settings_dialog() + response, settings_changed = self.builder.show_simple_settings_dialog() if not response: return if settings_changed:
Signature · 1 line
1.7.9.5
Please merge this patch, it's blocking other people who need to work on any settings-related issue.
Thanks,
BogdanM
Quoted 388 lines · Bogdan Marinescu
Fix some issues with the settings dialog that were introduced as a result of merging the fix for #2162.
The second version of the patch removes a stray "distro" combobox from simple settings.[YOCTO #3117]
Signed-off-by Bogdan Marinescu <[email protected]>--- bitbake/lib/bb/ui/crumbs/hig.py | 228 ++++++++++++-------------- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 2 +- 2 files changed, 110 insertions(+), 120 deletions(-)bitbake/lib/bb/ui/crumbs/hig.py +0
-0@@ -195,7 +195,6 @@ class SimpleSettingsDialog (CrumbsDialog,SettingsUIHelper):
self.max_threads =max_threads# class members for internal use
bitbake/lib/bb/ui/crumbs/hig.py +0
-1- self.distro_combo = None self.dldir_text = None self.sstatedir_text = None self.sstatemirror_text = None@@ -330,7 +329,6 @@ class SimpleSettingsDialog (CrumbsDialog,SettingsUIHelper):
self.refresh_proxy_components()def
response_cb(self, dialog, response_id):
- #self.configuration.curr_distro =self.distro_combo.get_active_text()
self.configuration.dldir =self.dldir_text.get_text()self.configuration.sstatedir =self.sstatedir_text.get_text()self.configuration.sstatemirror =self.sstatemirror_text.get_text()bitbake/lib/bb/ui/crumbs/hig.py +0
-0@@ -352,6 +350,115 @@ class SimpleSettingsDialog (CrumbsDialog,SettingsUIHelper):
md5 = self.config_md5() self.settings_changed = (self.md5 != md5)bitbake/lib/bb/ui/crumbs/hig.py +7
-0+ def create_build_environment_page(self): + advanced_vbox = gtk.VBox(False, 6) + advanced_vbox.set_border_width(6) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">BB numberthreads:</span>")
+ tooltip = "Sets the number of threads that BitBake tasks can
simultaneously run. See the <a href=\""
+ tooltip += "
http://www.yoctoproject.org/docs/current/poky-ref-manual/"
+ tooltip += "poky-ref-manual.html#var-BB_NUMBER_THREADS\">Poky
reference manual</a> for information"
+bbthread_widget, self.bb_spinner =self.gen_spinner_widget(self.configuration.bbthread, 1, self.max_threads, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +6
-0+ sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(bbthread_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Parallelmake:</span>")
+ tooltip = "Sets the maximum number of threads the host can use
during the build. See the <a href=\""
+ tooltip += "
http://www.yoctoproject.org/docs/current/poky-ref-manual/"
+ tooltip += "poky-ref-manual.html#var-PARALLEL_MAKE\">Poky
reference manual</a> for information"
+pmake_widget, self.pmake_spinner =self.gen_spinner_widget(self.configuration.pmake, 1, self.max_threads, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +6
-0+ sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(pmake_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Selectdownload directory:</span>")
+ tooltip = "Select a folder that caches the upstream project
source code"
+dldir_widget, self.dldir_text =self.gen_entry_widget(self.configuration.dldir, self, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +6
-0+ sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(dldir_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">SelectSSTATE directory:</span>")
bitbake/lib/bb/ui/crumbs/hig.py +2
-0+ tooltip = "Select a folder that caches your prebuilt results" + sstatedir_widget, self.sstatedir_text =
self.gen_entry_widget(self.configuration.sstatedir, self, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +6
-0+ sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(sstatedir_widget, expand=False, fill=False) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">SelectSSTATE mirror:</span>")
bitbake/lib/bb/ui/crumbs/hig.py +2
-0+ tooltip = "Select the pre-built mirror that will speed your build" + sstatemirror_widget, self.sstatemirror_text =
self.gen_entry_widget(self.configuration.sstatemirror, self, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +12
-0+ sub_vbox.pack_start(label, expand=False, fill=False) + sub_vbox.pack_start(sstatemirror_widget, expand=False, fill=False) + + return advanced_vbox + + def create_proxy_page(self): + advanced_vbox = gtk.VBox(False, 6) + advanced_vbox.set_border_width(6) + + sub_vbox = gtk.VBox(False, 6) + advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) + label = self.gen_label_widget("<span weight=\"bold\">Set theproxies used when fetching source code</span>")
+ tooltip = "Set the proxies used when fetching source code. A
blank field uses a direct internet connection."bitbake/lib/bb/ui/crumbs/hig.py +7
-0+ info = HobInfoButton(tooltip, self) + hbox = gtk.HBox(False, 12) + hbox.pack_start(label, expand=True, fill=True) + hbox.pack_start(info, expand=False, fill=False) + sub_vbox.pack_start(hbox, expand=False, fill=False) + + self.direct_checkbox = gtk.RadioButton(None, "Direct internetconnection")
+ self.direct_checkbox.set_tooltip_text("Check this box to use a
direct internet connection with no proxy")
+ self.direct_checkbox.set_active(not
self.configuration.enable_proxy)
+ sub_vbox.pack_start(self.direct_checkbox, expand=False,
fill=False)bitbake/lib/bb/ui/crumbs/hig.py +2
-0+ + self.proxy_checkbox = gtk.RadioButton(self.direct_checkbox,"Manual proxy configuration")
+ self.proxy_checkbox.set_tooltip_text("Check this box to manually
set up a specific proxy")bitbake/lib/bb/ui/crumbs/hig.py +4
-0+ self.proxy_checkbox.set_active(self.configuration.enable_proxy) + sub_vbox.pack_start(self.proxy_checkbox, expand=False, fill=False) + + self.same_checkbox = gtk.CheckButton("Use the same proxy for allprotocols")
+ self.same_checkbox.set_tooltip_text("Check this box to use the
HTTP proxy for all five proxies")bitbake/lib/bb/ui/crumbs/hig.py +3
-0+ self.same_checkbox.set_active(self.configuration.same_proxy) + hbox = gtk.HBox(False, 12) + hbox.pack_start(self.same_checkbox, expand=False, fill=False,padding=24)
bitbake/lib/bb/ui/crumbs/hig.py +3
-0+ sub_vbox.pack_start(hbox, expand=False, fill=False) + + proxy_widget, self.http_proxy, self.http_proxy_port,self.http_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +4
-0+ "http", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.https_proxy, self.https_proxy_port,self.https_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +4
-0+ "https", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.ftp_proxy, self.ftp_proxy_port,self.ftp_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +4
-0+ "ftp", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.git_proxy, self.git_proxy_port,self.git_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +4
-0+ "git", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + proxy_widget, self.cvs_proxy, self.cvs_proxy_port,self.cvs_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +4
-0+ "cvs", self, True) + sub_vbox.pack_start(proxy_widget, expand=False, fill=False) + + self.direct_checkbox.connect("toggled",self.proxy_checkbox_toggled_cb)
+ self.proxy_checkbox.connect("toggled",
self.proxy_checkbox_toggled_cb)
+ self.same_checkbox.connect("toggled",
self.same_checkbox_toggled_cb)bitbake/lib/bb/ui/crumbs/hig.py +5
-0+ + self.refresh_proxy_components() + return advanced_vbox + + def create_visual_elements(self): self.nb = gtk.Notebook() self.nb.set_show_tabs(True)@@ -364,7 +471,6 @@ class SimpleSettingsDialog (CrumbsDialog,SettingsUIHelper):
self.show_all()bitbake/lib/bb/ui/crumbs/hig.py +0
-1- # # AdvancedSettings Dialog #@@ -685,122 +791,6 @@ class AdvancedSettingDialog (CrumbsDialog,SettingsUIHelper):
return
advanced_vboxbitbake/lib/bb/ui/crumbs/hig.py +0
-7- def create_build_environment_page(self): - advanced_vbox = gtk.VBox(False, 6) - advanced_vbox.set_border_width(6) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Selectdistro:</span>")
bitbake/lib/bb/ui/crumbs/hig.py +0
-2- tooltip = "Selects the Yocto Project distribution you want" - distro_widget, self.distro_combo =
self.gen_combo_widget(self.configuration.curr_distro, self.all_distros, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +0
-6- sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(distro_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">BB numberthreads:</span>")
- tooltip = "Sets the number of threads that BitBake tasks can
simultaneously run. See the <a href=\""
- tooltip += "
http://www.yoctoproject.org/docs/current/poky-ref-manual/"
- tooltip += "poky-ref-manual.html#var-BB_NUMBER_THREADS\">Poky
reference manual</a> for information"
-bbthread_widget, self.bb_spinner =self.gen_spinner_widget(self.configuration.bbthread, 1, self.max_threads, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +0
-6- sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(bbthread_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Parallelmake:</span>")
- tooltip = "Sets the maximum number of threads the host can use
during the build. See the <a href=\""
- tooltip += "
http://www.yoctoproject.org/docs/current/poky-ref-manual/"
- tooltip += "poky-ref-manual.html#var-PARALLEL_MAKE\">Poky
reference manual</a> for information"
-pmake_widget, self.pmake_spinner =self.gen_spinner_widget(self.configuration.pmake, 1, self.max_threads, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +0
-6- sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(pmake_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Selectdownload directory:</span>")
- tooltip = "Select a folder that caches the upstream project
source code"
-dldir_widget, self.dldir_text =self.gen_entry_widget(self.configuration.dldir, self, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +0
-6- sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(dldir_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">SelectSSTATE directory:</span>")
bitbake/lib/bb/ui/crumbs/hig.py +0
-2- tooltip = "Select a folder that caches your prebuilt results" - sstatedir_widget, self.sstatedir_text =
self.gen_entry_widget(self.configuration.sstatedir, self, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +0
-6- sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(sstatedir_widget, expand=False, fill=False) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">SelectSSTATE mirror:</span>")
bitbake/lib/bb/ui/crumbs/hig.py +0
-2- tooltip = "Select the pre-built mirror that will speed your build" - sstatemirror_widget, self.sstatemirror_text =
self.gen_entry_widget(self.configuration.sstatemirror, self, tooltip)bitbake/lib/bb/ui/crumbs/hig.py +0
-12- sub_vbox.pack_start(label, expand=False, fill=False) - sub_vbox.pack_start(sstatemirror_widget, expand=False, fill=False) - - return advanced_vbox - - def create_proxy_page(self): - advanced_vbox = gtk.VBox(False, 6) - advanced_vbox.set_border_width(6) - - sub_vbox = gtk.VBox(False, 6) - advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) - label = self.gen_label_widget("<span weight=\"bold\">Set theproxies used when fetching source code</span>")
- tooltip = "Set the proxies used when fetching source code. A
blank field uses a direct internet connection."bitbake/lib/bb/ui/crumbs/hig.py +0
-7- info = HobInfoButton(tooltip, self) - hbox = gtk.HBox(False, 12) - hbox.pack_start(label, expand=True, fill=True) - hbox.pack_start(info, expand=False, fill=False) - sub_vbox.pack_start(hbox, expand=False, fill=False) - - self.direct_checkbox = gtk.RadioButton(None, "Direct internetconnection")
- self.direct_checkbox.set_tooltip_text("Check this box to use a
direct internet connection with no proxy")
- self.direct_checkbox.set_active(not
self.configuration.enable_proxy)
- sub_vbox.pack_start(self.direct_checkbox, expand=False,
fill=False)bitbake/lib/bb/ui/crumbs/hig.py +0
-2- - self.proxy_checkbox = gtk.RadioButton(self.direct_checkbox,"Manual proxy configuration")
- self.proxy_checkbox.set_tooltip_text("Check this box to manually
set up a specific proxy")bitbake/lib/bb/ui/crumbs/hig.py +0
-4- self.proxy_checkbox.set_active(self.configuration.enable_proxy) - sub_vbox.pack_start(self.proxy_checkbox, expand=False, fill=False) - - self.same_checkbox = gtk.CheckButton("Use the same proxy for allprotocols")
- self.same_checkbox.set_tooltip_text("Check this box to use the
HTTP proxy for all five proxies")bitbake/lib/bb/ui/crumbs/hig.py +0
-3- self.same_checkbox.set_active(self.configuration.same_proxy) - hbox = gtk.HBox(False, 12) - hbox.pack_start(self.same_checkbox, expand=False, fill=False,padding=24)
bitbake/lib/bb/ui/crumbs/hig.py +0
-3- sub_vbox.pack_start(hbox, expand=False, fill=False) - - proxy_widget, self.http_proxy, self.http_proxy_port,self.http_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +0
-4- "http", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.https_proxy, self.https_proxy_port,self.https_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +0
-4- "https", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.ftp_proxy, self.ftp_proxy_port,self.ftp_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +0
-4- "ftp", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.git_proxy, self.git_proxy_port,self.git_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +0
-4- "git", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - proxy_widget, self.cvs_proxy, self.cvs_proxy_port,self.cvs_proxy_details = self.gen_proxy_entry_widget(
bitbake/lib/bb/ui/crumbs/hig.py +0
-4- "cvs", self, True) - sub_vbox.pack_start(proxy_widget, expand=False, fill=False) - - self.direct_checkbox.connect("toggled",self.proxy_checkbox_toggled_cb)
- self.proxy_checkbox.connect("toggled",
self.proxy_checkbox_toggled_cb)
- self.same_checkbox.connect("toggled",
self.same_checkbox_toggled_cb)bitbake/lib/bb/ui/crumbs/hig.py +0
-4- - self.refresh_proxy_components() - return advanced_vbox - def create_others_page(self): advanced_vbox = gtk.VBox(False, 6) advanced_vbox.set_border_width(6)bitbake/lib/bb/ui/crumbs/imagedetailspage.py +1
-1@@ -587,7 +587,7 @@ class ImageDetailsPage (HobPage): def settings_button_clicked_cb(self, button): # Create an advanced settings dialog - response, settings_changed = self.builder.show_adv_settings_dialog() + response, settings_changed = self.builder.show_simple_settings_dialog() if not response:return
ifsettings_changed:
--
1.7.9.5