2 * Copyright (c) 2002 Robert Collins.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by Robert Collins <robertc@hotmail.com>
16 #ifndef SETUP_PICKCATEGORYLINE_H
17 #define SETUP_PICKCATEGORYLINE_H
19 #include "package_meta.h"
23 class PickCategoryLine
: public ListViewLine
26 PickCategoryLine (PickView
& aView
, CategoryTree
* _tree
, int _pkgcount
, int _indent
) :
37 const std::wstring
get_text(int col
) const;
38 State
get_state() const;
39 const std::string
get_tooltip(int col
) const;
40 int get_indent() const;
41 ActionList
*get_actions(int col
) const;
42 int do_action(int col
, int action_id
);
43 int do_default_action(int col
);
44 int map_key_to_action(WORD vkey
, int modkeys
, int & col_num
, int & action_id
) const;
47 CategoryTree
* cat_tree
;
53 #endif /* SETUP_PICKCATEGORYLINE_H */