~ubuntu-branches/ubuntu/maverick/newsbeuter/maverick

« back to all changes in this revision

Viewing changes to include/itemlist_formaction.h

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2009-04-21 14:06:18 UTC
  • mfrom: (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090421140618-osnjk19bgkebyg9h
Tags: 2.0-1
* New upstream release.
  - Remove dependeny on mrss and nxml and add libxml2, newsbeuter
    now comes with its own parser.
  - Remove debian/patches and quilt dependency.
* Bump to policy 3.8.1, no changes needed.
* debian/copyright: adjust years.
* Remove dh_clean -k call as it is deprecated -> dh_prep.
* Change newsbeuter homepage, it now has an official one.
* Fix watch file url, new upstream code location.
* Add bookmark-scuttle.sh to installed contrib files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include <history.h>
6
6
#include <mutex.h>
7
7
#include <regexmanager.h>
 
8
#include <view.h>
8
9
 
9
10
namespace newsbeuter {
10
11
 
17
18
                virtual void prepare();
18
19
                virtual void init();
19
20
 
 
21
                virtual void set_redraw(bool b) {
 
22
                        formaction::set_redraw(b);
 
23
                        apply_filter = !(v->get_cfg()->get_configvalue_as_bool("show-read-articles"));
 
24
                        update_visible_items = true;
 
25
                }
 
26
 
20
27
                void set_feed(std::tr1::shared_ptr<rss_feed> fd);
21
28
 
22
29
                virtual std::string id() const { return "articlelist"; }
 
30
                virtual std::string title();
23
31
 
24
32
                inline std::tr1::shared_ptr<rss_feed> get_feed() { return feed; }
25
33
                inline void set_pos(unsigned int p) { pos = p; }
28
36
 
29
37
                bool jump_to_next_unread_item(bool start_with_first);
30
38
                bool jump_to_previous_unread_item(bool start_with_last);
 
39
                bool jump_to_random_unread_item();
31
40
 
32
41
                virtual void handle_cmdline(const std::string& cmd);
33
42
 
38
47
                virtual void finished_qna(operation op);
39
48
 
40
49
                inline void set_show_searchresult(bool b) { show_searchresult = b; }
 
50
                inline void set_searchphrase(const std::string& s) { searchphrase = s; }
41
51
 
42
52
                virtual void recalculate_form();
43
53
 
71
81
                std::vector<itemptr_pos_pair> visible_items;
72
82
                bool update_visible_items;
73
83
                bool show_searchresult;
 
84
                std::string searchphrase;
74
85
 
75
86
                history filterhistory;
76
87
 
84
95
                regexmanager * rxman;
85
96
 
86
97
                unsigned int old_width;
 
98
                int old_itempos;
 
99
                std::string old_sort_order;
87
100
};
88
101
 
89
102
}