summaryrefslogtreecommitdiff
path: root/client/widgets
diff options
context:
space:
mode:
authordeva <deva>2008-07-01 06:22:14 +0000
committerdeva <deva>2008-07-01 06:22:14 +0000
commit5c14d0367180b756273770a387733472121dec0f (patch)
tree240f42e977ac4333cf3c4f07632d7f7b8edc76ed /client/widgets
parent1ea592db93e2b6b23d96864690965f22c4d96a16 (diff)
Renamed PushButton to Button, to better match the specs.
Diffstat (limited to 'client/widgets')
-rw-r--r--client/widgets/button.cc (renamed from client/widgets/pushbutton.cc)14
-rw-r--r--client/widgets/button.h (renamed from client/widgets/pushbutton.h)12
2 files changed, 13 insertions, 13 deletions
diff --git a/client/widgets/pushbutton.cc b/client/widgets/button.cc
index 21d5c1b..f40b0ec 100644
--- a/client/widgets/pushbutton.cc
+++ b/client/widgets/button.cc
@@ -1,6 +1,6 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/***************************************************************************
- * pushbutton.cc
+ * button.cc
*
* Fri Jul 13 12:38:45 CEST 2007
* Copyright 2007 Bent Bisballe Nyeng and Lars Bisballe Jensen
@@ -24,10 +24,10 @@
* along with Pracro; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#include "pushbutton.h"
+#include "button.h"
#include <stdio.h>
-PushButton::PushButton(QDomNode &node, MacroWindow *macrowindow)
+Button::Button(QDomNode &node, MacroWindow *macrowindow)
: QPushButton(), Widget(node, macrowindow)
{
QDomElement elem = node.toElement();
@@ -67,25 +67,25 @@ PushButton::PushButton(QDomNode &node, MacroWindow *macrowindow)
}
}
-void PushButton::commit()
+void Button::commit()
{
emit act_commit();
printf("Emit: commit\n");
}
-void PushButton::reset()
+void Button::reset()
{
emit act_reset();
printf("Emit: reset\n");
}
-void PushButton::cancel()
+void Button::cancel()
{
emit act_cancel();
printf("Emit: cancel\n");
}
-void PushButton::cont()
+void Button::cont()
{
emit act_continue(field);
printf("Emit: continue\n");
diff --git a/client/widgets/pushbutton.h b/client/widgets/button.h
index acefdf1..effcd79 100644
--- a/client/widgets/pushbutton.h
+++ b/client/widgets/button.h
@@ -1,6 +1,6 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/***************************************************************************
- * pushbutton.h
+ * button.h
*
* Fri Jul 13 12:38:45 CEST 2007
* Copyright 2007 Bent Bisballe Nyeng and Lars Bisballe Jensen
@@ -24,19 +24,19 @@
* along with Pracro; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __PRACRO_PUSHBUTTON_H__
-#define __PRACRO_PUSHBUTTON_H__
+#ifndef __PRACRO_BUTTON_H__
+#define __PRACRO_BUTTON_H__
#include "widget.h"
#include <QPushButton>
#include <QWidget>
#include <QDomNode>
-class PushButton : public QPushButton, public Widget
+class Button : public QPushButton, public Widget
{
Q_OBJECT
public:
- PushButton(QDomNode &node, MacroWindow *macrowindow);
+ Button(QDomNode &node, MacroWindow *macrowindow);
QString field;
public slots:
@@ -54,4 +54,4 @@ signals:
private:
};
-#endif/*__PRACRO_PUSHBUTTON_H__*/
+#endif/*__PRACRO_BUTTON_H__*/