medit/moo/mooapp/mooapp-private.h

84 lines
1.8 KiB
C
Raw Normal View History

2006-08-13 04:00:15 -05:00
/*
2007-06-24 12:56:20 -05:00
* mooapp/mooapp-private.h
2006-08-13 04:00:15 -05:00
*
* Copyright (C) 2004-2008 by Yevgen Muntyan <muntyan@tamu.edu>
2006-08-13 04:00:15 -05:00
*
* This file is part of medit. medit 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.
2006-08-13 04:00:15 -05:00
*
* You should have received a copy of the GNU Lesser General Public
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
2006-08-13 04:00:15 -05:00
*/
#ifndef MOO_APP_COMPILATION
#error "This file may not be used"
#endif
#ifndef MOO_APP_PRIVATE_H
#define MOO_APP_PRIVATE_H
2006-08-13 04:00:15 -05:00
#include "mooapp.h"
2006-08-13 04:00:15 -05:00
G_BEGIN_DECLS
typedef enum
{
MOO_APP_CMD_ZERO = 0,
MOO_APP_CMD_PYTHON_STRING,
MOO_APP_CMD_PYTHON_FILE,
MOO_APP_CMD_SCRIPT,
MOO_APP_CMD_OPEN_FILE,
MOO_APP_CMD_OPEN_URIS,
2008-09-15 04:48:38 -05:00
/* XXX pathetic! */
MOO_APP_CMD_OPEN_URIS2,
MOO_APP_CMD_QUIT,
MOO_APP_CMD_DIE,
MOO_APP_CMD_PRESENT,
MOO_APP_CMD_LAST
} MooAppCmdCode;
#if defined(WANT_MOO_APP_CMD_STRINGS) || defined(WANT_MOO_APP_CMD_CHARS)
#define CMD_ZERO "\0"
#define CMD_PYTHON_STRING "p"
#define CMD_PYTHON_FILE "P"
#define CMD_SCRIPT "s"
#define CMD_OPEN_FILE "f"
#define CMD_OPEN_URIS "u"
2008-09-15 04:48:38 -05:00
#define CMD_OPEN_URIS2 "U"
#define CMD_QUIT "q"
#define CMD_DIE "d"
#define CMD_PRESENT "r"
#endif
#ifdef WANT_MOO_APP_CMD_CHARS
static const char *moo_app_cmd_chars =
CMD_ZERO
CMD_PYTHON_STRING
CMD_PYTHON_FILE
CMD_SCRIPT
CMD_OPEN_FILE
CMD_OPEN_URIS
2008-09-15 04:48:38 -05:00
CMD_OPEN_URIS2
CMD_QUIT
CMD_DIE
CMD_PRESENT
;
#endif /* WANT_MOO_APP_CMD_CHARS */
2006-08-13 04:00:15 -05:00
GtkWidget *_moo_app_create_prefs_dialog (MooApp *app);
G_END_DECLS
#endif /* MOO_APP_PRIVATE_H */