From 2bef4cb3d3230915e5e673f10910ff8f520a0c19 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 3 May 2005 09:22:12 +0000 Subject: Implemented the gui part of the info object. --- src/miav.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/miav.cc') diff --git a/src/miav.cc b/src/miav.cc index daac99d..1518795 100644 --- a/src/miav.cc +++ b/src/miav.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.8 2005/05/03 09:22:12 deva + * Implemented the gui part of the info object. + * * Revision 1.7 2005/05/03 08:31:59 deva * Removed the error object, and replaced it with a more generic info object. * @@ -72,7 +75,11 @@ enum { int grab(int argc, char *argv[]) { #ifdef USE_GUI QApplication miav_grab( argc, argv ); - MainWindow mainwindow; + + InfoGui info(&miav_grab, NULL); + config = new MiavConfig(ETC"/miav.conf", &info); + + MainWindow mainwindow(&miav_grab); miav_grab.setMainWidget( &mainwindow ); return miav_grab.exec(); #else /* USE_GUI */ @@ -138,8 +145,6 @@ int main(int argc, char *argv[]) switch(mode) { case MODE_GRAB: { - InfoGui info; - config = new MiavConfig(ETC"/miav.conf", &info); return grab(argc - 2, &argv[2]); } case MODE_SERVER: -- cgit v1.2.3