2 * Copyright (c) 2002 Robert Collins.
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.
9 * A copy of the GNU General Public License can be found at
12 * Written by Robert Collins <robertc@hotmail.com>
25 #define RTARROW_WIDTH 11
27 #define NEW_COL_SIZE_SLOP (ICON_MARGIN + SPIN_WIDTH + RTARROW_WIDTH)
32 #include "PickCategoryLine.h"
33 #include "package_meta.h"
41 views
get_view_mode ()
45 void set_view_mode (views _mode
);
47 PickView (views mode
, HWND listview
, Category
& cat
);
48 const char *mode_caption ();
49 void insert_pkg (packagemeta
&);
50 void insert_category (Category
*, bool);
51 void clear_view (void);
52 int click (int row
, int x
);
62 HANDLE bm_spin
,bm_rtarrow
, bm_checkyes
, bm_checkno
, bm_checkna
;
65 int scroll_ulc_x
, scroll_ulc_y
;
67 PickCategoryLine contents
;
68 void scroll (HWND hwnd
, int which
, int *var
, int code
);
69 HWND
ListHeader (void) const
78 static const views Unknown
;
79 static const views PackageFull
;
80 static const views Package
;
81 static const views Category
;
82 static const views NView
;
89 if (_value
< 0 || _value
> 3)
92 views
& operator++ ();
93 bool operator == (views
const &rhs
)
95 return _value
== rhs
._value
;
97 bool operator != (views
const &rhs
)
99 return _value
!= rhs
._value
;
101 const char *caption ();
121 void init_headers (HDC dc
);
122 void note_width (Header
*hdrs
, HDC dc
, String
const &string
, int addend
,
127 #endif // _PICKVIEW_H_