Skip to content

Commit

Permalink
Added (still not working) next and previous buttons to ruberri tool w…
Browse files Browse the repository at this point in the history
…idget
  • Loading branch information
stcrocco committed Mar 22, 2015
1 parent a61c245 commit f8378f3
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 63 deletions.
3 changes: 3 additions & 0 deletions plugins/ruberri/ruberri.rb
Expand Up @@ -243,6 +243,9 @@ def initialize parent = nil
connect @ui.search, SIGNAL(:clicked), self, SLOT(:start_search)
@ui.content.open_links = false
connect @ui.content, SIGNAL('anchorClicked(QUrl)'), Ruber[:ruberri], SLOT('display_url(QUrl)')
@ui.prev_btn.icon = KDE::IconLoader.load_icon 'go-previous'
@ui.next_btn.icon = KDE::IconLoader.load_icon 'go-next'
@ui.prev_btn.enabled = @ui.next_btn.enabled = false
end

def content
Expand Down
76 changes: 55 additions & 21 deletions plugins/ruberri/ui/tool_widget.ui
Expand Up @@ -13,28 +13,62 @@
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Find</string>
</property>
<property name="buddy">
<cstring>search_term</cstring>
</property>
</widget>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Find</string>
</property>
<property name="buddy">
<cstring>search_term</cstring>
</property>
</widget>
</item>
<item>
<widget class="KLineEdit" name="search_term"/>
</item>
<item>
<widget class="QPushButton" name="search">
<property name="text">
<string>&amp;Search</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="prev_btn">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="next_btn">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<widget class="KLineEdit" name="search_term"/>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="search">
<property name="text">
<string>&amp;Search</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<item>
<widget class="QTextBrowser" name="content"/>
</item>
</layout>
Expand Down
63 changes: 21 additions & 42 deletions ruber.ruprj
Expand Up @@ -3,51 +3,33 @@
:project_name: Ruber
:project_files:
:include:
- !binary |-
Q09QWUlORw==
- !binary |-
SU5TVEFMTA==
- !binary |-
UmFrZWZpbGUucmI=
- COPYING
- INSTALL
- Rakefile.rb
- !ruby/regexp /share\/.*/
- !binary |-
VE9ETw==
- !binary |-
Li9iaW4vcnViZXI=
- TODO
- ./bin/ruber
- !ruby/regexp /manual\/.*/
- !binary |-
Li9ydWJlci5nZW1zcGVj
- !binary |-
Li9ydWJlci5ydXByag==
- !binary |-
cnViZXIuZGVza3RvcA==
- !binary |-
b3V0c2lkZXJfZmlsZXM=
- !binary |-
UkVBRE1FLnRleHRpbGU=
- !binary |-
Q0hBTkdFUw==
- ./ruber.gemspec
- ./ruber.ruprj
- ruber.desktop
- outsider_files
- README.textile
- CHANGES
:exclude:
- !ruby/regexp /^_darcs\/.*/
- !ruby/regexp /^doc\/.*/
- !ruby/regexp /^old\/.*/
- !ruby/regexp /ui\/.*\.rb/
:extensions:
- !binary |-
Ki5yYg==
- !binary |-
Ki51aQ==
- !binary |-
Ki55YW1s
- !binary |-
Ki5yYw==
- !binary |-
Ki5lcmI=
- !binary |-
Ki5yaHRtbA==
- '*.rb'
- '*.ui'
- '*.yaml'
- '*.rc'
- '*.erb'
- '*.rhtml'
:rake:
:rakefile: !binary |-
UmFrZWZpbGUucmI=
:rakefile: Rakefile.rb
:ruby_options: []
:tasks:
clean:
Expand All @@ -69,17 +51,14 @@
- Run all examples
-
:ruby:
:main_program: !binary |-
YmluL3J1YmVy
:main_program: bin/ruber
:ruby_options:
- -Ilib
:rspec:
:code_directory: .
:patterns:
- :code: !binary |-
KiovKi5yYg==
:spec: !binary |-
JWZfc3BlYy5yYg==
- :code: '**/*.rb'
:spec: '%f_spec.rb'
:glob: 0
:full_backtraces: false
:ruby_options:
Expand Down

0 comments on commit f8378f3

Please sign in to comment.