~stub/ubuntu/precise/calibre/devel

« back to all changes in this revision

Viewing changes to src/calibre/gui2/layout.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-04-12 11:29:25 UTC
  • mfrom: (42.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110412112925-c7171kt2bb5rmft4
Tags: 0.7.50+dfsg-2
* debian/control: Build with libpodofo-dev to enable PDF metadata.
  (Closes: #619632)
* debian/control: Add libboost1.42-dev build dependency. Apparently it is
  needed in some setups. (Closes: #619807)
* debian/rules: Call dh_sip to generate a proper sip API dependency, to
  prevent crashes like #616372 for partial upgrades.
* debian/control: Bump python-qt4 dependency to >= 4.8.3-2, which reportedly
  fixes crashes on startup. (Closes: #619701, #620125)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from functools import partial
9
9
 
10
10
from PyQt4.Qt import QIcon, Qt, QWidget, QToolBar, QSize, \
11
 
    pyqtSignal, QToolButton, QMenu, QCheckBox, \
 
11
    pyqtSignal, QToolButton, QMenu, \
12
12
    QObject, QVBoxLayout, QSizePolicy, QLabel, QHBoxLayout, QActionGroup
13
13
 
14
14
 
156
156
        x = ComboBoxWithHelp(self)
157
157
        x.setMaximumSize(QSize(150, 16777215))
158
158
        x.setObjectName("search_restriction")
159
 
        x.setToolTip(_("Books display will be restricted to those matching the selected saved search"))
 
159
        x.setToolTip(_('Books display will be restricted to those matching the '
 
160
                       'selected saved search'))
160
161
        l.addWidget(x)
161
162
        parent.search_restriction = x
162
163
 
175
176
        x = parent.search = SearchBox2(self)
176
177
        x.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Minimum)
177
178
        x.setObjectName("search")
178
 
        x.setToolTip(_("<p>Search the list of books by title, author, publisher, tags, comments, etc.<br><br>Words separated by spaces are ANDed"))
 
179
        x.setToolTip(_("<p>Search the list of books by title, author, publisher, "
 
180
                       "tags, comments, etc.<br><br>Words separated by spaces are ANDed"))
179
181
        l.addWidget(x)
180
182
 
181
183
        self.search_button = QToolButton()
194
196
        l.addWidget(x)
195
197
        x.setToolTip(_("Reset Quick Search"))
196
198
 
197
 
        x = parent.search_highlight_only = QCheckBox()
198
 
        x.setText(_('&Highlight'))
199
 
        x.setToolTip('<p>'+_('When searching, highlight matched books, instead '
200
 
            'of restricting the book list to the matches.<p> You can use the '
201
 
            'N or F3 keys to go to the next match.'))
 
199
        x = parent.search_options_button = QToolButton(self)
 
200
        x.setIcon(QIcon(I('config.png')))
 
201
        x.setObjectName("search_option_button")
202
202
        l.addWidget(x)
203
 
        x.setVisible(False)
 
203
        x.setToolTip(_("Change the way searching for books works"))
204
204
 
205
205
        x = parent.saved_search = SavedSearchBox(self)
206
206
        x.setMaximumSize(QSize(150, 16777215))
227
227
        x.setToolTip(_("Delete current saved search"))
228
228
 
229
229
 
230
 
 
231
230
# }}}
232
231
 
233
232
class Spacer(QWidget): # {{{