/*
- * list.c
+ * $Id$
+ *
* by JH <jheinonen@bigfoot.com>
*
* Copyright (C) Jaakko Heinonen
#include <stdio.h>
#include <string.h>
-#include "abook_curses.h"
#include "abook.h"
+#include "ui.h"
#include "database.h"
#include "edit.h"
#include "list.h"
werase(list);
- print_number_of_items();
+ ui_print_number_of_items();
if( items < 1 ) {
refresh();
int
selected_items()
{
- int i, a=0;
+ int i, n = 0;
for(i = 0; i < items; i++)
if(selected[i])
- a++;
+ n++;
- return a;
+ return n;
}
void
selected[i] = !selected[i];
}
+inline int
+list_current_item()
+{
+ return curitem;
+}
+
+inline int
+list_is_empty()
+{
+ return items < 1;
+}
+
+