]> cygwin.com Git - cygwin-apps/setup.git/blame - PickPackageLine.h
2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
[cygwin-apps/setup.git] / PickPackageLine.h
CommitLineData
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 _PICKPACKAGELINE_H_
17#define _PICKPACKAGELINE_H_
18
19class PickView;
20#include "package_meta.h"
21#include "PickLine.h"
22
23class PickPackageLine:public PickLine
24{
25public:
3c054baf 26 PickPackageLine (PickView &aView, packagemeta & apkg):PickLine (apkg.key), pkg (apkg), theView (aView)
97647369 27 {
97647369
RC
28 };
29 virtual void paint (HDC hdc, int x, int y, int row, 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 };
7e8fc33c 42 virtual int set_action (packagemeta::_actions);
97647369
RC
43private:
44 packagemeta & pkg;
45 PickView & theView;
2fa7c5a4
RC
46 // XXX make checked an enum or tri-valued class of its own
47 void DrawCheck (int const checked, HDC hdc, int const column, HRGN const clip, int const x, int const by);
97647369
RC
48};
49
50#endif // _PICKPACKAGELINE_H_
This page took 0.030453 seconds and 5 git commands to generate.