summaryrefslogtreecommitdiffstats
path: root/knetload/scaledialog.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:12:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:12:21 +0000
commitdba97e292b3ec919d02a771331cc137708bdef86 (patch)
tree2c0eef8b65f579854b7f44e64c40d6286da7685e /knetload/scaledialog.h
downloadknetload-dba97e292b3ec919d02a771331cc137708bdef86.tar.gz
knetload-dba97e292b3ec919d02a771331cc137708bdef86.zip
Added KDE3 version of knetload
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knetload@1091561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knetload/scaledialog.h')
-rw-r--r--knetload/scaledialog.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/knetload/scaledialog.h b/knetload/scaledialog.h
new file mode 100644
index 0000000..89f62b1
--- /dev/null
+++ b/knetload/scaledialog.h
@@ -0,0 +1,49 @@
+
+/***************************************************************************
+ * *
+ * KNetLoad is copyright (c) 1999-2000, Markus Gustavsson *
+ * (c) 2002, Ben Burton *
+ * *
+ * 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 __SCALEDIALOG_H
+#define __SCALEDIALOG_H
+
+#include <kdialogbase.h>
+
+/**
+ * A dialog used to select the scale for a network load diagram.
+ */
+class ScaleDialog : public KDialogBase {
+ Q_OBJECT
+
+ public:
+ /**
+ * Constructor.
+ */
+ ScaleDialog(int defaultScale, const QString & title, QWidget* parent);
+
+ /**
+ * Returns the scale currently selected in the dialog.
+ * This is valid after the dialog has closed.
+ */
+ int getScale() const;
+
+ private slots:
+ /**
+ * Updates the scale variable to reflect the latest changes in
+ * the scale entry box.
+ */
+ virtual void updateScale(const QString&);
+
+ private:
+ int scale;
+ /**< The scale currently selected in the scale entry box. */
+};
+
+#endif