]>
Commit | Line | Data |
---|---|---|
97647369 RC |
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 _PICKLINE_H_ | |
17 | #define _PICKLINE_H_ | |
18 | ||
19 | #include "win32.h" | |
7e8fc33c | 20 | #include "package_meta.h" |
97647369 RC |
21 | |
22 | class PickLine | |
23 | { | |
24 | public: | |
25 | virtual void paint (HDC hdc, int x, int y, int row, int show_cat) = 0; | |
26 | virtual int click (int const myrow, int const ClickedRow, int const x) = 0; | |
7e8fc33c | 27 | virtual int set_action (packagemeta::_actions) = 0; |
97647369 RC |
28 | virtual int itemcount () const = 0; |
29 | // this may indicate bad inheritance model. | |
30 | virtual bool IsContainer (void) const = 0; | |
31 | virtual void insert (PickLine &) = 0; | |
32 | // Never allocate to key, always allocated elsewhere | |
33 | char const *key; | |
34 | virtual ~ PickLine () | |
35 | { | |
36 | }; | |
37 | protected: | |
38 | PickLine () | |
39 | { | |
40 | }; | |
41 | PickLine (char const *aKey):key (aKey) | |
42 | { | |
43 | }; | |
44 | PickLine (PickLine const &); | |
45 | PickLine & operator= (PickLine const &); | |
46 | }; | |
47 | ||
48 | #endif // _PICKLINE_H_ |