From f8378f3d0a3deb6d5f55129e0ee60f5034c0aa49 Mon Sep 17 00:00:00 2001 From: Stefano Crocco Date: Sun, 22 Mar 2015 10:19:41 +0100 Subject: [PATCH] Added (still not working) next and previous buttons to ruberri tool widget --- plugins/ruberri/ruberri.rb | 3 ++ plugins/ruberri/ui/tool_widget.ui | 76 ++++++++++++++++++++++--------- ruber.ruprj | 63 +++++++++---------------- 3 files changed, 79 insertions(+), 63 deletions(-) diff --git a/plugins/ruberri/ruberri.rb b/plugins/ruberri/ruberri.rb index 5fdc2e8..aff340e 100644 --- a/plugins/ruberri/ruberri.rb +++ b/plugins/ruberri/ruberri.rb @@ -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 diff --git a/plugins/ruberri/ui/tool_widget.ui b/plugins/ruberri/ui/tool_widget.ui index c6d4ddd..b407a09 100644 --- a/plugins/ruberri/ui/tool_widget.ui +++ b/plugins/ruberri/ui/tool_widget.ui @@ -13,28 +13,62 @@ Form - - - - - Find - - - search_term - - + + + + + + + Find + + + search_term + + + + + + + + + + &Search + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 40 + 20 + + + + + + + + ... + + + + + + + ... + + + + - - - - - - - &Search - - - - + diff --git a/ruber.ruprj b/ruber.ruprj index b2b00d8..ca71303 100644 --- a/ruber.ruprj +++ b/ruber.ruprj @@ -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: @@ -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: