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

« back to all changes in this revision

Viewing changes to src/kvirc/kernel/kvi_internalcmd.cpp

  • 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
 
//=============================================================================
2
 
//
3
 
//   File : kvi_internalcmd.cpp
4
 
//   Creation date : Sun Aug 13 2000 19:22:45 by Szymon Stefanek
5
 
//
6
 
//   This file is part of the KVirc irc client distribution
7
 
//   Copyright (C) 2000-2008 Szymon Stefanek (pragma at kvirc dot net)
8
 
//
9
 
//   This program is FREE software. You can redistribute it and/or
10
 
//   modify it under the terms of the GNU General Public License
11
 
//   as published by the Free Software Foundation; either version 2
12
 
//   of the License, or (at your opinion) any later version.
13
 
//
14
 
//   This program is distributed in the HOPE that it will be USEFUL,
15
 
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
 
//   See the GNU General Public License for more details.
18
 
//
19
 
//   You should have received a copy of the GNU General Public License
20
 
//   along with this program. If not, write to the Free Software Foundation,
21
 
//   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
 
//
23
 
//=============================================================================
24
 
 
25
 
#define _KVI_INTERNALCMD_CPP_
26
 
 
27
 
#include "kvi_internalcmd.h"
28
 
 
29
 
// FIXME: #warning "LOCALIZE THIS!"
30
 
 
31
 
static const char * internalCommandTable[KVI_NUM_INTERNAL_COMMANDS]=
32
 
{
33
 
        "echo INTERNAL COMMAND ERROR: INDEX OUT OF RANGE",
34
 
        "help.open -n -m",
35
 
        "help.open -n",
36
 
        "about.kvirc",
37
 
        "if($option(boolShowGeneralOptionsDialogAsToplevel))options.dialog -t; else options.dialog",
38
 
        "codetester.open",
39
 
        "socketspy.open",
40
 
        "links.open",
41
 
        "if($option(boolShowRegisteredUsersDialogAsToplevel))reguser.edit -t; else reguser.edit",
42
 
        "trayicon.show",
43
 
        "trayicon.hide",
44
 
        "toolbareditor.open",
45
 
        "aliaseditor.open",
46
 
        "term.open -m",
47
 
        "eventeditor.open",
48
 
        "dirbrowser.open -m",
49
 
        "dirbrowser.open",
50
 
        "ident.start",
51
 
        "ident.stop",
52
 
        "tip.open" ,
53
 
        "openurl http://www.kvirc.net",
54
 
        "list.open",
55
 
        "if($option(boolShowChannelsJoinDialogAsToplevel))channelsjoin.open -t;else channelsjoin.open",
56
 
        "if($option(boolShowServersConnectDialogAsToplevel))options.edit -t KviServerOptionsWidget;else options.edit KviServerOptionsWidget",
57
 
        "url.list",
58
 
        "openurl http://www.kvirc.net/?id=themes",
59
 
        "openurl http://www.kvirc.net/?id=mailinglist",
60
 
        "openurl https://svn.kvirc.de/kvirc/wiki#Bugreportticket",
61
 
        "raweditor.open",
62
 
        "popupeditor.open",
63
 
        "dialog.file(open,\"Select a Script File\"){ if(!$str.isEmpty($0))parse $0; }",
64
 
        "actioneditor.open",
65
 
        "quit",
66
 
        "openurl http://www.kvirc.ru",
67
 
        "openurl irc://freenode/kvirc",
68
 
        "openurl irc://ircnet/kvirc",
69
 
        "openurl irc://azzurra/kvirc.net",
70
 
        "openurl http://kvirc-fr.info",
71
 
        "openurl irc://freenode/kvirc-fr",
72
 
        "openurl irc://irc.europnet.org/kvirc"
73
 
};
74
 
 
75
 
 
76
 
const char * kvi_getInternalCommandBuffer(int idx)
77
 
{
78
 
        if(idx > 0 && idx < KVI_NUM_INTERNAL_COMMANDS)
79
 
        {
80
 
                return internalCommandTable[idx];
81
 
        }
82
 
        return internalCommandTable[0];
83
 
}