~ubuntu-branches/ubuntu/dapper/ksystemlog/dapper

« back to all changes in this revision

Viewing changes to ksystemlog/src/generalOptions.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-07-07 16:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20050707160000-a104d769ph3yfkg4
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2005 by Nicolas Ternisien                               *
 
3
 *   nicolas.ternisien@gmail.com                                           *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
19
 ***************************************************************************/
 
20
 
 
21
#ifndef _GENERAL_OPTIONS_H_
 
22
#define _GENERAL_OPTIONS_H_
 
23
 
 
24
#include <qframe.h>
 
25
#include <qspinbox.h>
 
26
#include <qbuttongroup.h>
 
27
#include <qcheckbox.h>
 
28
 
 
29
#include <kconfig.h>
 
30
#include <kdialogbase.h>
 
31
 
 
32
#include "globals.h"
 
33
 
 
34
 
 
35
class GeneralOptions : public QWidget {
 
36
        Q_OBJECT
 
37
        public:
 
38
                GeneralOptions(QWidget *parent = 0);
 
39
                
 
40
                bool isValid();
 
41
 
 
42
        public slots:
 
43
                void saveConfig();
 
44
                void readConfig();
 
45
 
 
46
        signals:
 
47
                void optionsChanged(bool valid);
 
48
        
 
49
        private slots:
 
50
                void onOptionsChanged();
 
51
                
 
52
        private:                
 
53
                QSpinBox* maxLines;
 
54
                QSpinBox* maxCharacters;
 
55
                QCheckBox* deleteDuplicatedLines;
 
56
                
 
57
                QCheckBox* deleteProcessId;
 
58
                QCheckBox* colorizeLogLines;
 
59
};
 
60
 
 
61
#endif // _GENERAL_PREFERENCES_H_