/* * Copyright (c) 2002 Robert Collins. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * A copy of the GNU General Public License can be found at * http://www.gnu.org/ * * Written by Robert Collins * */ #ifndef _PICKPACKAGELINE_H_ #define _PICKPACKAGELINE_H_ class PickView; #include "package_meta.h" #include "PickLine.h" class PickPackageLine:public PickLine { public: PickPackageLine (PickView &aView, packagemeta & apkg):pkg (apkg), theView (aView) { key = apkg.key; }; virtual void paint (HDC hdc, int x, int y, int row, int show_cat); virtual int click (int const myrow, int const ClickedRow, int const x); virtual int itemcount () const { return 1; } virtual bool IsContainer (void) const { return false; } virtual void insert (PickLine &) { }; private: packagemeta & pkg; PickView & theView; }; #endif // _PICKPACKAGELINE_H_