From 3439d9b7e239727f701ec7b4d6d7ac5e06bbba0f Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 24 Nov 2013 19:01:41 +0000 Subject: [PATCH] Started GUI to view changes. --- .anjuta_sym_db.db | Bin 917504 -> 917504 bytes .gitignore | 1 + Makefile.am | 2 +- configure.ac | 15 +-- data/Makefile.am | 1 + data/libzakaudit/Makefile.am | 1 + data/libzakaudit/gui/Makefile.am | 5 + data/libzakaudit/gui/libzakaudit.ui | 138 ++++++++++++++++++++++++++++ src/Makefile.am | 3 + src/audit.c | 2 +- src/libzakaudit.h | 2 +- tests/test1.c | 1 - 12 files changed, 161 insertions(+), 10 deletions(-) create mode 100644 data/Makefile.am create mode 100644 data/libzakaudit/Makefile.am create mode 100644 data/libzakaudit/gui/Makefile.am create mode 100644 data/libzakaudit/gui/libzakaudit.ui diff --git a/.anjuta_sym_db.db b/.anjuta_sym_db.db index 783ebc1281815b536b2c14cc73c1aebecd5d4074..0e8be400b96bc735aa7bafbec102562f1b3a63d7 100644 GIT binary patch delta 2318 zcmZvdYj6|S702)H>aHbOYa?vO$d&+GwuxWZlH!QS)7UCtN^ly(U}GC&Nw$RbvLs8E zCA89B8BAgz3{it~X`#3inoMcZ7P&Y(Fl~k~89ua~p^tPXZ8}V68kkNyp)}=H*FxQu zjZ0hf;it2A|L2^$_nbYOOm0dhH@#6#xKirPglp0|ZzbME#nS+NiEg3aq3h@)G>6_r zr_ppeebtk`@_tdBQbuhcESB-nfF?*MPoS%4p?)k3!V~@eZjWM47 zz|Fu<-RC@o?wf&AfncEBf5U&o|Dx~X=!VFL2Yz&*0!6q#az{BsVkVx6e&)FwJsUaY zZSmS7#)&^o%uZB?FUL=YjpOIX*N2XT^uZg!_Ob7cb&URcG~&JN?sRlGO5IA=A6&-M zE}OI2dC2=5=gl@%)#z*$UT}1QJ!r%78iTr%J@UOVj4cn<1uqI_L#^>DdBITO}I30mic#j9x zV9o=NOT1A6V4W9QC1XZVok~~mGhQesu@1o)z8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MC^{ih$k43OHtd3 ztCrwsv4N@iHbQZ`1xritEVGfZ$@92$5$Y>!EK{fkDiClCyBfK5gGy%IK(4aM|G<+q zxr~XxKG%5I9v<=6Xx13ws8(k)1~Tgj+vTx^#(S1w)m9Co%{ZM6>{n(5RA;gZJscVJ1csWj^-Ps?YX$BFIA;}xw&yXM z*H{!K2AZ;d^SiJ-eVQ+B`@DP+-nzSw^?uI)T%75ZkgxNvl9Fksg7j zRchj_?j~CE0woYXO+=A_cT>bxX6&6<6u2{1;wUG=q3e{A80|#bh-@d)O2kH_g-A1Q zN8I63Vrq%x63L+`bd$=&EwIQJ0V(`0;yUxlTt1P!%*z+cCWXP7;r-Nf3Q4shHy2IM zl}g!9xF0dFxkPEI#Eum%AKzN$?&7~MaGO9Yo?hYV@x%&e0xkIQ3fC*2|IRPDUxWVw DT|b-4 diff --git a/.gitignore b/.gitignore index ea19dd6..0b5e80f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +compile INSTALL aclocal.m4 autom4te.cache diff --git a/Makefile.am b/Makefile.am index f8d72d8..a9928bd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = src docs tests +SUBDIRS = src data docs tests EXTRA_DIST = \ libzakaudit.pc.in diff --git a/configure.ac b/configure.ac index e4315e2..8f5b815 100644 --- a/configure.ac +++ b/configure.ac @@ -45,12 +45,15 @@ AC_STRUCT_TM # Checks for library functions. AC_CONFIG_FILES([ - libzakaudit.pc - Makefile - src/Makefile - docs/Makefile - docs/sql/Makefile - tests/Makefile + libzakaudit.pc + Makefile + src/Makefile + data/Makefile + data/libzakaudit/Makefile + data/libzakaudit/gui/Makefile + docs/Makefile + docs/sql/Makefile + tests/Makefile ]) AC_OUTPUT diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..b931e3a --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = libzakaudit diff --git a/data/libzakaudit/Makefile.am b/data/libzakaudit/Makefile.am new file mode 100644 index 0000000..13c2b3d --- /dev/null +++ b/data/libzakaudit/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = gui diff --git a/data/libzakaudit/gui/Makefile.am b/data/libzakaudit/gui/Makefile.am new file mode 100644 index 0000000..38a3375 --- /dev/null +++ b/data/libzakaudit/gui/Makefile.am @@ -0,0 +1,5 @@ +guidir = $(datadir)/$(PACKAGE)/gui + +gui_DATA = libzakaudit.ui + +EXTRA_DIST = $(gui_DATA) diff --git a/data/libzakaudit/gui/libzakaudit.ui b/data/libzakaudit/gui/libzakaudit.ui new file mode 100644 index 0000000..b82369b --- /dev/null +++ b/data/libzakaudit/gui/libzakaudit.ui @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + False + True + center-on-parent + True + + + True + False + 5 + 5 + + + True + True + automatic + automatic + etched-in + + + True + True + tstore_changes + True + + + Date + + + + 1 + + + + + + + Type + + + + 2 + + + + + + + User + + + + 3 + + + + + + + Field + + + + 4 + + + + + + + Value + + + + 5 + + + + + + + + + True + True + 0 + + + + + True + False + end + + + gtk-close + True + True + True + True + + + False + False + 0 + + + + + False + True + 1 + + + + + + diff --git a/src/Makefile.am b/src/Makefile.am index a30bbc8..b01b64d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,8 @@ +guidir = $(datadir)/$(PACKAGE)/gui + AM_CPPFLAGS = $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ + -DGUIDIR=\""$(guidir)"\" \ -DG_LOG_DOMAIN=\"ZakAudit\" \ $(LIBZAKAUDIT_CFLAGS) diff --git a/src/audit.c b/src/audit.c index 8c680bc..885c1eb 100644 --- a/src/audit.c +++ b/src/audit.c @@ -1,7 +1,7 @@ /* * audit.c * - * Copyright (C) 2005-2011 Andrea Zagli + * Copyright (C) 2005-2013 Andrea Zagli * * This file is part of libzak_audit. * diff --git a/src/libzakaudit.h b/src/libzakaudit.h index 6ae1878..5b3f76d 100644 --- a/src/libzakaudit.h +++ b/src/libzakaudit.h @@ -1,7 +1,7 @@ /* * libzakaudit.h * - * Copyright (C) 2005-2011 Andrea Zagli + * Copyright (C) 2005-2013 Andrea Zagli * * This file is part of libzak_audit. * diff --git a/tests/test1.c b/tests/test1.c index 9cd6226..48e2fb8 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -120,7 +120,6 @@ main (int argc, char *argv[]) gda_connection_statement_execute_non_select (conn, stmt, NULL, NULL, NULL); zak_audit_action_from_gdastatement (audit, ZAK_AUDIT_ACTION_AFTER_UPDATE, "I", "audit_test1", stmt); - stmt = gda_sql_parser_parse_string (parser, "DELETE FROM test1 WHERE id = 2", NULL, NULL); if (stmt == NULL) { -- 2.49.0