]>
Commit | Line | Data |
---|---|---|
97647369 RC |
1 | /* |
2 | * Copyright (c) 2002 Robert Collins. | |
3 | * | |
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. | |
8 | * | |
9 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by Robert Collins <robertc@hotmail.com> | |
13 | * | |
14 | */ | |
15 | ||
c93bc6d0 MB |
16 | #ifndef SETUP_PICKCATEGORYLINE_H |
17 | #define SETUP_PICKCATEGORYLINE_H | |
97647369 | 18 | |
97647369 | 19 | #include "package_meta.h" |
ce9f6dd0 JT |
20 | #include "ListView.h" |
21 | #include "PickView.h" | |
97647369 | 22 | |
ce9f6dd0 | 23 | class PickCategoryLine: public ListViewLine |
97647369 RC |
24 | { |
25 | public: | |
68487c7c | 26 | PickCategoryLine (PickView & aView, CategoryTree * _tree, int _pkgcount, int _indent) : |
ce9f6dd0 | 27 | cat_tree (_tree), |
b8461b56 | 28 | pkgcount(_pkgcount), |
68487c7c JT |
29 | theView (aView), |
30 | indent(_indent) | |
97647369 | 31 | { |
97647369 RC |
32 | }; |
33 | ~PickCategoryLine () | |
34 | { | |
97647369 | 35 | } |
ce9f6dd0 | 36 | |
f34a20e7 | 37 | const std::wstring get_text(int col) const; |
db1c5abc | 38 | State get_state() const; |
800274fd | 39 | const std::string get_tooltip(int col) const; |
68487c7c | 40 | int get_indent() const; |
4018914c JT |
41 | ActionList *get_actions(int col) const; |
42 | int do_action(int col, int action_id); | |
76dc99c1 | 43 | int do_default_action(int col); |
c99e4c14 | 44 | int map_key_to_action(WORD vkey, int modkeys, int & col_num, int & action_id) const; |
ce9f6dd0 | 45 | |
97647369 | 46 | private: |
ce9f6dd0 | 47 | CategoryTree * cat_tree; |
b8461b56 | 48 | int pkgcount; |
ce9f6dd0 | 49 | PickView & theView; |
68487c7c | 50 | int indent; |
97647369 | 51 | }; |
ce9f6dd0 | 52 | |
c93bc6d0 | 53 | #endif /* SETUP_PICKCATEGORYLINE_H */ |