]> cygwin.com Git - cygwin-apps/setup.git/blob - PickPackageLine.h
2007-02-17 Brian Dessent <brian@dessent.net>
[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 #include "package_meta.h"
21 #include "PickLine.h"
22
23 class PickPackageLine:public PickLine
24 {
25 public:
26 PickPackageLine (PickView &aView, packagemeta & apkg):PickLine (apkg.key), pkg (apkg), theView (aView)
27 {
28 };
29 virtual void paint (HDC hdc, HRGN unused, int x, int y, int col_num, int show_cat);
30 virtual int click (int const myrow, int const ClickedRow, int const x);
31 virtual int itemcount () const
32 {
33 return 1;
34 }
35 virtual bool IsContainer (void) const
36 {
37 return false;
38 }
39 virtual void insert (PickLine &)
40 {
41 };
42 virtual int set_action (packagemeta::_actions);
43 private:
44 packagemeta & pkg;
45 PickView & theView;
46 };
47
48 #endif /* SETUP_PICKPACKAGELINE_H */
This page took 0.036126 seconds and 5 git commands to generate.