]> cygwin.com Git - cygwin-apps/setup.git/blob - PickPackageLine.h
Suggest URLs for updated setup based on build architecture
[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::wstring 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 int do_default_action(int col);
40 int map_key_to_action(WORD vkey, int modkeys, int & col_num, int & action_id) const;
41 private:
42 packagemeta & pkg;
43 PickView & theView;
44 int indent;
45 };
46
47 #endif /* SETUP_PICKPACKAGELINE_H */
This page took 0.037735 seconds and 6 git commands to generate.