-
Notifications
You must be signed in to change notification settings - Fork 4
/
config_view.hpp
59 lines (51 loc) · 1.83 KB
/
config_view.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef CONFIG_VIEW_HPP
#define CONFIG_VIEW_HPP
/*----------------------------------------------------------------------
* $Id: config_view.hpp,v 1.4 2005-10-03 02:43:20 ganzhorn Exp $
*
* Copyright (C) 2005 Salem Ganzhorn <[email protected]>
*
* This file is part of kccmp - Kernel Config CoMPare
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*----------------------------------------------------------------------*/
#if KCCMP_QT_4
#include <QObject>
#include <QFrame>
#else
#include <qobject.h>
#include <qframe.h>
#endif
#include <set>
#include <string>
#include "config.hpp"
class QTabWidget;
class config_view : public QFrame {
Q_OBJECT;
public:
config_view( QWidget *parent = 0 );
virtual ~config_view();
void compare( const std::string &filename1,
const std::string &filename2 );
protected:
void add_diff_tab( QTabWidget *tab, const std::set<std::string> &info,
const config& c1, const config &c2,
const QString &dir1, const QString &dir2 );
void add_set_tab( QTabWidget *tab,
const std::set<std::string> &info,
const config& c,
const QString &label );
};
#endif