summaryrefslogtreecommitdiffstats
path: root/part/kxesearchdialog.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-26 13:50:43 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-26 13:50:43 +0100
commitd62c8c002c51fb7c36487839eeeb4ac89f044dee (patch)
treebb4d1f5c631ab1f22a3018ba39e6a806035f80fd /part/kxesearchdialog.h
downloadkxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.tar.gz
kxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.zip
Initial import of kxmleditor 1.1.4
Diffstat (limited to 'part/kxesearchdialog.h')
-rw-r--r--part/kxesearchdialog.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/part/kxesearchdialog.h b/part/kxesearchdialog.h
new file mode 100644
index 0000000..abe7f3d
--- /dev/null
+++ b/part/kxesearchdialog.h
@@ -0,0 +1,57 @@
+/***************************************************************************
+ kxesearchdialog.h - description
+ -----------------
+ begin : Tue Jul 10 2001
+ copyright : (C) 2001, 2002, 2003 by The KXMLEditor Team
+ email : lvanek@users.sourceforge.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KXESEARCHDIALOG_H
+#define KXESEARCHDIALOG_H
+
+#include "kxesearchdialogbase.h"
+
+#include <qlineedit.h>
+#include <qcheckbox.h>
+
+/**
+ * Dialog for input information from user
+ * about searching in XML document
+ */
+// TODO add possibility to search backwards
+class KXESearchDialog : public KXESearchDialogBase
+{
+ Q_OBJECT
+
+ public:
+ KXESearchDialog( QWidget * pParent, const char * pszName = 0, bool bModal = true );
+
+ QString getSearchString() const { return m_pEditSearchedString->text(); }
+ bool getMatchCase() const { return m_pCheckBoxMatchCase->isChecked(); }
+ bool getInElementNames() const { return m_pCheckBoxElementNames->isChecked(); }
+ bool getInAttributeNames() const { return m_pCheckBoxAttributeNames->isChecked(); }
+ bool getInAttributeValues() const { return m_pCheckBoxAttributeValues->isChecked(); }
+ bool getInContents() const { return m_pCheckBoxContents->isChecked(); }
+
+ protected:
+ /** Enables/Disables the "Find"-button. */
+ void toggleAcceptButton();
+
+ protected slots:
+ /** Called when text in edit line is changed */
+ virtual void slotTextChanged(const QString & );
+
+ /** Called on a change of the "find in" checkbuttons. */
+ virtual void slotFindInChanged();
+};
+
+#endif