This repository has been archived on 2020-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
gnoemoe/gnoemoe/widgets/gm-world-view.h

90 lines
2.8 KiB
C
Raw Normal View History

2005-11-07 10:56:25 +01:00
#ifndef __GM_WORLD_VIEW_H__
#define __GM_WORLD_VIEW_H__
#include <gtk/gtk.h>
2006-01-10 01:39:05 +01:00
#include "gm-support.h"
#include "gm-world.h"
2005-11-07 10:56:25 +01:00
#include "gm-world-input-view.h"
#include "gm-world-text-view.h"
2005-11-19 14:08:25 +01:00
#include "gm-searchable.h"
2005-11-07 10:56:25 +01:00
G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define GM_TYPE_WORLD_VIEW (gm_world_view_get_type())
#define GM_WORLD_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
GM_TYPE_WORLD_VIEW, GmWorldView))
#define GM_WORLD_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
GM_TYPE_WORLD_VIEW, GmWorldView const))
#define GM_WORLD_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
GM_TYPE_WORLD_VIEW, GmWorldViewClass))
#define GM_IS_WORLD_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
GM_TYPE_WORLD_VIEW))
#define GM_IS_WORLD_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
GM_TYPE_WORLD_VIEW))
#define GM_WORLD_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
GM_TYPE_WORLD_VIEW, GmWorldViewClass))
2005-11-07 10:56:25 +01:00
/* Private structure type */
typedef struct _GmWorldViewPrivate GmWorldViewPrivate;
/*
* Main object structure
*/
typedef struct _GmWorldView GmWorldView;
struct _GmWorldView {
GtkNotebook notebook;
/*< private > */
GmWorldViewPrivate *priv;
};
/*
* Class definition
*/
typedef struct _GmWorldViewClass GmWorldViewClass;
struct _GmWorldViewClass {
GtkNotebookClass parent_class;
/* Signals */
};
GType gm_world_view_get_type(void) G_GNUC_CONST;
GtkWidget *gm_world_view_new(GmWorld *world);
gboolean gm_world_view_find_first(GmWorldView *view, const gchar *str,
2005-11-19 14:08:25 +01:00
GmSearchableSearchFlags flags);
2005-11-07 10:56:25 +01:00
gboolean gm_world_view_find_next(GmWorldView *view, const gchar *str,
2005-11-19 14:08:25 +01:00
GmSearchableSearchFlags flags);
gboolean gm_world_view_can_find(GmWorldView *view);
gboolean gm_world_view_page_can_find(GmWorldView *view, gint page_num);
2005-11-07 10:56:25 +01:00
2006-01-02 18:44:36 +01:00
gboolean gm_world_view_replace(GmWorldView *view, gchar const *replace);
gboolean gm_world_view_replace_all(GmWorldView *view, gchar const *str,
gchar const *replace, GmSearchableSearchFlags flags);
gboolean gm_world_view_can_replace(GmWorldView *view);
gboolean gm_world_view_page_can_replace(GmWorldView *view, gint page_num);
2005-11-07 10:56:25 +01:00
GmWorld *gm_world_view_world(GmWorldView *view);
GmWorldInputView *gm_world_view_input(GmWorldView *view);
GmWorldTextView *gm_world_view_text_view(GmWorldView *view);
GtkHPaned *gm_world_view_hpaned(GmWorldView *view);
2005-11-07 10:56:25 +01:00
GtkTextBuffer *gm_world_view_buffer(GmWorldView *view);
gboolean gm_world_view_text_active(GmWorldView *view);
void gm_world_view_open_log(GmWorldView *view, const gchar *filename);
2005-11-07 10:56:25 +01:00
void gm_world_view_set_userlist_width(GmWorldView *view, gint width);
void gm_world_view_set_focus(GmWorldView *view);
void gm_world_view_update_status(GmWorldView *view, gchar const *status);
* VERSION CHANGED TO 2.0.9 * po/POTFILES.in: added gnoemoe/dialogs/gm-world-paste-dialog.c and ui/gm-world-paste.glade * po/nl.po: added translations * ui/Makefile.am: * ui/gm-ui.xml: * ui/gm-world-paste.glade: new paste dialog * gnoemoe/mcp/Makefile.include: added gm-cell-renderer-text.[ch] * gnoemoe/mcp/gm-cell-renderer-text.[ch]: new cell renderer for rendering userlist * gnoemoe/mcp/gm-mcp-vmoo-client.c: update metrics in timeout so to reduce the number of updates when resizing * gnoemoe/mcp/gm-mcp-icecrew-serverinfo.c: max version set to 1.0 (1.0 does not actively request the info because it will be send on initialization). Set menu item invisible instead of insensitive when there is no info available * gnoemoe/mcp/gm-mcp-icecrew-userlist.c: fixed menu item substitution * gnoemoe/mcp/gm-mcp-vmoo-userlist.c: removed support for status because it doesn't really support it * gm-mcp-userlist-view.[ch]: moved column constants to header. Render items with new gm-cell-renderer-text. * gnoemoe/mcp/gm-mcp-icecrew-playerdb.[ch]: made gm_mcp_icecrew_playerdb_players public * gnoemoe/dialogs/Makefile.include: added gm-world-paste-dialog * gnoemoe/dialogs/gm-world-paste-dialog.[ch]: new paste dialog * gnoemoe/dialogs/gm-world-properties-dialog.c: * gnoemoe/dialogs/gm-world-logs-dialog.c: fixed leaking tree stores * gnoemoe/widgets/Makefile.include: added gm-commands.[ch] * gnoemoe/widgets/gm-commands.[ch]: new file for handling action activation (removed from gm-app-view) * gnoemoe/widgets/gm-world-view.c: fixed userlist size restore * gnoemoe/widgets/gm-app-view.c: removed action handlers * gnoemoe/gm-support.[ch]: added gm_find_child * gnoemoe/gm-world.c: removed debug message * gnoemoe/gm-ui.h: changed actions to gm-commands
2006-04-23 16:51:04 +02:00
void gm_world_view_flash_status(GmWorldView *view, gchar const *status,
guint seconds);
2005-11-07 10:56:25 +01:00
G_END_DECLS
#endif /* __GM_WORLD_VIEW_H__ */