Logo Search packages:      
Sourcecode: pan version File versions  Download package

pan::HeaderPane Class Reference
[GUI]

#include <header-pane.h>

Inheritance diagram for pan::HeaderPane:

pan::Data::Listener pan::Data::ArticleTree::Listener pan::Queue::Listener pan::ArticleCache::Listener

List of all members.


Detailed Description

Header Pane in the main window of Pan's GUI.

Definition at line 69 of file header-pane.h.


Public Member Functions

GtkWidget * create_filter_entry ()
void expand_selected ()
void filter (const std::string &text, int mode)
GtkWidget * get_default_focus_widget ()
const Articleget_first_selected_article () const
std::set< const Article * > get_full_selection () const
std::vector< const Article * > get_full_selection_v () const
const Quarkget_group ()
std::set< const Article * > get_nested_selection () const
 HeaderPane (ActionManager &, Data &data, Queue &, ArticleCache &, Prefs &, WaitUI &)
void read_next_article ()
void read_next_thread ()
void read_next_unread_article ()
void read_next_unread_thread ()
void read_parent_article ()
void read_previous_article ()
void read_previous_thread ()
void refilter ()
GtkWidget * root ()
void select_all ()
void select_similar ()
void select_subthreads ()
void select_threads ()
void set_focus ()
bool set_group (const Quark &group)
void set_show_type (const Data::ShowType)
void unselect_all ()

Static Public Member Functions

static void do_popup_menu (GtkWidget *, GdkEventButton *, gpointer)
static gboolean on_button_pressed (GtkWidget *, GdkEventButton *, gpointer)
static void on_row_activated (GtkTreeView *, GtkTreePath *, GtkTreeViewColumn *, gpointer)

Public Attributes

ActionManager_action_manager
ArticleCache_cache

Private Types

enum  {
  COL_DATE_STR, COL_STATE, COL_ACTION, COL_SCORE,
  COL_LINES, COL_BYTES, COL_DATE, COL_ARTICLE_POINTER,
  COL_SUBJECT, COL_SHORT_AUTHOR, N_COLUMNS
}
typedef sorted_vector< Row
*, true, RowLessThan > 
mid_to_row_t

Private Member Functions

void action_next_if (const ArticleTester &test, RowActionFunctor &action)
void add_children_to_model (PanTreeStore *store, PanTreeStore::Row *parent_row, const Quark &parent_mid, const Data::ArticleTree *atree, const EvolutionDateMaker &date_maker, const bool do_thread)
PanTreeStorebuild_model (const Quark &, Data::ArticleTree *, const TextMatch *)
void build_tree_columns ()
Row * create_row (const EvolutionDateMaker &, const Article *)
int find_highest_followup_score (GtkTreeModel *, GtkTreeIter *) const
void find_next_iterator_from (GtkTreeModel *model, GtkTreeIter *start_pos, const TreeIterFunctor &iterate_func, const ArticleTester &test_func, RowActionFunctor &success_func, bool test_the_start_pos)
void get_nested_foreach (GtkTreeModel *, GtkTreePath *, GtkTreeIter *, gpointer) const
Row * get_row (const Quark &message_id)
void next_iterator (GtkTreeView *view, GtkTreeModel *model, const TreeIterFunctor &iterate_func, const ArticleTester &test_func, RowActionFunctor &success_func)
virtual void on_cache_added (const Quark &mid)
virtual void on_cache_removed (const quarks_t &mids)
virtual void on_group_counts (const Quark &group UNUSED, unsigned long unread UNUSED, unsigned long total UNUSED)
virtual void on_group_read (const Quark &group UNUSED)
virtual void on_group_read (const Quark &group)
virtual void on_group_subscribe (const Quark &group UNUSED, bool sub UNUSED)
virtual void on_grouplist_rebuilt ()
virtual void on_prefs_color_changed (const StringView &, const GdkColor &)
virtual void on_prefs_flag_changed (const StringView &key, bool value)=0
virtual void on_prefs_flag_changed (const StringView &, bool)
virtual void on_prefs_int_changed (const StringView &, int)
virtual void on_prefs_string_changed (const StringView &, const StringView &)
virtual void on_queue_connection_count_changed (Queue &, int count UNUSED)
virtual void on_queue_error (Queue &, const StringView &message)=0
virtual void on_queue_error (Queue &, const StringView &message UNUSED)
virtual void on_queue_online_changed (Queue &, bool online UNUSED)
virtual void on_queue_size_changed (Queue &, int active UNUSED, int total UNUSED)
virtual void on_queue_task_active_changed (Queue &, Task &, bool active UNUSED)
virtual void on_queue_task_moved (Queue &, Task &, int new_index UNUSED, int old_index UNUSED)
virtual void on_queue_task_removed (Queue &, Task &, int index)
virtual void on_queue_tasks_added (Queue &, int index, int count)
virtual void on_tree_change (const Data::ArticleTree::Diffs &)
void read_next_if (const ArticleTester &)
void read_prev_if (const ArticleTester &)
void rebuild ()
void rebuild_all_article_states ()
void rebuild_article_action (const Quark &message_id)
void rebuild_article_state (const Quark &message_id)
void rebuild_filter (const std::string &, int)
void refresh_font ()
typedef void RenderFunc (GtkTreeViewColumn *, GtkCellRenderer *, GtkTreeModel *, GtkTreeIter *, gpointer)
void select_message_id (const Quark &mid, bool do_scroll=true)
void walk_and_collect (GtkTreeModel *, GtkTreeIter *, std::set< const Article * > &) const

Static Private Member Functions

static int column_compare_func (GtkTreeModel *, GtkTreeIter *, GtkTreeIter *, gpointer)
static const Articleget_article (GtkTreeModel *, GtkTreeIter *)
static void get_full_selection_v_foreach (GtkTreeModel *, GtkTreePath *, GtkTreeIter *, gpointer)
static void get_nested_foreach_static (GtkTreeModel *, GtkTreePath *, GtkTreeIter *, gpointer)
static void on_selection_changed (GtkTreeSelection *, gpointer)
static gboolean on_selection_changed_idle (gpointer)

Private Attributes

Data::ArticleTree_atree
Data_data
FilterInfo _filter
Quark _group
mid_to_row_t _mid_to_row
Prefs_prefs
Queue_queue
GtkWidget * _root
guint _selection_changed_idle_tag
Data::ShowType _show_type
PanTreeStore_tree_store
GtkWidget * _tree_view
WaitUI & _wait

Static Private Attributes

static RenderFunc render_action
static RenderFunc render_bytes
static RenderFunc render_score
static RenderFunc render_state
static RenderFunc render_subject

Classes

struct  CountUnread
class  Row
struct  RowLessThan
struct  SimilarWalk

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index