1 /***************************************************************************
2 search_gui.cpp - Gui to view the search tree
4 begin : Sat Oct 06 2007
5 copyright : (C) 2007 by Maurizio Monge
6 email : monge@linuz.sns.it
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #include "search_gui.h"
20 #include <QApplication>
22 #include <QSocketNotifier>
24 SearchGui::SearchGui(int& argc
, char** argv
)
27 app
= new QApplication(argc
, argv
);
28 treeview
= new QTreeView();
29 treeview
->resize(640, 480);
32 new QSocketNotifier( fileno(stdin
), QSocketNotifier::Read
, this);
33 new QSocketNotifier( fileno(stdin
), QSocketNotifier::Exception
, this);
36 SearchGui::~SearchGui()
42 void SearchGui::wait_input()
48 app
->processEvents(QEventLoop::WaitForMoreEvents
);
52 #include "search_gui.moc"