]> cygwin.com Git - cygwin-apps/setup.git/blob - PickCategoryLine.h
Also run stratum 'z' perpetual preremove scripts
[cygwin-apps/setup.git] / PickCategoryLine.h
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
16 #ifndef SETUP_PICKCATEGORYLINE_H
17 #define SETUP_PICKCATEGORYLINE_H
18
19 #include "package_meta.h"
20 #include "ListView.h"
21 #include "PickView.h"
22
23 class PickCategoryLine: public ListViewLine
24 {
25 public:
26 PickCategoryLine (PickView & aView, CategoryTree * _tree, int _pkgcount, int _indent) :
27 cat_tree (_tree),
28 pkgcount(_pkgcount),
29 theView (aView),
30 indent(_indent)
31 {
32 };
33 ~PickCategoryLine ()
34 {
35 }
36
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 bool map_key_to_action(WORD vkey, int *col_num, int *action_id) const;
45
46 private:
47 CategoryTree * cat_tree;
48 int pkgcount;
49 PickView & theView;
50 int indent;
51 };
52
53 #endif /* SETUP_PICKCATEGORYLINE_H */
This page took 0.036846 seconds and 5 git commands to generate.