Added translation using Weblate (Italian)
[cygwin-setup.git] / PickCategoryLine.h
blob7616b151ef50a026082ecf7f4facff7c97c3cc24
1 /*
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
10 * http://www.gnu.org/
12 * Written by Robert Collins <robertc@hotmail.com>
16 #ifndef SETUP_PICKCATEGORYLINE_H
17 #define SETUP_PICKCATEGORYLINE_H
19 #include "package_meta.h"
20 #include "ListView.h"
21 #include "PickView.h"
23 class PickCategoryLine: public ListViewLine
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)
33 ~PickCategoryLine ()
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;
46 private:
47 CategoryTree * cat_tree;
48 int pkgcount;
49 PickView & theView;
50 int indent;
53 #endif /* SETUP_PICKCATEGORYLINE_H */