Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (57 sloc) 1.588 kb
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
1 #ifndef MYTHUI_BUTTON_H_
2 #define MYTHUI_BUTTON_H_
3
1e89f318 »
2008-07-01 No more qt3support in libmythui.
4 #include <QString>
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
5
6 #include "mythuitype.h"
6ccac44d »
2005-06-07 Renaming mythuistateimage.cpp/.h to mythuistatetype.cpp/.h
7 #include "mythuistatetype.h"
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
8 #include "mythuitext.h"
9
b14a6cde »
2008-03-25 merges qt4 branches back to trunk
10 #include "mythgesture.h"
11
73a0d90a »
2008-09-24 Check pointers following dynamic cast in MythUIButton. Patch by Erik …
12 /** \class MythUIButton
13 *
7c8eca93 »
2010-09-23 Doxygen documentation updates for MythUI. Nothing substantial, mostly…
14 * \brief A single button widget
a2264ca1 »
2008-09-28 Doxygen comment fixes and basic additions for mythui. The doxygen doc…
15 *
16 * Has multiple states with backgrounds and fonts, text and optional
17 * checkbox (dual/tri state)
73a0d90a »
2008-09-24 Check pointers following dynamic cast in MythUIButton. Patch by Erik …
18 *
7c8eca93 »
2010-09-23 Doxygen documentation updates for MythUI. Nothing substantial, mostly…
19 * \ingroup MythUI_Widgets
73a0d90a »
2008-09-24 Check pointers following dynamic cast in MythUIButton. Patch by Erik …
20 */
26ea6674 »
2011-02-15 Change MPUBLIC to be unique per library
21 class MUI_PUBLIC MythUIButton : public MythUIType
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
22 {
1db5f1d4 »
2007-12-13 Add keypress handling and a button pressed signal to mythuibutton. Fix
23 Q_OBJECT
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
24 public:
0b5df9aa »
2008-10-21 Rewrite MythUIButton, drops the arrow and checkbox features which wer…
25 MythUIButton(MythUIType *parent, const QString &name);
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
26 ~MythUIButton();
27
d1ca67f8 »
2008-09-20 Add a reset method to each widget, this was already present in some c…
28 virtual void Reset(void);
29
094fd031 »
2009-10-15 Reorganise the mouse gesture support so we handle events more like ke…
30 virtual bool gestureEvent(MythGestureEvent *event);
39268733 »
2008-05-28 Add a checkbox widget which inherits from mythuibutton. Refs #12
31 virtual bool keyPressEvent(QKeyEvent *);
b14a6cde »
2008-03-25 merges qt4 branches back to trunk
32
0b5df9aa »
2008-10-21 Rewrite MythUIButton, drops the arrow and checkbox features which wer…
33 void SetText(const QString &msg);
c21eff8f »
2009-01-02 Add GetDefaultText() to MythUIButton, mirroring MythUIText.
34 QString GetText(void) const;
35 QString GetDefaultText(void) const;
e89bb838 »
2008-10-22 Adds a pushed state to MythUIButton, the button remains in the pushed…
36
37 void Push(bool lock=false);
38
39 void SetLockable(bool lockable) { m_Lockable = lockable; };
9c7ae48c »
2009-01-20 In MythUIButton if the button is lockable allow the locked state to b…
40 void SetLocked(bool locked);
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
41
0b5df9aa »
2008-10-21 Rewrite MythUIButton, drops the arrow and checkbox features which wer…
42 protected slots:
43 void Select();
44 void Deselect();
45 void Enable();
46 void Disable();
e89bb838 »
2008-10-22 Adds a pushed state to MythUIButton, the button remains in the pushed…
47 void UnPush();
a7d5957f »
2008-01-24 Add some slots to switch button states and connect them to the taking…
48
1db5f1d4 »
2007-12-13 Add keypress handling and a button pressed signal to mythuibutton. Fix
49 signals:
2cb1bca1 »
2008-10-04 Rename the buttonPressed() signal in MythUIButton to Clicked(), match…
50 void Clicked();
1db5f1d4 »
2007-12-13 Add keypress handling and a button pressed signal to mythuibutton. Fix
51
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
52 protected:
b48306a6 »
2010-02-11 Fixes MythUI XML parsing error reports.
53 virtual bool ParseElement(
54 const QString &filename, QDomElement &element, bool showWarnings);
47cf2f22 »
2007-12-12 Complete the mythuibutton uitype so that individual buttons can be
55 virtual void CopyFrom(MythUIType *base);
56 virtual void CreateCopy(MythUIType *parent);
0b5df9aa »
2008-10-21 Rewrite MythUIButton, drops the arrow and checkbox features which wer…
57 virtual void Finalize(void);
47cf2f22 »
2007-12-12 Complete the mythuibutton uitype so that individual buttons can be
58
0b5df9aa »
2008-10-21 Rewrite MythUIButton, drops the arrow and checkbox features which wer…
59 void SetInitialStates(void);
e89bb838 »
2008-10-22 Adds a pushed state to MythUIButton, the button remains in the pushed…
60 void SetState(QString state);
61
62 QString m_Message;
013e3daf »
2009-04-14 Fix a bug in mythuibutton which caused a segfault if the button text …
63 QString m_ValueText;
a78a6818 »
2008-09-28 Move style related functions to the protected scope in mythuibutton. …
64
0b5df9aa »
2008-10-21 Rewrite MythUIButton, drops the arrow and checkbox features which wer…
65 MythUIStateType *m_BackgroundState;
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
66 MythUIText *m_Text;
67
0b5df9aa »
2008-10-21 Rewrite MythUIButton, drops the arrow and checkbox features which wer…
68 QString m_state;
e89bb838 »
2008-10-22 Adds a pushed state to MythUIButton, the button remains in the pushed…
69
70 bool m_Pushed;
71 bool m_Lockable;
aff0751b »
2008-10-29 No functional changes.
72 class QTimer *m_clickTimer;
47399c8b »
2005-06-07 - Merge the animated image class into the normal one. Should make for…
73 };
74
75 #endif
Something went wrong with that request. Please try again.