KVIrc 5.2.6
Developer APIs
KviKvsAction.h
Go to the documentation of this file.
1#ifndef _KVI_KVSACTION_H_
2#define _KVI_KVSACTION_H_
3//=============================================================================
4//
5// File : KviKvsAction.h
6// Creation date : Sat 04 Dec 2004 04:22:12 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2004-2010 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 option) 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
32
33#include "kvi_settings.h"
34#include "KviAction.h"
35#include "KviIconManager.h"
36
37class KviKvsScript;
38
44{
45 Q_OBJECT
46protected:
47 QString m_szScript;
48
49public:
65 QObject * pParent,
66 const QString & szName,
67 const QString & szScriptCode,
68 const QString & szVisibleName,
69 const QString & szDescription,
70 KviActionCategory * pCategory = nullptr,
71 const QString & szBigIconId = QString(),
72 const QString & szSmallIconId = QString(),
73 unsigned int uFlags = 0,
74 const QString & szKeySequence = QString());
75
91 QObject * pParent,
92 const QString & szName,
93 const QString & szScriptCode,
94 const QString & szVisibleName,
95 const QString & szDescription,
96 KviActionCategory * pCategory = nullptr,
97 const QString & szBigIconId = QString(),
99 unsigned int uFlags = 0,
100 const QString & szKeySequence = QString());
101
105 virtual ~KviKvsAction();
106
107public:
112 const QString & scriptCode();
113
118 virtual void activate();
119};
120
121#endif // _KVI_KVSACTION_H_
Actions handling.
Icon manager.
Holds the categories of an action.
Definition KviAction.h:59
KviAction(QObject *pParent, QString szName, QString szVisibleName, QString szDescription, KviActionCategory *pCategory=nullptr, QString szBigIconId=QString(), QString szSmallIconId=QString(), unsigned int uFlags=0, QString szKeySequence=QString())
Constructs the action object.
Definition KviAction.cpp:38
virtual void activate()
Activates the action.
Definition KviAction.cpp:553
SmallIcon
Contains all KVIrc's small icons.
Definition KviIconManager.h:170
@ None
Definition KviIconManager.h:171
KviKvsAction(QObject *pParent, const QString &szName, const QString &szScriptCode, const QString &szVisibleName, const QString &szDescription, KviActionCategory *pCategory=nullptr, const QString &szBigIconId=QString(), const QString &szSmallIconId=QString(), unsigned int uFlags=0, const QString &szKeySequence=QString())
Constructs the action object.
Definition KviKvsAction.cpp:29
const QString & scriptCode()
Returns the code of the script contained in the action.
Definition KviKvsAction.cpp:82
QString m_szScript
Definition KviKvsAction.h:47
virtual ~KviKvsAction()
Destroys the action object.
The KVIrc Script class.
Definition KviKvsScript.h:60
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127