comparison widgets/QueryResultsWidget.h @ 7:a5175615d153

add easaier tab widgets, style and pass the layer characteristics in the main window (remove from panestack)
author lbajardsilogic
date Fri, 11 May 2007 14:11:19 +0000
parents
children c26c73ca6d37
comparison
equal deleted inserted replaced
6:028faa201f0e 7:a5175615d153
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /* Sound Access
4 EASAIER client application.
5 Silogic 2007. Laure Bajard.
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version. See the file
11 COPYING included with this distribution for more information.
12 */
13
14 #ifndef _QUERY_RESULTS_WIDGET_H_
15 #define _QUERY_RESULTS_WIDGET_H_
16
17 #include <QWidget>
18 #include <QGridLayout>
19
20 #include <vector>
21
22 class QueryResultsWidget : public QWidget
23 {
24 Q_OBJECT
25 public:
26 QueryResultsWidget();
27 virtual ~QueryResultsWidget();
28
29 void newResult();
30 void addInfo(const QString& name, const QString& value);
31
32 void displayResult();
33
34 void reset();
35
36 protected:
37
38 QGridLayout *m_resultsLayout;
39
40 int m_ndResults;
41
42 struct Info
43 {
44 QString name;
45 QString value;
46 };
47
48 std::vector<Info> m_curResult;
49
50 };
51
52
53 #endif