X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=mod_query%2Flisting.h;h=2b2a215aeffdcdbdfc1ee1224f2cc5442af8c64f;hp=b4d10f06dca7b0612377ab6a0ec37d5f8063e33e;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d diff --git a/mod_query/listing.h b/mod_query/listing.h index b4d10f0..2b2a215 100644 --- a/mod_query/listing.h +++ b/mod_query/listing.h @@ -1,12 +1,9 @@ /* * ion/mod_query/listing.h * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2009. * - * 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);