~ubuntu-branches/ubuntu/karmic/software-store/karmic

« back to all changes in this revision

Viewing changes to softwarestore/view/appdetailsview.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-09-09 23:54:06 UTC
  • Revision ID: james.westby@ubuntu.com-20090909235406-kz21rix3vkozpkbs
Tags: 0.3.0
* merged from rugby471:
  - documentation updates
  - i18n fixes
* softwarestore/view/gbwidget.py:
  - add new Gtkbuilder widget base class
* softwarestore/view/appview.py:
  - allow a empty AppView
* softwarestore/view/installedpane.py:
  - composited widget that contains navigation, applist and search
    for the installed software
* softwarestore/view/availablepane.py:
  - composited widget that contains navigation, applist and search
    for the available software
* softwarestore/view/searchentry.py:
  - make the icon_theme optional
* make the status bar display the current number of items displayed
* center the status bar (LP: #424895)
* make menuitems "Copy", "Copy Weblink", "Software Sources" work
* updated po files from rosetta
* make the default size bigger (LP: #425862)
* merged the fixes from Murat Güneş (many thanks!)
* when using the navigation bar to navigate back one (or more)
  elements, remove the elements from the navigation bar 
  (LP: #425810)
* do not show "Search in Category", "Search in all" buttons. 
  Instead do the follwing: 
  - If the user clicks on "Get Free Software" while doing a search
    in a sub-Category clear the search and go to the Category screen.
  - If the user does click on the same button while doing a search
    that originates from the Category screen do not clear the search 
    and go back to the list of the search results (and not to the
    Category screen). The search must be cleared with the cleared
    via the search field in this case. 
  (LP: #425809)
* softwarestore/view/searchentry.py:
  - show/hide the clear item based on if there is text in it 
    or not
* help updates (thanks to Matthew Paul Thomas)
* make the progress bar less cramped (LP: #426281)
* make default icon size in category view 48px
* merged lp:~mpt/software-store/css branch (many thanks)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
class AppDetailsView(WebkitWidget):
54
54
 
55
55
    # the size of the icon on the left side
56
 
    APP_ICON_SIZE = 48
 
56
    APP_ICON_SIZE = 64
57
57
    APP_ICON_PADDING = 8
58
58
 
59
59
    # dependency types we are about
141
141
        return self.pkgname
142
142
    def wksub_iconname(self):
143
143
        return self.iconname
 
144
    def wksub_body_class(self):
 
145
        if (self.cache.has_key(self.pkgname) and
 
146
            self.cache[self.pkgname].isInstalled):
 
147
            return "section-installed"
 
148
        return "section-get"
144
149
    def wksub_description(self):
145
150
        if self.pkg:
146
151
            details = self.pkg.candidate.description
228
233
                    "It is used by %s pieces of installed software.",
229
234
                    len(self.installed_rdeps)) % len(self.installed_rdeps)
230
235
        return s
 
236
    def wksub_homepage(self):
 
237
        s = _("Website")
 
238
        return s
231
239
    def wksub_price(self):
232
240
        s = _("Price: %s") % _("Free")
233
241
        return s
303
311
                                          exit_handler=self._on_trans_finished)
304
312
        self._run_transaction(trans)
305
313
 
 
314
    # public interface
 
315
    def install(self):
 
316
        self.on_button_install_clicked()
 
317
    def remove(self):
 
318
        self.on_button_remove_clicked()
 
319
    def upgrade(self):
 
320
        self.on_button_upgrade_clicked()
 
321
 
306
322
    # internal callback
307
323
    def _on_trans_finished(self, trans, enum):
308
324
        """callback when a aptdaemon transaction finished"""