/
global.h
43 lines (37 loc) · 1.23 KB
/
global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef GLOBAL_H
#define GLOBAL_H
#include <gtk/gtk.h>
//! yang di bawah ini ada di file main
typedef struct _parent {
GtkWidget *window;
gboolean appReady;
}parent_;
gboolean mainQuit();
// hanya pemesanan
parent_ *parent;
//! yang ini berada di global.c
//gchar *name = g_strdup_printf ("%s %s", *fname, *sname);
#define count(a) sizeof(a)/sizeof(*a)
#define struct_new(x) g_malloc (sizeof (x))
gchar globalGetListHari(gchar **text );
gchar *globalConIntToStr(gint value);
gint globalConStrToInt(gchar *text);
gfloat globalConStrToFlo(gchar *text);
void globalShowError(GtkWidget *widget, gpointer window,const gchar *pesan);
GtkWidget* globalGetParent();
gchar *globalPutZeroToWkt( gint);
GtkWidget *globalGetSimpleQues(GtkWidget *,char*,char*);
gchar *globalGetAppName();
gchar *globalGetVersion();
gchar *globalGetAppNameNVersion();
void globalSetCurrentIndexCombo(GtkWidget*,gchar*);
gchar* globalGetDefCom();
GdkPixbuf *globalCreateIcon(const gchar *);
void globalShowAbout(GtkWidget *, gpointer);
gchar *globalGetCurDir();
void globalSetGtkrc(const gchar*);
void globalAddGValue(GValue *val , GType type,gchar* text , gboolean changeType);
gboolean globalIsAppReady();
void globalSetAppReady(gboolean status);
void globalCreate();
#endif