~neon/kompare/master

« back to all changes in this revision

Viewing changes to kompareurldialog.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
 
                                kcompareurldialog.h
3
 
                                -------------------
4
 
        begin                   : Sun Mar 4 2001
5
 
        Copyright 2001-2004 Otto Bruggeman <otto.bruggeman@home.nl>
6
 
        Copyright 2001-2003 John Firebaugh <jfirebaugh@kde.org>
7
 
****************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
**
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.
15
 
**
16
 
***************************************************************************/
17
 
 
18
 
#ifndef KOMPAREURLDIALOG_H
19
 
#define KOMPAREURLDIALOG_H
20
 
 
21
 
#include <KPageDialog>
22
 
 
23
 
class FilesPage;
24
 
class FilesSettings;
25
 
class DiffPage;
26
 
class DiffSettings;
27
 
class ViewPage;
28
 
class ViewSettings;
29
 
 
30
 
/**
31
 
 * Definition of class KompareURLDialog.
32
 
 * @author Otto Bruggeman
33
 
 * @author John Firebaugh
34
 
 */
35
 
class KompareURLDialog : public KPageDialog
36
 
{
37
 
    Q_OBJECT
38
 
 
39
 
public:
40
 
    explicit KompareURLDialog(QWidget* parent = nullptr);
41
 
    ~KompareURLDialog() override;
42
 
 
43
 
    QUrl getFirstURL() const;
44
 
    QUrl getSecondURL() const;
45
 
    QString encoding() const;
46
 
 
47
 
    void setFirstGroupBoxTitle(const QString& title);
48
 
    void setSecondGroupBoxTitle(const QString& title);
49
 
 
50
 
    void setGroup(const QString& groupName);
51
 
 
52
 
    void setFirstURLRequesterMode(unsigned int mode);
53
 
    void setSecondURLRequesterMode(unsigned int mode);
54
 
 
55
 
public Q_SLOTS:
56
 
    void accept() override;
57
 
    void reject() override;
58
 
 
59
 
private Q_SLOTS:
60
 
    void slotEnableOk();
61
 
protected:
62
 
    void showEvent(QShowEvent* event) override;
63
 
private:
64
 
    FilesPage*     m_filesPage;
65
 
    FilesSettings* m_filesSettings;
66
 
    DiffPage*      m_diffPage;
67
 
    DiffSettings*  m_diffSettings;
68
 
    ViewPage*      m_viewPage;
69
 
    ViewSettings*  m_viewSettings;
70
 
};
71
 
 
72
 
#endif