]>
Commit | Line | Data |
---|---|---|
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 _PICKPACKAGELINE_H_ | |
17 | #define _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):pkg (apkg), theView (aView) | |
27 | { | |
28 | key = apkg.key; | |
29 | }; | |
30 | virtual void paint (HDC hdc, int x, int y, int row, int show_cat); | |
31 | virtual int click (int const myrow, int const ClickedRow, int const x); | |
32 | virtual int itemcount () const | |
33 | { | |
34 | return 1; | |
35 | } | |
36 | virtual bool IsContainer (void) const | |
37 | { | |
38 | return false; | |
39 | } | |
40 | virtual void insert (PickLine &) | |
41 | { | |
42 | }; | |
43 | virtual int set_action (packagemeta::_actions); | |
44 | private: | |
45 | packagemeta & pkg; | |
46 | PickView & theView; | |
47 | }; | |
48 | ||
49 | #endif // _PICKPACKAGELINE_H_ |