]> cygwin.com Git - cygwin-apps/setup.git/blob - PickPackageLine.h
Add ldesc tooltips to sdesc column of listview
[cygwin-apps/setup.git] / PickPackageLine.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_PICKPACKAGELINE_H
17 #define SETUP_PICKPACKAGELINE_H
18
19 class PickView;
20
21 #include "package_meta.h"
22 #include "ListView.h"
23
24 class PickPackageLine: public ListViewLine
25 {
26 public:
27 PickPackageLine (PickView &aView, packagemeta & apkg, int aindent) :
28 pkg (apkg),
29 theView (aView),
30 indent (aindent)
31 {
32 };
33 const std::string get_text(int col) const;
34 State get_state() const { return State::nothing; }
35 const std::string get_tooltip(int col) const;
36 int get_indent() const;
37 ActionList *get_actions(int col_num) const;
38 int do_action(int col, int action_id);
39 private:
40 packagemeta & pkg;
41 PickView & theView;
42 int indent;
43 };
44
45 #endif /* SETUP_PICKPACKAGELINE_H */
This page took 0.039491 seconds and 6 git commands to generate.