summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/qtfindreplacedialog/finddialog.h
blob: 2dfa4c7b59fdc2e01eda44b1dd18135f65bb76c8 (plain)
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
/*
 * Copyright (C) 2009  Lorenzo Bettini <http://www.lorenzobettini.it>
 * See COPYING file that comes with this distribution
 */

#ifndef FINDDIALOG_H
#define FINDDIALOG_H

#include <QDialog>

#include "findreplace_global.h"

#include "findreplacedialog.h"

/**
  * A find dialog (it is basically the same
  * as FindReplaceDialog without the replace related widgets).
  */
class FINDREPLACESHARED_EXPORT FindDialog : public FindReplaceDialog {
    Q_OBJECT
public:
    FindDialog(QWidget *parent = 0);
    ~FindDialog();

    /**
      * Writes the state of the form to the passed settings.
      * @param settings
      * @param prefix the prefix to insert in the settings
      */
    virtual void writeSettings(QSettings &settings, const QString &prefix = "FindDialog");

    /**
      * Reads the state of the form from the passed settings.
      * @param settings
      * @param prefix the prefix to look for in the settings
      */
    virtual void readSettings(QSettings &settings, const QString &prefix = "FindDialog");
};

#endif // FINDDIALOG_H