summaryrefslogtreecommitdiff
path: root/dselect/method.h
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-03-20 09:39:42 +0100
committerGuillem Jover <guillem@debian.org>2014-08-15 03:42:58 +0200
commitced655387fa38215c61d3df5478cd4228c04b92a (patch)
tree77d04f283bc7b46035f6600456a63dee715ad913 /dselect/method.h
parent271d88e37cfd30147157acd79bcbc9d5f51ecfe7 (diff)
downloaddpkg-ced655387fa38215c61d3df5478cd4228c04b92a.tar.gz
dselect: Rework columns code
Add a new struct to hold each column data, and helper functions to handle it, so that we can easily add new columns w/o needing to have to manually track the current and previous column width and similar.
Diffstat (limited to 'dselect/method.h')
-rw-r--r--dselect/method.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dselect/method.h b/dselect/method.h
index 1610644fb..838f50f6c 100644
--- a/dselect/method.h
+++ b/dselect/method.h
@@ -51,8 +51,9 @@ struct dselect_option {
class methodlist : public baselist {
protected:
- int status_width, name_width, description_width;
- int name_column, description_column;
+ column col_status;
+ column col_name;
+ column col_desc;
// Table of methods
struct dselect_option **table;