~neon/kompare/master

« back to all changes in this revision

Viewing changes to src/dialogpages/filessettings.h

  • Committer: Friedrich W. H. Kossebau
  • Date: 2020-11-13 21:43:33 UTC
  • Revision ID: git-v1:79fce0df862602a8e2790d7d14f4037744a006f6
Reorganize sources into src/ subfolder

NO_CHANGELOG

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                                filessettings.cpp
 
3
                                -----------------
 
4
        begin                   : Sun Apr 18 2004
 
5
        Copyright 2004 Otto Bruggeman <otto.bruggeman@home.nl>
 
6
****************************************************************************/
 
7
 
 
8
/***************************************************************************
 
9
**
 
10
**   This program is free software; you can redistribute it and/or modify
 
11
**   it under the terms of the GNU General Public License as published by
 
12
**   the Free Software Foundation; either version 2 of the License, or
 
13
**   (at your option) any later version.
 
14
**
 
15
****************************************************************************/
 
16
 
 
17
#ifndef FILESSETTINGS_H
 
18
#define FILESSETTINGS_H
 
19
 
 
20
#include <QString>
 
21
#include <QStringList>
 
22
 
 
23
#include <libkomparediff2/settingsbase.h>
 
24
 
 
25
#include "dialogpages_export.h"
 
26
 
 
27
class KConfig;
 
28
 
 
29
class DIALOGPAGES_EXPORT FilesSettings : public SettingsBase
 
30
{
 
31
    Q_OBJECT
 
32
public:
 
33
    explicit FilesSettings(QWidget* parent);
 
34
    ~FilesSettings() override;
 
35
 
 
36
public:
 
37
    // some virtual functions that will be overloaded from the base class
 
38
    void loadSettings(KConfig* config) override;
 
39
    void saveSettings(KConfig* config) override;
 
40
 
 
41
    void setGroup(const QString& groupName);
 
42
 
 
43
public:
 
44
    QString     m_configGroupName;
 
45
 
 
46
    QStringList m_recentSources;
 
47
    QString     m_lastChosenSourceURL;
 
48
    QStringList m_recentDestinations;
 
49
    QString     m_lastChosenDestinationURL;
 
50
    QString     m_encoding;
 
51
};
 
52
 
 
53
#endif // FILESSETTINGS_H
 
54