diff options
| author | Michiel Van Der Kolk <not.valid@email.address> | 2005-05-08 14:41:41 +0000 |
|---|---|---|
| committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-05-08 14:41:41 +0000 |
| commit | b0e010fc5142acc09b10aa4f6453dd6fbdcb8265 (patch) | |
| tree | 10e9186fcc373354ff387efbcb29ff941fee5fcb /apps/plugins/databox/databox.h | |
| parent | a559cf2e3949fcc0482b656411ed68c1e79bb245 (diff) | |
| download | rockbox-b0e010fc5142acc09b10aa4f6453dd6fbdcb8265.zip rockbox-b0e010fc5142acc09b10aa4f6453dd6fbdcb8265.tar.gz rockbox-b0e010fc5142acc09b10aa4f6453dd6fbdcb8265.tar.bz2 rockbox-b0e010fc5142acc09b10aa4f6453dd6fbdcb8265.tar.xz | |
Databox!
The frontend plugin for the searchengine, creates searchengine files (rsp)
Its not pretty, but it works.
Only compiling for recorder and iriver for now....since i don't know about players...
Also, i'm hoping someone will beautify the interface someday.
PS. Editing modes aren't fully operational yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6432 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/databox/databox.h')
| -rw-r--r-- | apps/plugins/databox/databox.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/apps/plugins/databox/databox.h b/apps/plugins/databox/databox.h new file mode 100644 index 0000000..ffbaf1d --- /dev/null +++ b/apps/plugins/databox/databox.h @@ -0,0 +1,58 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2005 by Michiel van der Kolk + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#ifndef DATABOX_H +#define DATABOX_H +#include <stdio.h> +#include <stdlib.h> +#include <plugin.h> +#include <database.h> + +#include "edittoken.h" +#include "editparser.h" + +extern struct plugin_api* rb; + +struct print { + struct font *fontfixed; + int font_w,font_h; + int line; + int position; +}; + +struct editor { + struct token *token; /* tokenstream */ + int currentindex; /* index of the token to change.(+1, 1=0 2=1 3=2 etc.) */ + int tokencount; /* total amount of tokens */ + int editingmode; /* defined in databox.h */ + int valid; /* is the current tokenstream valid ? */ +}; + +struct editing { + int selection_candidates[30]; /* possible options for this selecting */ + struct token old_token; /* only set when selecting, stores old token */ + int currentselection; /* current selection index */ + int selectionmax; + int selecting; /* boolean */ +}; + +extern struct print printing; +extern struct editor editor; +extern struct editing editing; + +#endif |