diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hig.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index 4f4fecb58a..d030beda22 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -1855,6 +1855,9 @@ class ImageSelectionDialog (CrumbsDialog): | |||
1855 | break | 1855 | break |
1856 | iter = self.image_store.iter_next(iter) | 1856 | iter = self.image_store.iter_next(iter) |
1857 | 1857 | ||
1858 | # | ||
1859 | # ProxyDetailsDialog | ||
1860 | # | ||
1858 | class ProxyDetailsDialog (CrumbsDialog): | 1861 | class ProxyDetailsDialog (CrumbsDialog): |
1859 | 1862 | ||
1860 | def __init__(self, title, user, passwd, parent, flags, buttons=None): | 1863 | def __init__(self, title, user, passwd, parent, flags, buttons=None): |
@@ -1914,3 +1917,42 @@ class ProxyDetailsDialog (CrumbsDialog): | |||
1914 | else: | 1917 | else: |
1915 | self.user = None | 1918 | self.user = None |
1916 | self.passwd = None | 1919 | self.passwd = None |
1920 | |||
1921 | |||
1922 | # | ||
1923 | # OpeningLogDialog | ||
1924 | # | ||
1925 | class OpeningLogDialog (CrumbsDialog): | ||
1926 | |||
1927 | def __init__(self, title, parent, flags, buttons=None): | ||
1928 | super(OpeningLogDialog, self).__init__(title, parent, flags, buttons) | ||
1929 | |||
1930 | self.running = False | ||
1931 | # create visual elements on the dialog | ||
1932 | self.create_visual_elements() | ||
1933 | |||
1934 | def start(self): | ||
1935 | if not self.running: | ||
1936 | self.running = True | ||
1937 | gobject.timeout_add(100, self.pulse) | ||
1938 | |||
1939 | def pulse(self): | ||
1940 | self.progress_bar.pulse() | ||
1941 | return self.running | ||
1942 | |||
1943 | def create_visual_elements(self): | ||
1944 | hbox = gtk.HBox(False, 12) | ||
1945 | self.user_label = gtk.Label("The log will open in a text editor") | ||
1946 | hbox.pack_start(self.user_label, expand=False, fill=False) | ||
1947 | self.vbox.pack_start(hbox, expand=False, fill=False) | ||
1948 | |||
1949 | hbox = gtk.HBox(False, 12) | ||
1950 | # Progress bar | ||
1951 | self.progress_bar = HobProgressBar() | ||
1952 | hbox.pack_start(self.progress_bar) | ||
1953 | self.start() | ||
1954 | self.vbox.pack_start(hbox, expand=False, fill=False) | ||
1955 | |||
1956 | button = self.add_button("Cancel", gtk.RESPONSE_CANCEL) | ||
1957 | HobAltButton.style_button(button) | ||
1958 | self.show_all() | ||