]> cygwin.com Git - cygwin-apps/setup.git/blob - PickLine.h
2002-01-22 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / PickLine.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 _PICKLINE_H_
17 #define _PICKLINE_H_
18
19 #include "win32.h"
20
21 class PickLine
22 {
23 public:
24 virtual void paint (HDC hdc, int x, int y, int row, int show_cat) = 0;
25 virtual int click (int const myrow, int const ClickedRow, int const x) = 0;
26 virtual int itemcount () const = 0;
27 // this may indicate bad inheritance model.
28 virtual bool IsContainer (void) const = 0;
29 virtual void insert (PickLine &) = 0;
30 // Never allocate to key, always allocated elsewhere
31 char const *key;
32 virtual ~ PickLine ()
33 {
34 };
35 protected:
36 PickLine ()
37 {
38 };
39 PickLine (char const *aKey):key (aKey)
40 {
41 };
42 PickLine (PickLine const &);
43 PickLine & operator= (PickLine const &);
44 };
45
46 #endif // _PICKLINE_H_
This page took 0.038913 seconds and 6 git commands to generate.