~ubuntu-branches/ubuntu/trusty/kvirc/trusty

« back to all changes in this revision

Viewing changes to src/kvirc/kvs/kvi_kvs_treenode_specialcommanddefpopup.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _KVI_KVS_TREENODE_SPECIALCOMMANDDEFPOPUP_H_
2
 
#define _KVI_KVS_TREENODE_SPECIALCOMMANDDEFPOPUP_H_
3
 
//=============================================================================
4
 
//
5
 
//   File : kvi_kvs_treenode_specialcommanddefpopup.h
6
 
//   Creation date : Fri 02 Jan 2004 13:54:00 by Szymon Stefanek
7
 
//
8
 
//   This file is part of the KVIrc IRC client distribution
9
 
//   Copyright (C) 2004-2008 Szymon Stefanek <pragma at kvirc dot net>
10
 
//
11
 
//   This program is FREE software. You can redistribute it and/or
12
 
//   modify it under the terms of the GNU General Public License
13
 
//   as published by the Free Software Foundation; either version 2
14
 
//   of the License, or (at your opinion) any later version.
15
 
//
16
 
//   This program is distributed in the HOPE that it will be USEFUL,
17
 
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
 
//   See the GNU General Public License for more details.
20
 
//
21
 
//   You should have received a copy of the GNU General Public License
22
 
//   along with this program. If not, write to the Free Software Foundation,
23
 
//   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
 
//
25
 
//=============================================================================
26
 
 
27
 
#include "kvi_settings.h"
28
 
#include "kvi_qstring.h"
29
 
#include "kvi_kvs_treenode.h"
30
 
#include "kvi_kvs_treenode_specialcommand.h"
31
 
 
32
 
class KviKvsTreeNodeExpression;
33
 
class KviKvsTreeNodeInstruction;
34
 
class KviKvsRunTimeContext;
35
 
class KviKvsVariant;
36
 
class KviKvsPopupMenu;
37
 
 
38
 
 
39
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabel : public KviKvsTreeNode
40
 
{
41
 
public:
42
 
        QString m_szItemName;
43
 
public:
44
 
        KviKvsTreeNodeSpecialCommandDefpopupLabel(const QChar * pLocation,const QString &szItemName)
45
 
                : KviKvsTreeNode(pLocation), m_szItemName(szItemName) {};
46
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabel(){};
47
 
public:
48
 
        void setItemName(const QString &szItemName){ m_szItemName = szItemName; };
49
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p) = 0;
50
 
};
51
 
 
52
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupConditionalLabel : public KviKvsTreeNodeSpecialCommandDefpopupLabel
53
 
{
54
 
protected:
55
 
        QString m_szCondition; // may be null!
56
 
public:
57
 
        KviKvsTreeNodeSpecialCommandDefpopupConditionalLabel(const QChar * pLocation,const QString &szCondition,const QString &szItemName)
58
 
                : KviKvsTreeNodeSpecialCommandDefpopupLabel(pLocation,szItemName), m_szCondition(szCondition) {};
59
 
        ~KviKvsTreeNodeSpecialCommandDefpopupConditionalLabel(){};
60
 
public:
61
 
        void setCondition(const QString &szCondition){ m_szCondition = szCondition; };
62
 
};
63
 
 
64
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabelSeparator : public KviKvsTreeNodeSpecialCommandDefpopupConditionalLabel
65
 
{
66
 
public:
67
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelSeparator(const QChar * pLocation,const QString &szCondition,const QString &szItemName)
68
 
                : KviKvsTreeNodeSpecialCommandDefpopupConditionalLabel(pLocation,szCondition,szItemName){};
69
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabelSeparator(){};
70
 
public:
71
 
        virtual void contextDescription(QString &szBuffer);
72
 
        virtual void dump(const char * prefix);
73
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
74
 
};
75
 
 
76
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon : public KviKvsTreeNodeSpecialCommandDefpopupConditionalLabel
77
 
{
78
 
protected:
79
 
        QString m_szText;
80
 
        QString m_szIcon;
81
 
public:
82
 
        KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon(const QChar * pLocation,const QString &szCondition,const QString &szText,const QString &szIcon,const QString &szItemName)
83
 
                : KviKvsTreeNodeSpecialCommandDefpopupConditionalLabel(pLocation,szCondition,szItemName), m_szText(szText), m_szIcon(szIcon){};
84
 
        ~KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon(){};
85
 
public:
86
 
        void setText(const QString &szText){ m_szText = szText; };
87
 
        void setIcon(const QString &szIcon){ m_szIcon = szIcon; };
88
 
};
89
 
 
90
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabelExtpopup : public KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon
91
 
{
92
 
protected:
93
 
        QString m_szName;
94
 
public:
95
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelExtpopup(const QChar * pLocation,const QString &szCondition,const QString &szText,const QString &szIcon,const QString &szName,const QString &szItemName)
96
 
                : KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon(pLocation,szCondition,szText,szIcon,szItemName), m_szName(szName){};
97
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabelExtpopup(){};
98
 
public:
99
 
        virtual void contextDescription(QString &szBuffer);
100
 
        virtual void dump(const char * prefix);
101
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
102
 
};
103
 
 
104
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabelItem : public KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon
105
 
{
106
 
protected:
107
 
        QString m_szInstruction;
108
 
public:
109
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelItem(const QChar * pLocation,const QString &szCondition,const QString &szText,const QString &szIcon,const QString &szInstruction,const QString &szItemName)
110
 
                : KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon(pLocation,szCondition,szText,szIcon,szItemName), m_szInstruction(szInstruction) {};
111
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabelItem(){};
112
 
public:
113
 
        virtual void contextDescription(QString &szBuffer);
114
 
        virtual void dump(const char * prefix);
115
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
116
 
};
117
 
 
118
 
 
119
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabelLabel : public KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon
120
 
{
121
 
public:
122
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelLabel(const QChar * pLocation,const QString &szCondition,const QString &szText,const QString &szIcon,const QString &szItemName)
123
 
                : KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon(pLocation,szCondition,szText,szIcon,szItemName){};
124
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabelLabel(){};
125
 
public:
126
 
        virtual void contextDescription(QString &szBuffer);
127
 
        virtual void dump(const char * prefix);
128
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
129
 
};
130
 
 
131
 
 
132
 
 
133
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabelPrologue : public KviKvsTreeNodeSpecialCommandDefpopupLabel
134
 
{
135
 
protected:
136
 
        QString m_szInstruction;
137
 
public:
138
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelPrologue(const QChar * pLocation,const QString &szInstruction,const QString &szItemName)
139
 
                : KviKvsTreeNodeSpecialCommandDefpopupLabel(pLocation,szItemName), m_szInstruction(szInstruction){};
140
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabelPrologue(){};
141
 
public:
142
 
        virtual void contextDescription(QString &szBuffer);
143
 
        virtual void dump(const char * prefix);
144
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
145
 
};
146
 
 
147
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabelEpilogue : public KviKvsTreeNodeSpecialCommandDefpopupLabel
148
 
{
149
 
protected:
150
 
        QString m_szInstruction;
151
 
public:
152
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelEpilogue(const QChar * pLocation,const QString &szInstruction,const QString &szItemName)
153
 
                : KviKvsTreeNodeSpecialCommandDefpopupLabel(pLocation,szItemName), m_szInstruction(szInstruction){};
154
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabelEpilogue(){};
155
 
public:
156
 
        virtual void contextDescription(QString &szBuffer);
157
 
        virtual void dump(const char * prefix);
158
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
159
 
};
160
 
 
161
 
 
162
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopupLabelPopup : public KviKvsTreeNodeSpecialCommandDefpopupConditionalLabelWithTextAndIcon
163
 
{
164
 
public:
165
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelPopup(const QChar * pLocation);
166
 
        ~KviKvsTreeNodeSpecialCommandDefpopupLabelPopup();
167
 
protected:
168
 
        KviPointerList<KviKvsTreeNodeSpecialCommandDefpopupLabel> * m_pLabels;
169
 
public:
170
 
        bool isEmpty(){ return m_pLabels->isEmpty(); };
171
 
        void addLabel(KviKvsTreeNodeSpecialCommandDefpopupLabel * pLabel);
172
 
        virtual void contextDescription(QString &szBuffer);
173
 
        virtual void dump(const char * prefix);
174
 
        virtual bool execute(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
175
 
        bool fill(KviKvsRunTimeContext * c,KviKvsPopupMenu * p);
176
 
};
177
 
 
178
 
 
179
 
class KVIRC_API KviKvsTreeNodeSpecialCommandDefpopup : public KviKvsTreeNodeSpecialCommand
180
 
{
181
 
public:
182
 
        KviKvsTreeNodeSpecialCommandDefpopup(const QChar * pLocation,KviKvsTreeNodeData * pPopupName,KviKvsTreeNodeSpecialCommandDefpopupLabelPopup * pMainPopup);
183
 
        ~KviKvsTreeNodeSpecialCommandDefpopup();
184
 
private:
185
 
        KviKvsTreeNodeData * m_pPopupName; // can't be zero
186
 
        KviKvsTreeNodeSpecialCommandDefpopupLabelPopup * m_pMainPopup;
187
 
public:
188
 
        virtual void contextDescription(QString &szBuffer);
189
 
        virtual void dump(const char * prefix);
190
 
        virtual bool execute(KviKvsRunTimeContext * c);
191
 
};
192
 
 
193
 
#endif //!_KVI_KVS_TREENODE_SPECIALCOMMANDDEFPOPUP_H_