X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_query%2Flisting.h;h=b8eb288bf30728ea676ae44542578542d2b1d96d;hb=69fc8b21b1d40335e5c4223bcc74c26d49202fb2;hp=b4d10f06dca7b0612377ab6a0ec37d5f8063e33e;hpb=471a5e5f9928e2d324b2e10422a420f458bd63ff;p=ion3.git diff --git a/mod_query/listing.h b/mod_query/listing.h index b4d10f0..b8eb288 100644 --- a/mod_query/listing.h +++ b/mod_query/listing.h @@ -3,10 +3,7 @@ * * Copyright (c) Tuomo Valkonen 1999-2007. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #ifndef ION_MOD_QUERY_LISTING_H @@ -15,6 +12,7 @@ #include #include #include +#include INTRSTRUCT(WListing); INTRSTRUCT(WListingItemInfo); @@ -36,6 +34,13 @@ DECLSTRUCT(WListing){ bool onecol; }; + +#define LISTING_DRAW_COMPLETE 1 +#define LISTING_DRAW_ALL 0 +#define LISTING_DRAW_SELECTED(X) minof(-1, -(X)-2) +#define LISTING_DRAW_GET_SELECTED(X) (-(X)-2) + + extern void init_listing(WListing *l); extern void setup_listing(WListing *l, char **strs, int nstrs, bool onecol); extern void deinit_listing(WListing *l);