e6fd3d0318
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27528 a1c6a512-1295-4272-9138-f99709370657
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it>
|
|
* See COPYING file that comes with this distribution
|
|
*/
|
|
|
|
#ifndef FINDFORM_H
|
|
#define FINDFORM_H
|
|
|
|
#include <QWidget>
|
|
#include <QTextCursor>
|
|
|
|
#include "findreplace_global.h"
|
|
|
|
#include "findreplaceform.h"
|
|
|
|
/**
|
|
* The form for the find dialog (it is basically the same
|
|
* as FindReplaceForm without the replace related widgets).
|
|
*/
|
|
class FINDREPLACESHARED_EXPORT FindForm : public FindReplaceForm {
|
|
Q_OBJECT
|
|
public:
|
|
FindForm(QWidget *parent = 0);
|
|
~FindForm();
|
|
|
|
/**
|
|
* 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");
|
|
|
|
protected:
|
|
void changeEvent(QEvent *e);
|
|
|
|
};
|
|
|
|
#endif // FINDFORM_H
|