# include <iostream>
# include <algorithm>
# include <vector>
# include <functional>
# include "db.hh"
# include "modes/paned_mode.hh"
# include "main_window.hh"
# include "thread_index.hh"
# include "query_loader.hh"
# include "thread_index_list_view.hh"
# include "thread_index_list_cell_renderer.hh"
# include "modes/keybindings.hh"
# include "modes/thread_view/thread_view.hh"
# include "modes/reply_message.hh"
# include "modes/forward_message.hh"
# include "message_thread.hh"
# include "utils/utils.hh"
# include "utils/cmd.hh"
# include "utils/resource.hh"
# include "command_bar.hh"
/* actions */
# include "actions/tag_action.hh"
# include "actions/toggle_action.hh"
# include "actions/difftag_action.hh"
# include "actions/cmdaction.hh"
using namespace std;
namespace Astroid {
/* ----------
* scrolled window
* ----------
*/
ThreadIndexScrolled::ThreadIndexScrolled (
MainWindow *mw,
Glib::RefPtr<ThreadIndexListStore> _list_store,
ThreadIndexListView * _list_view) : Mode (mw) {
list_store.clear ();
list_store = _list_store;
list_view = Gtk::manage(_list_view);
scroll.add (*list_view);
pack_start (scroll, true, true, 0);
scroll.show_all ();
}
ThreadIndexScrolled::~ThreadIndexScrolled () {
LOG (debug) << "tis: deconstruct.";
}
void ThreadIndexScrolled::grab_modal () {
list_view->add_modal_grab ();
list_view->grab_focus ();
}
void ThreadIndexScrolled::release_modal () {
list_view->remove_modal_grab ();
}
/* ----------
* list store
* ----------
*/
ThreadIndexListStore::ThreadIndexListStoreColumnRecord::ThreadIndexListStoreColumnRecord () {
add (newest_date);
add (oldest_date);
add (thread_id);
add (thread);
add (marked);
}
ThreadIndexListStore::ThreadIndexListStore () {
set_column_types (columns);
}
ThreadIndexListStore::~ThreadIndexListStore () {
LOG (debug)