summaryrefslogtreecommitdiffstats
path: root/part/kxeprocinstrdialog.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/kxeprocinstrdialog.h
downloadkxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.tar.gz
kxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.zip
Initial import of kxmleditor 1.1.4
Diffstat (limited to 'part/kxeprocinstrdialog.h')
-rw-r--r--part/kxeprocinstrdialog.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/part/kxeprocinstrdialog.h b/part/kxeprocinstrdialog.h
new file mode 100644
index 0000000..5b4de2e
--- /dev/null
+++ b/part/kxeprocinstrdialog.h
@@ -0,0 +1,87 @@
+/***************************************************************************
+ kxeprocinstrdialog.h - description
+ --------------------
+ begin : Mit Apr 24 2002
+ copyright : (C) 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 KXEPROCINSTRDIALOG_H
+#define KXEPROCINSTRDIALOG_H
+
+#include "kxeprocinstrdialogbase.h"
+
+class KXEProcInstrDialog : public KXEProcInstrDialogBase
+{
+ Q_OBJECT
+
+ public:
+ KXEProcInstrDialog( QWidget * pParent = 0, const char * pszName = 0, bool fModal = true, WFlags fl = 0 );
+
+ const bool atTop() const { return m_bAtTop; }
+ const QString target() const { return m_strTarget; }
+ const QString data() const { return m_strData; }
+
+ void setTarget(const QString strTarget) { m_strTarget = strTarget; }
+ void setData(const QString strData) { m_strData = strData; }
+
+ public:
+
+ /**
+ * To be used for inserting a proc.instruction as child
+ * of the given parent node.
+ *
+ * @return see @ref QDialog::exec
+ */
+ int exec( bool, bool );
+
+ /**
+ * Clears the dialogs widgets.
+ */
+ void clearDialog();
+
+ // check target
+ static QString checkTarget(const QString);
+
+ // check data
+ static QString checkData(const QString);
+
+ protected:
+ /**
+ * Don't use this function directly, it's for internal use only.
+ * Use one of the other @ref KXEProcInstrDialog::exec functions instead.
+ */
+ int exec();
+
+ protected slots:
+ /**
+ * Called, when the data edit box is changed.
+ * Disables the OK button, if the editbox is empty.
+ */
+ void slotDataChanged();
+
+ /**
+ * Called, when the target edit box is changed.
+ * Disables the OK button, if the editbox is empty.
+ */
+ void slotTargetChanged(const QString &);
+
+ /** Called when user press OK button */
+ void slotAccept();
+
+ protected:
+ QString m_strTarget;
+ QString m_strData;
+ bool m_bAtTop;
+};
+
+#endif