~benklop/+junk/lcdproc

« back to all changes in this revision

Viewing changes to server/menuscreens.h

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Tallon
  • Date: 2006-07-23 20:23:48 UTC
  • mfrom: (3 sarge)
  • mto: (3.1.1 sid) (1.1.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060723202348-3ngyais3pem8xyrm
Tags: upstream-0.5.0
ImportĀ upstreamĀ versionĀ 0.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * menuscreens.h
 
3
 * This file is part of LCDd, the lcdproc server.
 
4
 *
 
5
 * This file is released under the GNU General Public License. Refer to the
 
6
 * COPYING file distributed with this package.
 
7
 *
 
8
 * Copyright (c) 1999, William Ferrell, Scott Scriven
 
9
 *               2003, Joris Robijn
 
10
 *
 
11
 *
 
12
 * Creates all menuscreens, menus and handles the keypresses for the
 
13
 * menuscreens.
 
14
 */
 
15
 
 
16
#ifndef MENUSCREENS_H
 
17
#define MENUSCREENS_H
 
18
 
 
19
#include "menu.h"
 
20
#include "menuitem.h"
 
21
#include "screen.h"
 
22
 
 
23
extern Screen * menuscreen;
 
24
extern Menu * main_menu;
 
25
 
 
26
int menuscreens_init();
 
27
 
 
28
int menuscreens_shutdown();
 
29
 
 
30
/** This function indicates to the input part whether this key was the
 
31
 * reserved menu key.
 
32
 */
 
33
bool is_menu_key (const char * key);
 
34
 
 
35
/** Meant for other parts of the program to inform the menuscreen that the
 
36
 * item is about to be removed.
 
37
 */
 
38
void menuscreen_inform_item_destruction (MenuItem * item);
 
39
 
 
40
/** Meant for other parts of the program to inform the menuscreen that some
 
41
 * properties of the item have been modified.
 
42
 */
 
43
void menuscreen_inform_item_modified (MenuItem * item);
 
44
 
 
45
/** This handler handles the keypresses for the menu.
 
46
 */
 
47
void menuscreen_key_handler (const char *key);
 
48
 
 
49
/** Adds a menu for the given screen */
 
50
void menuscreen_add_screen (Screen * s);
 
51
 
 
52
/** Removes the menu of the given screen */
 
53
void menuscreen_remove_screen (Screen * s);
 
54
 
 
55
/** switches to menu. */
 
56
int menuscreen_goto (Menu * menu);
 
57
 
 
58
/** sets custom_main_menu. */
 
59
int menuscreen_set_main (Menu * menu);
 
60
 
 
61
#endif