summaryrefslogtreecommitdiff
path: root/src/miav.cc
diff options
context:
space:
mode:
authordeva <deva>2005-05-03 09:22:12 +0000
committerdeva <deva>2005-05-03 09:22:12 +0000
commit2bef4cb3d3230915e5e673f10910ff8f520a0c19 (patch)
treecb027efa35cc46c63ece8b60116b70e6680516c3 /src/miav.cc
parentfc6b6c4981bfeb94055a43c4b9eebc979f0370b8 (diff)
Implemented the gui part of the info object.
Diffstat (limited to 'src/miav.cc')
-rw-r--r--src/miav.cc11
1 files changed, 8 insertions, 3 deletions
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: