From c8ba5d212c9da7d11f08684c5d244cfaad4d0032 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 31 Aug 2010 09:10:41 +0000 Subject: applied typo fixes for the "file" and "config" modules (thank OmegaPhil) fixed fsf address in python/pythoncore modules fixed "space before comma" in documentation/coments/code regenerated translations git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4954 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/about/libkviabout.cpp | 2 +- src/modules/action/libkviaction.cpp | 2 +- src/modules/config/libkviconfig.cpp | 39 ++++++----- src/modules/dcc/broker.cpp | 2 +- src/modules/dcc/canvaswidget.h | 10 +-- src/modules/dcc/chat.h | 4 +- src/modules/dcc/descriptor.h | 2 +- src/modules/dcc/dialogs.cpp | 4 +- src/modules/dcc/dialogs.h | 4 +- src/modules/dcc/libkvidcc.cpp | 12 ++-- src/modules/dcc/marshal.cpp | 2 +- src/modules/dcc/requests.cpp | 4 +- src/modules/dcc/send.h | 2 +- src/modules/dcc/voice.cpp | 8 +-- src/modules/dcc/window.h | 2 +- src/modules/dialog/libkvidialog.cpp | 44 ++++++------ src/modules/file/libkvifile.cpp | 78 +++++++++++----------- .../filetransferwindow/filetransferwindow.cpp | 2 +- .../filetransferwindow/filetransferwindow.h | 2 +- src/modules/help/libkvihelp.cpp | 2 +- src/modules/iograph/libkviiograph.h | 2 +- src/modules/lamerizer/libkvilamerizer.cpp | 4 +- src/modules/links/linkswindow.cpp | 2 +- src/modules/logview/logviewmdiwindow.h | 2 +- src/modules/mediaplayer/libkvimediaplayer.cpp | 4 +- src/modules/mediaplayer/mp_interface.h | 2 +- src/modules/mediaplayer/mp_mp3.cpp | 2 +- src/modules/mediaplayer/mp_mprisinterface.cpp | 6 +- src/modules/mediaplayer/winamp.cpp | 2 +- src/modules/notifier/notifiersettings.h | 2 +- src/modules/objects/class_buttongroup.h | 2 +- src/modules/objects/class_ftp.cpp | 2 +- src/modules/objects/class_groupbox.cpp | 2 +- src/modules/objects/class_layout.cpp | 2 +- src/modules/objects/class_multilineedit.cpp | 18 ++--- src/modules/objects/class_socket.cpp | 18 ++--- src/modules/objects/class_sql.cpp | 2 +- src/modules/objects/class_widget.cpp | 14 ++-- src/modules/objects/class_workspace.cpp | 2 +- src/modules/options/instances.cpp | 2 +- src/modules/options/libkvioptions.cpp | 4 +- src/modules/popupeditor/popupeditor.h | 2 +- src/modules/python/libkvipython.cpp | 2 +- src/modules/pythoncore/kvircmodule.cpp | 2 +- src/modules/pythoncore/kvircmodule.h | 2 +- src/modules/pythoncore/libkvipythoncore.cpp | 2 +- src/modules/raweditor/raweditor.h | 2 +- src/modules/reguser/dialog.cpp | 2 +- src/modules/reguser/edituser.cpp | 2 +- src/modules/reguser/libkvireguser.cpp | 24 +++---- src/modules/rijndael/libkvirijndael.cpp | 4 +- src/modules/rijndael/libkvirijndael.h | 2 +- src/modules/rijndael/libkvirijndael_cryptopp.cpp | 4 +- src/modules/rijndael/rijndael.cpp | 2 +- src/modules/rijndael/rijndael.h | 10 +-- src/modules/rot13/libkvirot13.cpp | 4 +- src/modules/setup/libkvisetup.cpp | 2 +- src/modules/setup/setupwizard.cpp | 6 +- src/modules/sharedfile/libkvisharedfile.cpp | 2 +- .../sharedfileswindow/sharedfileswindow.cpp | 2 +- src/modules/sharedfileswindow/sharedfileswindow.h | 2 +- src/modules/snd/libkvisnd.cpp | 2 +- src/modules/socketspy/socketspywindow.cpp | 2 +- src/modules/str/libkvistr.cpp | 2 +- src/modules/system/libkvisystem.cpp | 2 +- src/modules/tip/libkvitip.cpp | 2 +- src/modules/torrent/tc_ktorrentdbusinterface.cpp | 6 +- src/modules/trayicon/libkvitrayicon.cpp | 46 ++++++------- src/modules/upnp/manager.cpp | 2 +- src/modules/upnp/service.cpp | 8 +-- src/modules/url/libkviurl.cpp | 2 +- src/modules/window/libkviwindow.cpp | 4 +- 72 files changed, 240 insertions(+), 241 deletions(-) (limited to 'src/modules') diff --git a/src/modules/about/libkviabout.cpp b/src/modules/about/libkviabout.cpp index 07d1dfa52..c8f9c4678 100644 --- a/src/modules/about/libkviabout.cpp +++ b/src/modules/about/libkviabout.cpp @@ -95,7 +95,7 @@ KVIRC_MODULE( "Szymon Stefanek " \ "Elvio Basello ", "Exports the /about.kvirc command\n", - about_module_init , + about_module_init, about_module_can_unload, 0, about_module_cleanup, diff --git a/src/modules/action/libkviaction.cpp b/src/modules/action/libkviaction.cpp index 06234d599..809a58218 100644 --- a/src/modules/action/libkviaction.cpp +++ b/src/modules/action/libkviaction.cpp @@ -502,7 +502,7 @@ static bool action_kvs_fnc_isEnabled(KviKvsModuleFunctionCall * c) static bool action_module_init(KviModule *m) { - // setlabel , $label , $position , move , $itempos , $itemexists , $itemtype + // setlabel, $label, $position, move, $itempos, $itemexists, $itemtype KVSM_REGISTER_SIMPLE_COMMAND(m,"list",action_kvs_cmd_list); KVSM_REGISTER_SIMPLE_COMMAND(m,"trigger",action_kvs_cmd_trigger); KVSM_REGISTER_SIMPLE_COMMAND(m,"enable",action_kvs_cmd_enable); diff --git a/src/modules/config/libkviconfig.cpp b/src/modules/config/libkviconfig.cpp index 3682961ee..87174f2ba 100644 --- a/src/modules/config/libkviconfig.cpp +++ b/src/modules/config/libkviconfig.cpp @@ -45,21 +45,21 @@ static int g_iNextConfigId = 0; $config.open([,]) @description: Opens a config file. - If the file already exists , its contents + If the file already exists, its contents are parsed and available for extracting by the [fnc]$config.read[/fnc]() function.[br] may be an absolute path or a relative path: if a relative path is used, KVIrc will complete it with a local kvirc directory suitable for writing script config files.[br] - If the config file doesn't exist , it is opened as empty config file.[br] + If the config file doesn't exist, it is opened as empty config file.[br] Flags can contain a combination of letters 'r' and 'w'.[br] - If only 'r' is specified , the config file is opened in "read-only" mode: no changes will be written to disk.[br] - If only 'w' is specified , the config file is opened in "write-only" mode: the contents of the file on disk + If only 'r' is specified, the config file is opened in "read-only" mode: no changes will be written to disk.[br] + If only 'w' is specified, the config file is opened in "write-only" mode: the contents of the file on disk are not readed.[br] If are not specified then 'rw' is assumed.[br] The function returns an identifier for the open config file. This identifier is a mandatory parameter in all the other config.* functions and commands.[br] The config section is set to the default section name: you can change it by using [cmd]config.setsection[/cmd].[br] - After you have finished using the file , don't forget to call [cmd]config.close[/cmd]! + After you have finished using the file, don't forget to call [cmd]config.close[/cmd]! KVIrc tries to not open a config file twice: if the file was already opened then the identifier of the open file is returned.[br] You can check if a config file is already open by using the @@ -513,7 +513,7 @@ static bool config_kvs_fnc_filelist(KviKvsModuleFunctionCall * c) Closes the config file identified by .[br] must be a a valid config file identifier returned by [fnc]$config.open[/fnc].[br] If the config file was opened as read-write (default), the changes will be stored - to disk. If the config was opened as read-only , changes will not be written.[br] + to disk. If the config was opened as read-only, changes will not be written.[br] If the does not match any open config file, a warning is printed unless the -q switch is used.[br] @seealso: @@ -561,7 +561,7 @@ static bool config_kvs_cmd_close(KviKvsModuleCommandCall * c) Flushes the config file identified by .[br] must be a a valid config file identifier returned by [fnc]$config.open[/fnc].[br] If the config file was opened as read-write (default), the changes will be stored - to disk. If the config was opened as read-only ,an error is printed.[br] + to disk. If the config was opened as read-only, an error is printed.[br] If the does not match any open config file, a warning is printed. @seealso: [module:config]Config module documentation[/module] @@ -691,7 +691,7 @@ static bool config_kvs_cmd_clearsection(KviKvsModuleCommandCall * c) must be a valid config file id returned by [fnc]$config.open[/fnc]().[br] and can be any strings.[br] The = pair is written in the current section of the config file.[br] - If already exists in the current section of the config , the corresponding value is replaced with .[br] + If already exists in the current section of the config, the corresponding value is replaced with .[br] If is an empty string, the is simply removed from the current section.[br] If a section remains empty (with no keys) at file write time, that section will be removed.[br] The changes are NOT written to disk: you must call [cmd]config.flush[/cmd] or (better) [cmd]config.close[/cmd] @@ -792,25 +792,24 @@ static bool config_kvs_cmd_setsection(KviKvsModuleCommandCall * c) =[br] ....[br] [br] - Keys and values are plain text strings. Eventual newlines in values are encoded using + Keys and values are plain text strings - newlines in values are encoded using a simple hexadecimal notation.[br] The config files can be also edited by using any text editor.[br] The config module works on config files loaded in memory. For this reason, - you must first open a config file by the means of [fnc]$config.open[/fnc]().[br] - Once you open the file , if it exists on disk , its contents are loaded into memory - and you can access the data stored in it. If the file wasn't existing, and empty - memory config file is created.[br] + you must first open a config file by [fnc]$config.open[/fnc]() - if the file exists + on disk, its contents are loaded and you can access the data stored in it, otherwise + an empty config file is created in memory.[br] The config file is opened in read-write mode by default. You can also choose - the "read-only" method: a read-only config file is never flushed to disk (but you can - set the values in memory!).[br] - It is not a good idea to keep a config file open forever: a good approach - is to keep settings in memory variables and write them all at once when it comes to - write settings: you open the config file , write all your values and close the file.[br] + the "read-only" method - a read-only config file is never flushed to disk (but you + can still set values in memory!).[br] + It is not a good idea to keep a config file open forever. A better approach is to + keep settings in memory variables - when you want to write to disk, open the config + file, write all your values and then close the file.[br] You can obviously keep the config file open for some time but remember that - no change is written to the disk until [cmd]config.flush[/cmd] or [cmd]config.close[/cmd] is called.[br] + no changes are written to the disk until [cmd]config.flush[/cmd] or [cmd]config.close[/cmd] is called.[br] You write entries by using [cmd]config.write[/cmd] and read them by using [fnc]$config.read[/fnc]().[br] You can change the "current" config section by using [cmd]config.setsection[/cmd].[br] - Here comes a complete list of commands and functions exported by this module:[br] + The following lists all commands and functions exported by this module:[br] [fnc]$config.open[/fnc][br] [fnc]$config.read[/fnc][br] [fnc]$config.section[/fnc][br] diff --git a/src/modules/dcc/broker.cpp b/src/modules/dcc/broker.cpp index ff3b27dc3..9d3216127 100644 --- a/src/modules/dcc/broker.cpp +++ b/src/modules/dcc/broker.cpp @@ -245,7 +245,7 @@ void KviDccBroker::rsendExecute(KviDccDescriptor * dcc) szTag = dcc->szFileName; } - // now add a file offer , so he we will accept it automatically + // now add a file offer, so he we will accept it automatically // 120 secs is a reasonable timeout QString szMask = dcc->szNick; szMask += "!*@*"; diff --git a/src/modules/dcc/canvaswidget.h b/src/modules/dcc/canvaswidget.h index 84eee1c41..5616e1729 100644 --- a/src/modules/dcc/canvaswidget.h +++ b/src/modules/dcc/canvaswidget.h @@ -194,15 +194,15 @@ KviCanvasView(QCanvas * c,KviCanvasWidget * cw,QWidget * par); ~KviCanvasView(); public: - enum State { Idle , SelectOrigin }; + enum State { Idle, SelectOrigin }; enum ObjectType { - Rectangle , RichText , Line , Ellipse , Chord , Pie , - PolygonTriangle , PolygonRectangle , PolygonPentagon , + Rectangle, RichText, Line, Ellipse, Chord, Pie, + PolygonTriangle, PolygonRectangle, PolygonPentagon, PolygonHexagon }; enum DragMode { - None , All , Left , Right , Top , Bottom , LeftTop , RightTop , - LeftBottom , RightBottom , Scale , SinglePoint , Rotate + None, All, Left, Right, Top, Bottom, LeftTop, RightTop, + LeftBottom, RightBottom, Scale, SinglePoint, Rotate }; protected: KviCanvasWidget * m_pCanvasWidget; diff --git a/src/modules/dcc/chat.h b/src/modules/dcc/chat.h index b0d569a51..8d5fdde7c 100644 --- a/src/modules/dcc/chat.h +++ b/src/modules/dcc/chat.h @@ -53,8 +53,8 @@ protected: bool tryFlushOutBuffers(); // This should handle the incoming data buffer // must "eat" some data from data.buffer, memmove the remaining part - // to the beginning , kvi_realloc data.buffer and update data.iLen - // If bCritical is true , it should handle the whole data buffer + // to the beginning, kvi_realloc data.buffer and update data.iLen + // If bCritical is true, it should handle the whole data buffer // since the thread is going to die // It should return true if the handing was succesfull // or false if the thread should be stopped diff --git a/src/modules/dcc/descriptor.h b/src/modules/dcc/descriptor.h index 4d1ea6661..d799c8658 100644 --- a/src/modules/dcc/descriptor.h +++ b/src/modules/dcc/descriptor.h @@ -76,7 +76,7 @@ private: void copyFrom(const KviDccDescriptor &src); public: // Generic parameters - QString szType; // DCC protocol : CHAT , SCHAT , SEND , TSSEND.... + QString szType; // DCC protocol : CHAT, SCHAT, SEND, TSSEND.... bool bActive; // active or passive connection ? diff --git a/src/modules/dcc/dialogs.cpp b/src/modules/dcc/dialogs.cpp index d6b0b073e..bee5618d5 100644 --- a/src/modules/dcc/dialogs.cpp +++ b/src/modules/dcc/dialogs.cpp @@ -57,7 +57,7 @@ void KviDccBox::forgetDescriptor() } KviDccAcceptBox::KviDccAcceptBox(KviDccBroker * br,KviDccDescriptor * dcc,const QString &text,const QString &capt) -: QWidget(0) , KviDccBox(br,dcc) +: QWidget(0), KviDccBox(br,dcc) { setObjectName("dcc_accept_box"); //QVBoxLayout * vb = new QVBoxLayout(this,4,4); @@ -126,7 +126,7 @@ void KviDccAcceptBox::showEvent(QShowEvent *e) KviDccRenameBox::KviDccRenameBox(KviDccBroker * br,KviDccDescriptor * dcc,const QString &text,bool bDisableResume) -: QWidget(0) , KviDccBox(br,dcc) +: QWidget(0), KviDccBox(br,dcc) { setObjectName("dcc_rename_box"); //QVBoxLayout * vb = new QVBoxLayout(this,4,4); diff --git a/src/modules/dcc/dialogs.h b/src/modules/dcc/dialogs.h index 1074fa656..06e314fde 100644 --- a/src/modules/dcc/dialogs.h +++ b/src/modules/dcc/dialogs.h @@ -43,7 +43,7 @@ public: }; -class KviDccAcceptBox : public QWidget , public KviDccBox +class KviDccAcceptBox : public QWidget, public KviDccBox { Q_OBJECT public: @@ -60,7 +60,7 @@ signals: void rejected(KviDccBox *,KviDccDescriptor *); }; -class KviDccRenameBox : public QWidget , public KviDccBox +class KviDccRenameBox : public QWidget, public KviDccBox { Q_OBJECT public: diff --git a/src/modules/dcc/libkvidcc.cpp b/src/modules/dcc/libkvidcc.cpp index 2079f8614..7f0b94220 100644 --- a/src/modules/dcc/libkvidcc.cpp +++ b/src/modules/dcc/libkvidcc.cpp @@ -85,7 +85,7 @@ static bool dcc_kvs_parse_default_parameters(KviDccDescriptor * d,KviKvsModuleCo if(!d->console()) { - // We don't need a console with -c and -n , otherwise we need it + // We don't need a console with -c and -n, otherwise we need it if(!(c->switches()->find('c',"connect") || c->switches()->find('n',"no-ctcp"))) { delete d; @@ -98,14 +98,14 @@ static bool dcc_kvs_parse_default_parameters(KviDccDescriptor * d,KviKvsModuleCo if(!d->console()->isConnected()) { - // We don't need a connection with -c and -n , otherwise we need it + // We don't need a connection with -c and -n, otherwise we need it if(!(c->switches()->find('c',"connect") || c->switches()->find('n',"no-ctcp"))) { delete d; c->error(__tr2qs_ctx("You're not connected to a server (an active connection is required unless -c or -n are passed)","dcc")); return false; } else { - // -c or -n , grab a local nick from somewhere + // -c or -n, grab a local nick from somewhere d->szLocalNick = KVI_OPTION_STRING(KviOption_stringNickname1).trimmed(); if(d->szLocalNick.isEmpty())d->szLocalNick = KVI_DEFAULT_NICKNAME1; d->szLocalUser = __tr2qs_ctx("unknown","dcc"); // we can live without it @@ -1279,7 +1279,7 @@ static bool dcc_module_cmd_canvas(KviModule *m,KviCommand *c) if(!d->console()) { - // We don't need a console with -c and -n , otherwise we need it + // We don't need a console with -c and -n, otherwise we need it if(!(c->hasSwitch('c') || c->hasSwitch('n')))return c->noIrcContext(); else d->console() = c->window()->frame()->firstConsole(); } @@ -1288,10 +1288,10 @@ static bool dcc_module_cmd_canvas(KviModule *m,KviCommand *c) if(!d->console()->isConnected()) { - // We don't need a connection with -c and -n , otherwise we need it + // We don't need a connection with -c and -n, otherwise we need it if(!(c->hasSwitch('c') || c->hasSwitch('n')))return c->notConnectedToServer(); else { - // -c or -n , grab a local nick from somewhere + // -c or -n, grab a local nick from somewhere d->szLocalNick = KVI_OPTION_STRING(KviOption_stringNickname1).trimmed(); if(d->szLocalNick.isEmpty())d->szLocalNick = KVI_DEFAULT_NICKNAME1; d->szLocalUser = __tr("unknown"); // we can live without it diff --git a/src/modules/dcc/marshal.cpp b/src/modules/dcc/marshal.cpp index ccbdc36c9..6f2327c44 100644 --- a/src/modules/dcc/marshal.cpp +++ b/src/modules/dcc/marshal.cpp @@ -610,7 +610,7 @@ void KviDccMarshal::doSSLHandshake(int) int err = kvi_socket_error(); if(kvi_socket_recoverableError(err)) { - // can recover ? (EAGAIN , EINTR ?) + // can recover ? (EAGAIN, EINTR ?) m_pSn = new QSocketNotifier((int)m_fd,QSocketNotifier::Write); QObject::connect(m_pSn,SIGNAL(activated(int)),this,SLOT(doSSLHandshake(int))); m_pSn->setEnabled(true); diff --git a/src/modules/dcc/requests.cpp b/src/modules/dcc/requests.cpp index e4aad108d..37ae55525 100644 --- a/src/modules/dcc/requests.cpp +++ b/src/modules/dcc/requests.cpp @@ -887,7 +887,7 @@ static void dccModuleParseDccGet(KviDccRequest *dcc) if(KVI_OPTION_BOOL(KviOption_boolCantAcceptIncomingDccConnections)) { - // we have to use DCC RSEND , otherwise it will not work + // we have to use DCC RSEND, otherwise it will not work KviStr szSubproto("RSEND"); szSubproto.prepend(szExtensions); @@ -901,7 +901,7 @@ static void dccModuleParseDccGet(KviDccRequest *dcc) // able to recognize the file. // Here we add another temporary offer with the right filename. - // now add a file offer , so he we will accept it automatically + // now add a file offer, so he we will accept it automatically // 120 secs is a reasonable timeout QString szMask; dcc->ctcpMsg->pSource->mask(szMask,KviIrcMask::NickUserHost); diff --git a/src/modules/dcc/send.h b/src/modules/dcc/send.h index a05ea2d0b..e47884b6d 100644 --- a/src/modules/dcc/send.h +++ b/src/modules/dcc/send.h @@ -168,7 +168,7 @@ protected slots: class KviDccFileTransfer : public KviFileTransfer, public KviDccMarshalOutputContext { - enum GeneralStatus { Connecting , Transferring , Success , Failure }; + enum GeneralStatus { Connecting, Transferring, Success, Failure }; Q_OBJECT public: KviDccFileTransfer(KviDccDescriptor * dcc); diff --git a/src/modules/dcc/voice.cpp b/src/modules/dcc/voice.cpp index 283ae4324..c46eb1f81 100644 --- a/src/modules/dcc/voice.cpp +++ b/src/modules/dcc/voice.cpp @@ -83,7 +83,7 @@ extern KviDccBroker * g_pDccBroker; //#define KVI_AUDIO_DEVICE "/dev/dsp" -// 32 fragments , 512 bytes +// 32 fragments, 512 bytes #define KVI_SNDCTL_FRAG_SIZE 0x00B00009 #define KVI_FRAGMENT_SIZE_IN_BYTES 512 #define KVI_FORMAT AFMT_S16_LE @@ -391,7 +391,7 @@ bool KviDccVoiceThread::soundStep() // m_uSleepTime += 100; // sleep for a while //} } else { - // hmmmm....playing , but nothing to write , possible underrun or EOF + // hmmmm....playing, but nothing to write, possible underrun or EOF // a nice idea would be to use SNDCTL_DSP_GETODELAY here... // but it appears to be broken on some audio devices if(ioctl(m_soundFd,SNDCTL_DSP_GETOSPACE,&info) < 0)info.fragstotal = info.fragments; // dummy...but what should we do ? @@ -407,12 +407,12 @@ bool KviDccVoiceThread::soundStep() { if(m_inSignalBuffer.size() >= m_pOpt->iPreBufferSize) { - // yep...stuff to play... open the soundcard , if possible + // yep...stuff to play... open the soundcard, if possible startPlaying(); m_iLastSignalBufferSize = m_inSignalBuffer.size(); } else { - // have stuff to play , but it's not enough to fill the pre-buffer + // have stuff to play, but it's not enough to fill the pre-buffer // struct timeval tv; gettimeofday(&tv,0); diff --git a/src/modules/dcc/window.h b/src/modules/dcc/window.h index 2b51d8c3c..0b85ced3d 100644 --- a/src/modules/dcc/window.h +++ b/src/modules/dcc/window.h @@ -30,7 +30,7 @@ #include "kvi_window.h" class KviDccThread; -class KviDccWindow : public KviWindow , public KviDccMarshalOutputContext +class KviDccWindow : public KviWindow, public KviDccMarshalOutputContext { Q_OBJECT public: diff --git a/src/modules/dialog/libkvidialog.cpp b/src/modules/dialog/libkvidialog.cpp index aeb97f87c..8c4f91a70 100644 --- a/src/modules/dialog/libkvidialog.cpp +++ b/src/modules/dialog/libkvidialog.cpp @@ -129,12 +129,12 @@ void KviKvsCallbackMessageBox::done(int code) } @description: - Shows a message dialog box with the specified , , and + Shows a message dialog box with the specified , , and buttons.[br] is a text string that will appear in the caption of the dialog box.[br] is a text string that will appear in the dialog box and can contain HTML formatting.[br] is an [doc:image_id]image identifier[/doc] that defines an icon to be placed in the dialog box. - can be a relative or absolute path to an image file , a signed number (in that case it defines + can be a relative or absolute path to an image file, a signed number (in that case it defines an internal KVIrc image) or one of the special strings "critical", "information" and "warning".[br] is the text of the first button (on the left).[br] is the text of the second button (if empty or not given at all, only one button will appear in the dialog).[br] @@ -146,10 +146,10 @@ void KviKvsCallbackMessageBox::done(int code) to the as positional parameters.[br] If the -b or -modal switch is specified the dialog will have non-blocking modal behaviour: it will appear above its parent widget and block its input until it's closed.[br] - Once the dialog has been shown , the user will click one of the buttons. At this point the dialog + Once the dialog has been shown, the user will click one of the buttons. At this point the dialog is hidden and the is executed passing the number of the button clicked - as $0 and the magic parameters as positional parameters $1 , $2 , $3....[br] - Please note that if the user closes the window with the window manager close button , + as $0 and the magic parameters as positional parameters $1, $2, $3....[br] + Please note that if the user closes the window with the window manager close button, the action is interpreted as a button2 click (that is usually sth as "Cancel").[br] @examples: [example] @@ -404,7 +404,7 @@ void KviKvsCallbackTextInput::showEvent(QShowEvent *e) !sw: -m | --multiline Input multiline text instead of single line @description: - Shows a text input dialog box with the specified , , and + Shows a text input dialog box with the specified , , and buttons.[br] is a text string that will appear in the caption of the dialog box.[br] is a fixed text string that will appear in the dialog box and can contain HTML formatting.[br] @@ -413,20 +413,20 @@ void KviKvsCallbackTextInput::showEvent(QShowEvent *e) is the text of the third button (if empty or not given, only two buttons will appear in the dialog).[br] If one of the text strings starts with a "default=" prefix then the button is assumed to be the default button of the dialog and will be also activated when the user presses enter. - If the -m switch is used , the dialog will be a multi-line text input, otherwise the user will be able to + If the -m switch is used, the dialog will be a multi-line text input, otherwise the user will be able to input only a single line of text.[br] - If the -d switch is used , the initial text input value is set to .[br] - If the -i switch is used , the dialog displays also the icon , just on the left ot the [br] + If the -d switch is used, the initial text input value is set to .[br] + If the -i switch is used, the dialog displays also the icon , just on the left ot the [br] If the -b or -modal switch is specified the dialog will have non-blocking modal behaviour: it will appear above its parent widget and block its input until it's closed.[br] In that case is an [doc:image_id]image identifier[/doc] (can be a relative or absolute path to an image file or a signed number (in that case it defines an internal KVIrc image).[br] ,... are the magic parameters: evaluated at dialog.textinput call time and passed to the as positional parameters.[br] - Once the dialog has been shown , the user will click one of the buttons. At this point the dialog + Once the dialog has been shown, the user will click one of the buttons. At this point the dialog is hidden and the is executed passing the text input value in $1, the number of the button clicked - as $0, and the magic parameters as positional parameters $2 , $3 , $4....[br] - Please note that if the user closes the window with the window manager close button , + as $0, and the magic parameters as positional parameters $2, $3, $4....[br] + Please note that if the user closes the window with the window manager close button, the action is interpreted as a button2 click (that is usually sth as "Cancel").[br] @examples: [example] @@ -545,8 +545,8 @@ void KviKvsCallbackFileDialog::done(int code) } @description: - Shows an openfile dialog box with the specified , , and .[br] - can be "open" , "openm" , "save" or "dir":[br] + Shows an openfile dialog box with the specified , , and .[br] + can be "open", "openm", "save" or "dir":[br] "open" causes the dialog to return an existing file[br] "openm" is similar to open but allows returning multiple files as a comma separated list[br] "save" causes the dialog to return any file name (no overwrite confirmation is built in the dialog!)[br] @@ -562,9 +562,9 @@ void KviKvsCallbackFileDialog::done(int code) to the as positional parameters.[br] If the -b or -modal switch is specified the dialog will have non-blocking modal behaviour: it will appear above its parent widget and block its input until it's closed.[br] - Once the dialog has been shown , the user will select an EXISTING file and click either + Once the dialog has been shown, the user will select an EXISTING file and click either Ok or Cancel. At this point the dialog is hidden and the is executed passing the selected file(s) as $0 - and the magic parameters as positional parameters $1 , $2 , $3....[br] + and the magic parameters as positional parameters $1, $2, $3....[br] If the user clicks "Cancel" or does not select any file the positional parameter $0 will be empty.[br] @examples: [example] @@ -679,9 +679,9 @@ void KviKvsCallbackImageDialog::done(int code) to the as positional parameters.[br] If the -b or -modal switch is specified the dialog will have non-blocking modal behaviour: it will appear above its parent widget and block its input until it's closed.[br] - Once the dialog has been shown , the user will select an EXISTING file and click either + Once the dialog has been shown, the user will select an EXISTING file and click either Ok or Cancel. At this point the dialog is hidden and the is executed passing the selected file(s) as $0 - and the magic parameters as positional parameters $1 , $2 , $3....[br] + and the magic parameters as positional parameters $1, $2, $3....[br] If the user clicks "Cancel" or does not select any image the positional parameter $0 will be empty.[br] @examples: [example] @@ -827,7 +827,7 @@ static bool dialog_module_fnc_textline(KviModule *m,KviCommand *c,KviParameterLi This is actually confusing: the control IS in the script snippet but while the dialog is open the whole world can change: you can return from the dialog call and discover that the server connection no longer exists and the application is about to quit.[br] - This may happen even with non-blocking dialogs ,but in non-blocking mode you have + This may happen even with non-blocking dialogs,but in non-blocking mode you have a way to handle this event. Consider the following snippet of code:[br] [example] echo My name is $? @@ -838,7 +838,7 @@ static bool dialog_module_fnc_textline(KviModule *m,KviCommand *c,KviParameterLi in the executable to handle all these situations but that would be really too expensive).[br] With object scripting this is actually dangerous: you might use a blocking dialog in an object signal handler and when returning discover that this object has been deleted! - (The example refers to a simple object , but think about a complex hierarchy of objects + (The example refers to a simple object, but think about a complex hierarchy of objects where one random gets deleted...).[br] This is why the dialogs in KVIrc are non-blocking :)[br] That's REAL programming. @@ -876,9 +876,9 @@ static bool dialog_module_can_unload(KviModule *) KVIRC_MODULE( "KVIrc script dialogs", "4.0.0", - "Szymon Stefanek " , + "Szymon Stefanek ", "Adds the /dialog.* commands functionality\n", - dialog_module_init , + dialog_module_init, dialog_module_can_unload, 0, dialog_module_cleanup, diff --git a/src/modules/file/libkvifile.cpp b/src/modules/file/libkvifile.cpp index 3ee1ef1be..d4889f1ea 100644 --- a/src/modules/file/libkvifile.cpp +++ b/src/modules/file/libkvifile.cpp @@ -97,8 +97,8 @@ Overwrites the file even if it already exists. @description: Makes a copy of the file as .[br] - If the [-o] switch is used , the file is overwritten , if already exists.[br] - With no [-o] switch , this command does not overwrite files.[br] + If the [-o] switch is used, the file is overwritten, if already exists.[br] + With no [-o] switch, this command does not overwrite files.[br] The destination path must be already existing: if you want to ensure this, use [fnc]$file.mkdir[/fnc] first.[br] The paths ( and ) are adjusted according to the system that KVIrc is running on so you don't have to bother about portability: it *should* be automatically @@ -259,7 +259,7 @@ static bool file_kvs_cmd_write(KviKvsModuleCommandCall * c) @description: Renames a file from to .[br] This command can also rename directories.[br] - If the file already exists , this command fails.[br] + If the file already exists, this command fails.[br] The paths ( and ) are adjusted according to the system that KVIrc is running on so you don't have to bother about portability: it *should* be automatically guaranteed.Just use UNIX style paths for them.[br] @@ -334,7 +334,7 @@ static bool file_kvs_cmd_mkdir(KviKvsModuleCommandCall * c) Suppresses any warning message @description: Removes the file .[br] - -q suppresses any warning message (about non existing file , for example).[br] + -q suppresses any warning message (about non existing file, for example).[br] The path is adjusted according to the system that KVIrc is running on so you don't have to bother about portability: it *should* be automatically guaranteed. Just use an UNIX style path.[br] @@ -374,7 +374,7 @@ static bool file_kvs_cmd_remove(KviKvsModuleCommandCall * c) @description: Removes the directory .[br] The directory must be empty for this command to success.[br] - -q suppresses any warning message (about non existing directory , for example).[br] + -q suppresses any warning message (about non existing directory, for example).[br] The path is adjusted according to the system that KVIrc is running on so you don't have to bother about portability: it *should* be automatically guaranteed. Just use an UNIX style path.[br] @@ -434,7 +434,7 @@ static bool file_kvs_fnc_exists(KviKvsModuleFunctionCall * c) @syntax: $file.type() @description: - Returns "f" if the points to a real file , "d" if + Returns "f" if the points to a real file, "d" if is the name of a directory or "l" if it is a symbolic link.[br] The should be an unix-style file path and is adjusted according to the system that KVIrc is running on.[br] */ @@ -464,7 +464,7 @@ static bool file_kvs_fnc_type(KviKvsModuleFunctionCall * c) $file.size() @description: Returns the size of the file pointed by .[br] - If the file does not exist , this function returns 0.[br] + If the file does not exist, this function returns 0.[br] The should be an unix-style file path and is adjusted according to the system that KVIrc is running on.[br] */ static bool file_kvs_fnc_size(KviKvsModuleFunctionCall * c) @@ -540,7 +540,7 @@ static bool file_kvs_fnc_allSizes(KviKvsModuleFunctionCall * c) $file.fixpath() @description: Returns the adjusted to match the current operating - system file path conventions.[br] This means that on UNIX , a path like "C:\folder\file.mp3" + system file path conventions.[br] This means that on UNIX, a path like "C:\folder\file.mp3" will be returned as "/folder/file.mp3" and vice-versa.[br] There is a minor problem with unix paths converted to the windows system: unix has no "drive" concept thus the unix paths do not contain a drive. KVIrc will @@ -574,7 +574,7 @@ static bool file_kvs_fnc_fixpath(KviKvsModuleFunctionCall * c) $file.ps() @description: Returns the file path separator for the current operating system.[br] - On windows , '\' is returned , on UNIX , '/'.[br] + On windows, '\' is returned, on UNIX, '/'.[br] @seealso: [fnc]$file.fixpath[/fnc] */ @@ -596,7 +596,7 @@ static bool file_kvs_fnc_ps(KviKvsModuleFunctionCall * c) $file.ls(,[[,]]) @description: Returns the listing of the specified directory as an array.[br] - The should be an unix-style file path and is adjusted according to the system that KVIrc is running on.[br] + The should be a unix-style file path and is adjusted according to the system that KVIrc is running on.[br] may be a combination of the following characters:[br] d: list directories[br] f: list files[br] @@ -612,8 +612,8 @@ static bool file_kvs_fnc_ps(KviKvsModuleFunctionCall * c) z: put the directories first, then the files[br] k: invert sort order[br] i: case insensitive sort[br] - If is empty then a default of 'dfrwxhs'.[br] - If none of r,w,x is set then KVIrc sets all of them by default.[br] + If is empty then a default of 'dfrwxhs' is set.[br] + If none of the r,w,x flags are set then KVIrc sets all of them by default.[br] If is passed then it is interpreted as a wildcard string that must match the entries to be returned.[br] @example: @@ -700,13 +700,13 @@ static bool file_kvs_fnc_ls(KviKvsModuleFunctionCall * c) @description: Reads at most bytes of the file pointed by .[br] is an upper limit but may be not reached if the real file is smaller.[br] - The data read is returned as a string , so if the file contains binary data, + The data read is returned as a string, so if the file contains binary data, expect strange results.[br] If is not specified, then KVIrc tries to read the whole file up to the 1 MiB limit (so if you want to read a file that is bigger thatn 1 MiB then you MUST specify the ).[br] WARNING: always check the file size before attemting to read a whole file... reading a CDROM iso image may sit down your system :) (and will prolly crash while - allocating memory , before attempting to read anything)[br] + allocating memory, before attempting to read anything)[br] An empty string is returned if a serious error occures.[br] The is adjusted according to the system that KVIrc is running on.[br] Flags are actually limited to the single letter 'l'. By default the file @@ -963,13 +963,13 @@ static bool file_kvs_cmd_writeLines(KviKvsModuleCommandCall * c) @description: Returns the path to the KVIrc local data directory.[br] The KVIrc local data directory is always writeable and contains - the various subdirectories that KVIrc uses internally: audio , avatars , - config , help , incoming , log , modules , msgcolors and pics.[br] - If is passed , then it is appended at the end of the directory - to form a complete filepath.[br] + the various subdirectories that KVIrc uses internally: audio, avatars, + config, help, incoming, log, modules, msgcolors and pics.[br] + If is passed, then it is appended to the directory path to + form a complete filepath.[br] The path is adjusted to contain single separators suitable for the platform - that KVIrc is atually running on (thus you not need to care about path - separators in the , KVIrc will adjust them).[br] + that KVIrc is atually running on (thus you do not need to care about path + separators in the , KVIrc will adjust them).[br] @examples: [example] echo KVIrc looks for pictures in $file.localdir(pics) @@ -1002,11 +1002,11 @@ static bool file_kvs_fnc_localdir(KviKvsModuleFunctionCall * c) $file.homedir([relative_path:string]) @description: Returns the user's HOME directory path.[br] - If is passed , then it is appended at the end of the directory - to form a complete filepath.[br] + If is passed, then it is appendedto the directory path to + form a complete filepath.[br] The path is adjusted to contain single separators suitable for the platform - that KVIrc is atually running on (thus you not need to care about path - separators in the , KVIrc will adjust them).[br] + that KVIrc is atually running on (thus you do not need to care about path + separators in the , KVIrc will adjust them).[br] */ static bool file_kvs_fnc_homedir(KviKvsModuleFunctionCall * c) { @@ -1036,11 +1036,11 @@ static bool file_kvs_fnc_homedir(KviKvsModuleFunctionCall * c) $file.rootdir @description: Returns the system's root directory (/ on UNIX and C:/ on Windows).[br] - If is passed , then it is appended at the end of the directory + If is passed, then it is appended at the end of the directory to form a complete filepath.[br] The path is adjusted to contain single separators suitable for the platform that KVIrc is atually running on (thus you not need to care about path - separators in the , KVIrc will adjust them).[br] + separators in the , KVIrc will adjust them).[br] */ static bool file_kvs_fnc_rootdir(KviKvsModuleFunctionCall * c) { @@ -1069,11 +1069,11 @@ static bool file_kvs_fnc_rootdir(KviKvsModuleFunctionCall * c) $file.cwd([relative_path:string]) @description: Returns the current working directory.[br] - If is passed , then it is appended at the end of the directory + If is passed, then it is appended at the end of the directory to form a complete filepath.[br] The path is adjusted to contain single separators suitable for the platform - that KVIrc is atually running on (thus you not need to care about path - separators in the , KVIrc will adjust them).[br] + that KVIrc is actually running on (thus you do not need to care about path + separators in the , KVIrc will adjust them).[br] */ static bool file_kvs_fnc_cwd(KviKvsModuleFunctionCall * c) { @@ -1103,14 +1103,14 @@ static bool file_kvs_fnc_cwd(KviKvsModuleFunctionCall * c) $file.globaldir @description: Returns the path to the KVIrc global data directory.[br] - The KVIrc local data directory is always readable but usually not writeable and contains - the various subdirectories that KVIrc uses internally: audio , avatars , - config , help , incoming , log , modules , msgcolors and pics.[br] - If is passed , then it is appended at the end of the directory - to form a complete filepath.[br] + The KVIrc local data directory is always readable (but usually not writeable) and contains + the various subdirectories that KVIrc uses internally: audio, avatars, + config, help, incoming, log, modules, msgcolors and pics.[br] + If is passed, then it is appended to the directory path to + form a complete filepath.[br] The path is adjusted to contain single separators suitable for the platform - that KVIrc is atually running on (thus you not need to care about path - separators in the , KVIrc will adjust them).[br] + that KVIrc is atually running on (thus you do not need to care about path + separators in the , KVIrc will adjust them).[br] @examples: [example] echo KVIrc looks for pictures in $file.globaldir(pics) @@ -1201,10 +1201,10 @@ static bool file_kvs_fnc_extractfilename(KviKvsModuleFunctionCall * c) @syntax: $file.digest([,]) @description: - Calculates digest for the file identified by the given string using algorithm + Calculates a digest for the file identified by the given string using the algorithm passed as 2nd argument. - Currently supported: md5, md4, md2, sha1, mdc2, ripemd160, dss1 - Default is md5. Requires OpenSSL support or (better) Crypto++, but offers a + Currently supported: md5 (default), md4, md2, sha1, mdc2, ripemd160 and dss1. + Requires OpenSSL support or (better) Crypto++, but offers a minimal set of hashes in any case. */ static bool file_kvs_fnc_digest(KviKvsModuleFunctionCall * c) diff --git a/src/modules/filetransferwindow/filetransferwindow.cpp b/src/modules/filetransferwindow/filetransferwindow.cpp index 6fb1ee2de..529b802ce 100644 --- a/src/modules/filetransferwindow/filetransferwindow.cpp +++ b/src/modules/filetransferwindow/filetransferwindow.cpp @@ -238,7 +238,7 @@ QSize KviFileTransferItemDelegate::sizeHint(const QStyleOptionViewItem &, const } KviFileTransferWindow::KviFileTransferWindow(KviModuleExtensionDescriptor * d,KviFrame * lpFrm) -: KviWindow(KVI_WINDOW_TYPE_TOOL,lpFrm,"file transfer window",0) , KviModuleExtension(d) +: KviWindow(KVI_WINDOW_TYPE_TOOL,lpFrm,"file transfer window",0), KviModuleExtension(d) { g_pFileTransferWindow = this; setAutoFillBackground(false); diff --git a/src/modules/filetransferwindow/filetransferwindow.h b/src/modules/filetransferwindow/filetransferwindow.h index fa9934880..47fc43b98 100644 --- a/src/modules/filetransferwindow/filetransferwindow.h +++ b/src/modules/filetransferwindow/filetransferwindow.h @@ -85,7 +85,7 @@ public: void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; }; -class KviFileTransferWindow : public KviWindow , public KviModuleExtension +class KviFileTransferWindow : public KviWindow, public KviModuleExtension { friend class KviFileTransferItem; friend class KviFileTransferItemDelegate; diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp index b12edb41d..169531e86 100644 --- a/src/modules/help/libkvihelp.cpp +++ b/src/modules/help/libkvihelp.cpp @@ -54,7 +54,7 @@ KviPointerList * g_pHelpWindowList = 0; Finds the first available help browser in the current frame then opens the specified [document]. If no [document] is specified it the documentation index is shown. - If no help browser is available , a new one is created. + If no help browser is available, a new one is created. [document] can be an absolute path or a relative one: in this case the document is searched in the KVIrc documentation directory.[br] If no document has been found using absolute and relative paths, diff --git a/src/modules/iograph/libkviiograph.h b/src/modules/iograph/libkviiograph.h index d410fada5..55aeb768d 100644 --- a/src/modules/iograph/libkviiograph.h +++ b/src/modules/iograph/libkviiograph.h @@ -53,7 +53,7 @@ protected: virtual void paintEvent (QPaintEvent *e); }; -class KviIOGraphWindow : public KviWindow , public KviModuleExtension +class KviIOGraphWindow : public KviWindow, public KviModuleExtension { Q_OBJECT public: diff --git a/src/modules/lamerizer/libkvilamerizer.cpp b/src/modules/lamerizer/libkvilamerizer.cpp index 4ebd0aa5b..136537efc 100644 --- a/src/modules/lamerizer/libkvilamerizer.cpp +++ b/src/modules/lamerizer/libkvilamerizer.cpp @@ -266,9 +266,9 @@ static bool lamerizer_module_can_unload(KviModule *) KVIRC_MODULE( "Lamerizer crypt engine", "4.0.0", - "Szymon Stefanek \n Jan Wagner " , + "Szymon Stefanek \n Jan Wagner ", "Exports the lamerizer text transformation engine", - lamerizer_module_init , + lamerizer_module_init, lamerizer_module_can_unload, 0, lamerizer_module_cleanup, diff --git a/src/modules/links/linkswindow.cpp b/src/modules/links/linkswindow.cpp index eaf40beda..f08ae553f 100644 --- a/src/modules/links/linkswindow.cpp +++ b/src/modules/links/linkswindow.cpp @@ -46,7 +46,7 @@ extern KviPointerList * g_pLinksWindowList; KviLinksWindow::KviLinksWindow(KviFrame * lpFrm,KviConsole * lpConsole) -: KviWindow(KVI_WINDOW_TYPE_LINKS,lpFrm,"links",lpConsole) , KviExternalServerDataParser() +: KviWindow(KVI_WINDOW_TYPE_LINKS,lpFrm,"links",lpConsole), KviExternalServerDataParser() { g_pLinksWindowList->append(this); diff --git a/src/modules/logview/logviewmdiwindow.h b/src/modules/logview/logviewmdiwindow.h index 54a63ef9d..5ee9fa36c 100644 --- a/src/modules/logview/logviewmdiwindow.h +++ b/src/modules/logview/logviewmdiwindow.h @@ -85,7 +85,7 @@ signals: void rightButtonPressed(QTreeWidgetItem *,QPoint); }; -class KviLogViewMDIWindow : public KviWindow , public KviModuleExtension +class KviLogViewMDIWindow : public KviWindow, public KviModuleExtension { Q_OBJECT public: diff --git a/src/modules/mediaplayer/libkvimediaplayer.cpp b/src/modules/mediaplayer/libkvimediaplayer.cpp index bb4d3c623..9f519cab8 100644 --- a/src/modules/mediaplayer/libkvimediaplayer.cpp +++ b/src/modules/mediaplayer/libkvimediaplayer.cpp @@ -543,7 +543,7 @@ MP_KVS_FUNCTION(playerList) @description: Plays the media specified by the on the currently selected media player interface. is a standard Media Resource - Locator. Examples of such locators are: 'file:///home/myfile.mp3' , + Locator. Examples of such locators are: 'file:///home/myfile.mp3', 'http://streaming.server.top:123', 'dvd:// or dvb://channelname'. Take a look at the [module:mediaplayer]mediaplayer module documentation[/module] for more details about how it works.[br] @@ -741,7 +741,7 @@ MP_KVS_SIMPLE_COMMAND(mute,mute) @description: Returns the mrl of the media currently played by the selected media player interface. The mrl is a standard Media Resource Locator. - Examples of such locators are: 'file:///home/myfile.mp3' , + Examples of such locators are: 'file:///home/myfile.mp3', 'http://streaming.server.top:123', 'dvd:// or dvb://channelname'. This means that the returned string may NOT refer to a local file: it refers to the local file only if the 'file://' prefix is found ([fnc]$mediaplayer.localFile()[/fnc] diff --git a/src/modules/mediaplayer/mp_interface.h b/src/modules/mediaplayer/mp_interface.h index ca0615f3a..87631b2d6 100644 --- a/src/modules/mediaplayer/mp_interface.h +++ b/src/modules/mediaplayer/mp_interface.h @@ -78,7 +78,7 @@ public: // communication errors. virtual QString nowPlaying() = 0; // currently played media resource locator - // file:// for local files, dvb:// for dvb media , dvd:// for dvd's + // file:// for local files, dvb:// for dvb media, dvd:// for dvd's // http:// for audio streams etc... // empty if player is not playing (or in the tragic case that the player // can't determine the url). diff --git a/src/modules/mediaplayer/mp_mp3.cpp b/src/modules/mediaplayer/mp_mp3.cpp index 19ee2e0f2..60a66a5de 100644 --- a/src/modules/mediaplayer/mp_mp3.cpp +++ b/src/modules/mediaplayer/mp_mp3.cpp @@ -443,7 +443,7 @@ char *unpad(char *string) return string; } -bool scan_mp3_file(QString& ,mp3info * i) +bool scan_mp3_file(QString&,mp3info * i) { //memset(i,0,sizeof(mp3info)); resetmp3infoStruct(i); diff --git a/src/modules/mediaplayer/mp_mprisinterface.cpp b/src/modules/mediaplayer/mp_mprisinterface.cpp index 021b2b255..ce382b5a0 100644 --- a/src/modules/mediaplayer/mp_mprisinterface.cpp +++ b/src/modules/mediaplayer/mp_mprisinterface.cpp @@ -30,8 +30,8 @@ according to MPRIS 1.0, GetStatus returns struct of 4 integers. First integer: 0 = Playing, 1 = Paused, 2 = Stopped. - Second interger: 0 = Playing linearly , 1 = Playing randomly. - Third integer: 0 = Go to the next element once the current has finished playing , 1 = Repeat the current element + Second interger: 0 = Playing linearly, 1 = Playing randomly. + Third integer: 0 = Go to the next element once the current has finished playing, 1 = Repeat the current element Fourth integer: 0 = Stop playing once the last element has been played, 1 = Never give up playing */ @@ -487,7 +487,7 @@ MP_IMPLEMENT_DESCRIPTOR( __tr2qs_ctx( "An interface to Qmmp.\n" \ "Download it from http://qmmp.ylsoftware.com\n" - , + , "mediaplayer" ) ) diff --git a/src/modules/mediaplayer/winamp.cpp b/src/modules/mediaplayer/winamp.cpp index 81bbdeda6..60bcb29e7 100644 --- a/src/modules/mediaplayer/winamp.cpp +++ b/src/modules/mediaplayer/winamp.cpp @@ -30,7 +30,7 @@ // This is a winamp-kvirc interface plugin // -// This stuff is compiled only on windows , as a separate dll module +// This stuff is compiled only on windows, as a separate dll module typedef struct diff --git a/src/modules/notifier/notifiersettings.h b/src/modules/notifier/notifiersettings.h index 621444fb0..1a0a29e42 100644 --- a/src/modules/notifier/notifiersettings.h +++ b/src/modules/notifier/notifiersettings.h @@ -60,7 +60,7 @@ #define m_mac_bkgColor QColor(236,233,216) // Light-brown color of notifier background widget -enum State { Hidden, Showing, Visible, Hiding , FocusingOff, FocusingOn }; +enum State { Hidden, Showing, Visible, Hiding, FocusingOff, FocusingOn }; enum TabState { Normal, Highlighted, Changed }; #endif //_NOTIFIER_SETTINGS_H_ diff --git a/src/modules/objects/class_buttongroup.h b/src/modules/objects/class_buttongroup.h index 1028174ba..10ce2722c 100644 --- a/src/modules/objects/class_buttongroup.h +++ b/src/modules/objects/class_buttongroup.h @@ -37,7 +37,7 @@ public: protected: QButtonGroup *m_pButtonGroup; int m_iId; - KviPointerHashTable btnDict; + KviPointerHashTable btnDict; bool addButton(KviKvsObjectFunctionCall *c); bool checkedButton(KviKvsObjectFunctionCall *c); diff --git a/src/modules/objects/class_ftp.cpp b/src/modules/objects/class_ftp.cpp index bba0fd5c0..9d1c594ac 100644 --- a/src/modules/objects/class_ftp.cpp +++ b/src/modules/objects/class_ftp.cpp @@ -298,7 +298,7 @@ void KviKvsObject_ftp::slotReadyRead () { } -void KviKvsObject_ftp::slotRawCommandReply (int , const QString & ) +void KviKvsObject_ftp::slotRawCommandReply (int, const QString & ) { } diff --git a/src/modules/objects/class_groupbox.cpp b/src/modules/objects/class_groupbox.cpp index 644f8fa58..d51603fa6 100644 --- a/src/modules/objects/class_groupbox.cpp +++ b/src/modules/objects/class_groupbox.cpp @@ -32,7 +32,7 @@ #include "kvi_iconmanager.h" -// Tables used in $setAlignment , $alignment and in $setOrientation & $orientation +// Tables used in $setAlignment, $alignment and in $setOrientation & $orientation const char * const align_tbl[] = { "Left", diff --git a/src/modules/objects/class_layout.cpp b/src/modules/objects/class_layout.cpp index b9f9a4122..2c402942a 100644 --- a/src/modules/objects/class_layout.cpp +++ b/src/modules/objects/class_layout.cpp @@ -68,7 +68,7 @@ const int align_cod[] = { [class]object[/class] @description: The layout is a geometry management tool for child widgets. - You create a layout , give it some widgets to manage and it will layout them + You create a layout, give it some widgets to manage and it will layout them automatically.[br] The parent of the layout must be the widget for which child widget geometries have to be managed. A layout is a grid of NxM cells in which you insert child widgets with [classfnc:layout]$addWidget[/classfnc]().[br] diff --git a/src/modules/objects/class_multilineedit.cpp b/src/modules/objects/class_multilineedit.cpp index 01ffd1c6b..88984b1ac 100644 --- a/src/modules/objects/class_multilineedit.cpp +++ b/src/modules/objects/class_multilineedit.cpp @@ -185,7 +185,7 @@ KVSO_BEGIN_REGISTERCLASS(KviKvsObject_textedit,"multilineedit","widget") KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"paste", functionPaste) //->Set Style - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setFamily" , functionsetFamily) + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setFamily", functionsetFamily) KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setItalic", functionsetItalic) KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setBold", functionsetBold) KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setUnderline", functionsetUnderline) @@ -209,18 +209,18 @@ KVSO_BEGIN_REGISTERCLASS(KviKvsObject_textedit,"multilineedit","widget") //->Text color & others KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setText", functionsetText) KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setColor", functionsetColor) - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setModified" , functionsetModified) + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setModified", functionsetModified) KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setPointSize", functionsetPointSize) KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setReadOnly",functionSetReadOnly) - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setTextFormat" , functionsetTextFormat) - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"textFormat" , functiontextFormat) - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"loadFile" , functionloadFile); - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setAlignment" , functionsetAlignment) + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setTextFormat", functionsetTextFormat) + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"textFormat", functiontextFormat) + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"loadFile", functionloadFile); + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"setAlignment", functionsetAlignment) - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"lines" ,functionlines) - KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"selectAll" ,functionselectAll) + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"lines", functionlines) + KVSO_REGISTER_HANDLER(KviKvsObject_textedit,"selectAll", functionselectAll) KVSO_END_REGISTERCLASS(KviKvsObject_textedit) @@ -440,7 +440,7 @@ bool KviKvsObject_textedit::functionsetItalic(KviKvsObjectFunctionCall * c) return true; } -//-->Returns Italic , Bold, Underline. +//-->Returns Italic, Bold, Underline. bool KviKvsObject_textedit::functionbold(KviKvsObjectFunctionCall * c) { if(widget()) diff --git a/src/modules/objects/class_socket.cpp b/src/modules/objects/class_socket.cpp index 0f2aa6e13..3d40cf1f2 100644 --- a/src/modules/objects/class_socket.cpp +++ b/src/modules/objects/class_socket.cpp @@ -66,7 +66,7 @@ @description: This class provides a standard TCP/IP socket functionality.[br] It can be used either for connecting to a remote host or to listening for incoming connections.[br] - If the KVIrc executable has been compiled with the IPV6 protocol support , this socket also supports it.[br] + If the KVIrc executable has been compiled with the IPV6 protocol support, this socket also supports it.[br] @functions: !fn: $status() Returns the status of the socket :[br] @@ -90,27 +90,27 @@ can be a numeric internet address (either Ipv4 or Ipv6 (if supported)) or a hostname.[br] If a hostname is used, a DNS lookup is performed (the socket enters the "dns call" state).[br] This function returns 1 if the connect attempt can be successfully initiated, - 0 otherwise.[br] In fact , this function returns 0 only if the supplied parameter + 0 otherwise.[br] In fact, this function returns 0 only if the supplied parameter is invalid or the socket is in an incoherent state (already connected or listening): for a newly created socket and with a valid number you can safely ignore the return value.[br] Please note that the connection is asynchronous: when this function returns the socket is NOT connected: it has just initiated the connect attempt and you will be notified of the attempt result by an asynchronous event call: - in case of failure , $connectFailedEvent() will be called , in case of - succes , $connectEvent() will be called. + in case of failure, $connectFailedEvent() will be called, in case of + succes, $connectEvent() will be called. !fn: $listen([[,[,]]]) Attempts to listen on the specified and .[br] - If is not passed it is assumed to be 0 , if is not passed , it is assumed to be + If is not passed it is assumed to be 0, if is not passed, it is assumed to be "any interface" (INADDR_ANY).[br] Port 0 means that the kernel should choose a "random" port to listen on.[br] - If the is recognized as IPV6 address , and IPV6 is supported , the socket listens + If the is recognized as IPV6 address, and IPV6 is supported, the socket listens in IPV6 mode. If is an empty string and is 1 the socket listens on "any ipv6 interface".[br] This function returns '1' in case of success and '0' in case of failure.[br] On some systems listening in the IPV6 namespace allows to accept also IPV4 connections (this includes linux but not windows afaik).[br] - When an incoming connection will arrive , $incomingConnectionEvent() will be called. + When an incoming connection will arrive, $incomingConnectionEvent() will be called. !fn: $accept() This function can be called only from inside $incomingConnectionEvent().[br] @@ -187,11 +187,11 @@ !fn: $localIp() Returns the IP address of the local end of this socket.[br] - The return value is meaningful only if the socket is in connected , listening or connecting state. + The return value is meaningful only if the socket is in connected, listening or connecting state. !fn: $localPort() Returns the port of the local end of this socket.[br] - The return value is meaningful only if the socket is in connected , listening or connecting state. + The return value is meaningful only if the socket is in connected, listening or connecting state. @examples: [example] diff --git a/src/modules/objects/class_sql.cpp b/src/modules/objects/class_sql.cpp index 9755cb020..6be4737b6 100644 --- a/src/modules/objects/class_sql.cpp +++ b/src/modules/objects/class_sql.cpp @@ -94,7 +94,7 @@ static void KviKvsSqlInstanceUnregister(KviKvsObject_sql *instance) !fn: $commit() Commit the transaction. !fn: $setCurrentQuery() - Sets the query for the database connection , which has to be already connected, as current query. + Sets the query for the database connection , which has to be already connected, as current query. !fn: $currentQuery() Returns the name of the database connection for the current query, or an empty string if there aren't any initialized queries. !fn: $closeConnection() diff --git a/src/modules/objects/class_widget.cpp b/src/modules/objects/class_widget.cpp index fb57c60c7..5a67a4e44 100644 --- a/src/modules/objects/class_widget.cpp +++ b/src/modules/objects/class_widget.cpp @@ -246,7 +246,7 @@ const char * const widgettypes_tbl[] = { Changes the widget's width to and height to . See also [classfnc]$setGeometry[/classfnc](). !fn: $isEnabled() - Returns '1' if the widget is enabled , '0' otherwise. + Returns '1' if the widget is enabled, '0' otherwise. See also [classfnc:widget]$setEnabled[/classfnc](). !fn: $setEnabled() Sets the widget state to enabled or disabled if is 1 or 0 respectively. @@ -284,8 +284,8 @@ const char * const widgettypes_tbl[] = { widget is a toplevel one. !fn: $backgroundColor() Returns the background color of this widget in hexadecimal - html-like format. For example , for a black bacground you will get - the string "000000" , for a red one , "FF0000", for a white one + html-like format. For example, for a black bacground you will get + the string "000000", for a red one, "FF0000", for a white one "FFFFFF". See also [classfnc]$setBackgroundColor[/classfnc]() !fn: $setBackgroundColor(,[geen:integer],[blue:integer]) Sets the background color of this widget to :valid values are: @@ -584,18 +584,18 @@ const char * const widgettypes_tbl[] = { // -// If you never call c->error() , c->warning() (your function never fails) +// If you never call c->error(), c->warning() (your function never fails) // and never call a function that can call c->error() or c->warning() // you can avoid ENTER_STACK_FRAME and c->leaveStackFrame() // Just return true. // c->error() should be called only in really critical situations // (we have to define better "critical situation") -// if possible , leave the things go after just a c->warning() +// if possible, leave the things go after just a c->warning() // // widget() will be never 0 in THIS class // but in derived classes WILL be - // ... now that I think about it , it + // ... now that I think about it, it // may happen that widget() will be zero here too: // If the Qt "physical" widget gets destroyed // by some external factor (for example when children @@ -609,7 +609,7 @@ const char * const widgettypes_tbl[] = { // as in a qtwrapper not yet wrapped or failed to wrap (so // qtwrapper::$wrap() returned '0' for example) // or after the widget has been destroyed... - // if widget() is 0 , the functions perform no actions + // if widget() is 0, the functions perform no actions // return no errors and results that have to be assumed // as invalid (this allows the minimum overhead: if widget() diff --git a/src/modules/objects/class_workspace.cpp b/src/modules/objects/class_workspace.cpp index 3eacf610b..39c3632c5 100644 --- a/src/modules/objects/class_workspace.cpp +++ b/src/modules/objects/class_workspace.cpp @@ -189,7 +189,7 @@ if (pWidgetDict) } KVSO_END_CONSTRUCTOR(KviKvsObject_workspace) -bool KviKvsObject_workspace::init(KviKvsRunTimeContext * ,KviKvsVariantList *) +bool KviKvsObject_workspace::init(KviKvsRunTimeContext *, KviKvsVariantList *) { SET_OBJECT(QMdiArea); return true; diff --git a/src/modules/options/instances.cpp b/src/modules/options/instances.cpp index 28294a3b1..2b158c984 100644 --- a/src/modules/options/instances.cpp +++ b/src/modules/options/instances.cpp @@ -665,7 +665,7 @@ KviOptionsInstanceManager::KviOptionsInstanceManager() { //qDebug("Instantiating"); - // Create the global widget dict : case sensitive , do not copy keys + // Create the global widget dict : case sensitive, do not copy keys m_pInstanceTree = new KviPointerList; m_pInstanceTree->setAutoDelete(true); diff --git a/src/modules/options/libkvioptions.cpp b/src/modules/options/libkvioptions.cpp index f7ca1453c..e8ea29254 100644 --- a/src/modules/options/libkvioptions.cpp +++ b/src/modules/options/libkvioptions.cpp @@ -56,7 +56,7 @@ extern int g_iOptionWidgetInstances; @syntax: options.save @description: - Saves the options to disk; this includes aliases , popups , + Saves the options to disk; this includes aliases, popups, events and user preferences. */ @@ -79,7 +79,7 @@ static bool options_kvs_cmd_save(KviKvsModuleCommandCall *) options.dialog [-t] [options_group] @description: Shows the KVIrc options dialog for the specified options group. - If the [-t] switch is used , the dialog is opened as toplevel window, + If the [-t] switch is used, the dialog is opened as toplevel window, otherwise it is opened as part of the current frame window.[br] Valid values for [options_group] are "general" and "theme". If [options_group] is omitted, the option group "general" is assumed. diff --git a/src/modules/popupeditor/popupeditor.h b/src/modules/popupeditor/popupeditor.h index 67f2a90e1..102d321e3 100644 --- a/src/modules/popupeditor/popupeditor.h +++ b/src/modules/popupeditor/popupeditor.h @@ -42,7 +42,7 @@ class KviMenuTreeWidgetItem; class KviPopupTreeWidgetItem : public QTreeWidgetItem { public: - enum Type { Item , Menu , Separator , Label , Epilogue , Prologue , ExtMenu }; + enum Type { Item, Menu, Separator, Label, Epilogue, Prologue, ExtMenu }; public: KviPopupTreeWidgetItem(QTreeWidget * pTreeWidget,KviPopupTreeWidgetItem * after,Type t); KviPopupTreeWidgetItem(KviPopupTreeWidgetItem * parent,KviPopupTreeWidgetItem * after,Type t); diff --git a/src/modules/python/libkvipython.cpp b/src/modules/python/libkvipython.cpp index 2e37561de..21fa11ae2 100644 --- a/src/modules/python/libkvipython.cpp +++ b/src/modules/python/libkvipython.cpp @@ -18,7 +18,7 @@ // // You should have received a copy of the GNU General Public License // along with this program. If not, write to the Free Software Foundation, -// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // //============================================================================= diff --git a/src/modules/pythoncore/kvircmodule.cpp b/src/modules/pythoncore/kvircmodule.cpp index 3bc3bf73f..06e478b75 100644 --- a/src/modules/pythoncore/kvircmodule.cpp +++ b/src/modules/pythoncore/kvircmodule.cpp @@ -18,7 +18,7 @@ // // You should have received a copy of the GNU General Public License // along with this program. If not, write to the Free Software Foundation, -// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // //============================================================================= diff --git a/src/modules/pythoncore/kvircmodule.h b/src/modules/pythoncore/kvircmodule.h index d0ed61164..76ad92ca0 100644 --- a/src/modules/pythoncore/kvircmodule.h +++ b/src/modules/pythoncore/kvircmodule.h @@ -20,7 +20,7 @@ // // You should have received a copy of the GNU General Public License // along with this program. If not, write to the Free Software Foundation, -// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // //============================================================================= diff --git a/src/modules/pythoncore/libkvipythoncore.cpp b/src/modules/pythoncore/libkvipythoncore.cpp index 64046b136..1acf97513 100644 --- a/src/modules/pythoncore/libkvipythoncore.cpp +++ b/src/modules/pythoncore/libkvipythoncore.cpp @@ -18,7 +18,7 @@ // // You should have received a copy of the GNU General Public License // along with this program. If not, write to the Free Software Foundation, -// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // //============================================================================= diff --git a/src/modules/raweditor/raweditor.h b/src/modules/raweditor/raweditor.h index 3c0b7aa8f..f2bc47ccd 100644 --- a/src/modules/raweditor/raweditor.h +++ b/src/modules/raweditor/raweditor.h @@ -67,7 +67,7 @@ class KviRawHandlerTreeWidgetItem : public QTreeWidgetItem { public: KviRawHandlerTreeWidgetItem(QTreeWidgetItem * par,const QString & name,const QString & buffer,bool bEnabled) - : QTreeWidgetItem(par), m_szBuffer(buffer) , m_bEnabled(bEnabled) + : QTreeWidgetItem(par), m_szBuffer(buffer), m_bEnabled(bEnabled) { setText(0,name); setEnabled(bEnabled); diff --git a/src/modules/reguser/dialog.cpp b/src/modules/reguser/dialog.cpp index dd02fac8b..7c088c7ec 100644 --- a/src/modules/reguser/dialog.cpp +++ b/src/modules/reguser/dialog.cpp @@ -371,7 +371,7 @@ void KviRegisteredUsersDialog::itemPressed(QTreeWidgetItem *it,int c) szMask.append(tmp); } } - // if the nickname list is still empty , build a dummy nick to notify + // if the nickname list is still empty, build a dummy nick to notify if(szMask.isEmpty()) { szMask = i->user()->name(); diff --git a/src/modules/reguser/edituser.cpp b/src/modules/reguser/edituser.cpp index aa3c626ca..0d11c1af3 100644 --- a/src/modules/reguser/edituser.cpp +++ b/src/modules/reguser/edituser.cpp @@ -554,7 +554,7 @@ void KviRegisteredUserEntryDialog::notifyCheckClicked(bool bChecked) szMask.append(tmp); } } - // if the nickname list is still empty , build a dummy nick to notify + // if the nickname list is still empty, build a dummy nick to notify if(szMask.isEmpty()) { szMask = m_pUser->name(); diff --git a/src/modules/reguser/libkvireguser.cpp b/src/modules/reguser/libkvireguser.cpp index 343bbd793..47caa91c8 100644 --- a/src/modules/reguser/libkvireguser.cpp +++ b/src/modules/reguser/libkvireguser.cpp @@ -159,8 +159,8 @@ static bool reguser_kvs_cmd_edit(KviKvsModuleCommandCall * c) If [mask] is given, then it is added to the entry mask list.[br] The parameter may contain any character: even spaces are allowed (obviously you have to use quotes in that case).[br] - If the '-r' switch is given , the new entry replaces any previous one with the same (the old entry is removed).[br] - If the '-f' switch is given , and there is an existing entry with the same name , no warning is printed + If the '-r' switch is given, the new entry replaces any previous one with the same (the old entry is removed).[br] + If the '-f' switch is given, and there is an existing entry with the same name, no warning is printed and the old entry is treated just like it has been just added (thus the [mask] is eventually added to its mask list).[br] The '-q' switch causes the command to run in "quiet" mode and print no warning.[br] @examples: @@ -241,7 +241,7 @@ static bool reguser_kvs_cmd_add(KviKvsModuleCommandCall * c) Removes the regusers database entry with the specified .[br] If the -n switch is given, and there is a removed entry, this command will restart all the running "notify lists". - If the -q switch is used , no warning is printed if the + If the -q switch is used, no warning is printed if the does not identify an existing entry. @examples: [example] @@ -296,7 +296,7 @@ static bool reguser_kvs_cmd_remove(KviKvsModuleCommandCall * c) The only restriction on the is that it must be unique inside the regusers database: you can't match two users with the same mask (it would have rather undefined results).[br] - If -f is used , KVIrc ensures that the mask is unique in the database + If -f is used, KVIrc ensures that the mask is unique in the database and associates is to THIS registered user (breaking the previous associations).
Once at least one mask has been added, the user can be "matched" by using the [fnc]$reguser.match[/fnc]() function.[br] @@ -369,7 +369,7 @@ static bool reguser_kvs_cmd_addmask(KviKvsModuleCommandCall * c) reguser.delmask @description: Removes a mask from the regusers database.[br] - Since masks are unique in the database , you don't need to pass + Since masks are unique in the database, you don't need to pass an parameter: if an entry has the , removing that will surely remove it from that entry. (contorsions ?)[br] @examples: @@ -655,12 +655,12 @@ static bool reguser_kvs_fnc_isIgnoreEnabled(KviKvsModuleFunctionCall * c) Adds a property to the registered users database entry with name .[br] The property is set to the specified or is unset if is not given (or is an empty string).[br] - If the '-n' switch is used , and the user entry has been found in the database, + If the '-n' switch is used, and the user entry has been found in the database, all the [doc:notify_list]notify lists[/doc] are restarted.[br] - If the '-a' switch is used , and there are users on IRC currently matched + If the '-a' switch is used, and there are users on IRC currently matched by this reguser entry then their avatar is reset. This is useful when you're changing someone's notify property.[br] - If the -q switch is used , the command runs in "quiet" mode and prints no warnings.[br] + If the -q switch is used, the command runs in "quiet" mode and prints no warnings.[br] @examples: [example] [cmd]reguser.add[/cmd] "Szymon Stefanek" @@ -929,7 +929,7 @@ static bool reguser_kvs_fnc_exactMatch(KviKvsModuleFunctionCall * c) // $reguser.matches() // @description: // Returns a comma separated list of registered user masks that match .[br] -// User mask must be in the format !@ , where and +// User mask must be in the format !@, where and // may contain '*' wildcards.[br] // If no registered mask matches the an empty string is returned.[br] // @seealso: @@ -982,9 +982,9 @@ static bool reguser_kvs_fnc_exactMatch(KviKvsModuleFunctionCall * c) $reguser.mask([,]) @description: Returns the th registration mask for the registered user database record identified - by . If is not given , returns an array of registration masks for that entry.[br] + by . If is not given, returns an array of registration masks for that entry.[br] If does not identify a valid entry an empty string is returned; - if is out of range (or there are no masks at all) , an empty string is returned.[br] + if is out of range (or there are no masks at all), an empty string is returned.[br] is a ZERO BASED index.[br] @examples: [example] @@ -1155,7 +1155,7 @@ static bool reguser_kvs_fnc_matchProperty(KviKvsModuleFunctionCall * c) reguser.wizard [mask] @description: Allows registering an user with an intuitive and easy to use interface. - If [mask] is specified , it is used as inital mask in the dialog. + If [mask] is specified, it is used as inital mask in the dialog. @seealso: [module:reguser]Registered users database interface[/module], [doc:registered_users]Registered users database[/doc], diff --git a/src/modules/rijndael/libkvirijndael.cpp b/src/modules/rijndael/libkvirijndael.cpp index d5ebd0997..9d4ad15a6 100644 --- a/src/modules/rijndael/libkvirijndael.cpp +++ b/src/modules/rijndael/libkvirijndael.cpp @@ -835,9 +835,9 @@ static bool rijndael_module_can_unload(KviModule *) KVIRC_MODULE( "Rijndael crypt engine", "4.0.0", - "Szymon Stefanek " , + "Szymon Stefanek ", "Exports the rijndael crypt engine", - rijndael_module_init , + rijndael_module_init, rijndael_module_can_unload, 0, rijndael_module_cleanup, diff --git a/src/modules/rijndael/libkvirijndael.h b/src/modules/rijndael/libkvirijndael.h index b51667e50..f6ef1ae14 100644 --- a/src/modules/rijndael/libkvirijndael.h +++ b/src/modules/rijndael/libkvirijndael.h @@ -46,7 +46,7 @@ virtual KviCryptEngine::EncryptResult encrypt(const char * plainText,KviStr &outBuffer); virtual KviCryptEngine::DecryptResult decrypt(const char * inBuffer,KviStr &plainText); protected: - virtual bool binaryToAscii(const char *,int ,KviStr &){ return false; }; + virtual bool binaryToAscii(const char *,int,KviStr &){ return false; }; virtual bool asciiToBinary(const char *,int *,char **){ return false; }; virtual int getKeyLen(){ return 32; }; virtual Rijndael::KeyLength getKeyLenId(){ return Rijndael::Key32Bytes; }; diff --git a/src/modules/rijndael/libkvirijndael_cryptopp.cpp b/src/modules/rijndael/libkvirijndael_cryptopp.cpp index 9df64fb7a..b1d25c11c 100644 --- a/src/modules/rijndael/libkvirijndael_cryptopp.cpp +++ b/src/modules/rijndael/libkvirijndael_cryptopp.cpp @@ -603,9 +603,9 @@ KVIRC_MODULE( "Rijndael crypt engine", "4.0.1", "Copyright © 2009 Kai Wasserbäch " \ - " © 2000-2008 Szymon Stefanek " , + " © 2000-2008 Szymon Stefanek ", "Exports the rijndael crypt engine", - rijndael_module_init , + rijndael_module_init, rijndael_module_can_unload, 0, rijndael_module_cleanup, diff --git a/src/modules/rijndael/rijndael.cpp b/src/modules/rijndael/rijndael.cpp index baa70a30f..59e42debe 100644 --- a/src/modules/rijndael/rijndael.cpp +++ b/src/modules/rijndael/rijndael.cpp @@ -47,7 +47,7 @@ // // -// This implementation works on 128 , 192 , 256 bit keys +// This implementation works on 128, 192, 256 bit keys // and on 128 bit blocks // diff --git a/src/modules/rijndael/rijndael.h b/src/modules/rijndael/rijndael.h index bd2d7401f..caeda9e9e 100644 --- a/src/modules/rijndael/rijndael.h +++ b/src/modules/rijndael/rijndael.h @@ -49,7 +49,7 @@ // // -// This implementation works on 128 , 192 , 256 bit keys +// This implementation works on 128, 192, 256 bit keys // and on 128 bit blocks // @@ -107,14 +107,14 @@ typedef unsigned short UINT16; class Rijndael { public: - enum Direction { Encrypt , Decrypt }; - enum Mode { ECB , CBC , CFB1 }; - enum KeyLength { Key16Bytes , Key24Bytes , Key32Bytes }; + enum Direction { Encrypt, Decrypt }; + enum Mode { ECB, CBC, CFB1 }; + enum KeyLength { Key16Bytes, Key24Bytes, Key32Bytes }; Rijndael(); ~Rijndael(); protected: - enum State { Valid , Invalid }; + enum State { Valid, Invalid }; State m_state; Mode m_mode; diff --git a/src/modules/rot13/libkvirot13.cpp b/src/modules/rot13/libkvirot13.cpp index 8fc0a6fd3..bc9c894bf 100644 --- a/src/modules/rot13/libkvirot13.cpp +++ b/src/modules/rot13/libkvirot13.cpp @@ -162,9 +162,9 @@ static bool rot13_module_can_unload(KviModule *) KVIRC_MODULE( "ROT13 crypt engine", "4.0.0", - "Aeriana " , + "Aeriana ", "Exports the ROT13 text transformation engine", - rot13_module_init , + rot13_module_init, rot13_module_can_unload, 0, rot13_module_cleanup, diff --git a/src/modules/setup/libkvisetup.cpp b/src/modules/setup/libkvisetup.cpp index 22b08e329..ec01aba18 100644 --- a/src/modules/setup/libkvisetup.cpp +++ b/src/modules/setup/libkvisetup.cpp @@ -148,7 +148,7 @@ KVIRC_MODULE( "4.0.0", "Szymon Stefanek ", "First-time-run setup wizard", - setup_module_init , + setup_module_init, setup_module_can_unload, 0, setup_module_cleanup, diff --git a/src/modules/setup/setupwizard.cpp b/src/modules/setup/setupwizard.cpp index cf109ef3c..7f383d6c2 100644 --- a/src/modules/setup/setupwizard.cpp +++ b/src/modules/setup/setupwizard.cpp @@ -50,7 +50,7 @@ bool g_bFoundMirc; #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) #include #include // for MultiByteToWideChar - #include // CoCreateInstance , CoInitialize & CO. + #include // CoCreateInstance, CoInitialize & CO. #include // IShellLink IPersistFile & CO. #else #include // for symlink() @@ -796,7 +796,7 @@ void KviSetupWizard::makeLink() // You need this horrible snippet of code to create a shortcut!!!! // // you have to: - // - dig in the registry , + // - dig in the registry, // - trigger the entire COM subsystem // - bring up a couple of OLE interfaces.... // - use some obscure functions like MultiByteToWideChar @@ -840,7 +840,7 @@ void KviSetupWizard::makeLink() if(CoCreateInstance(CLSID_ShellLink,NULL,CLSCTX_INPROC_SERVER, IID_IShellLink,(void **)&psl) == S_OK) { - // just for fun , lookup another shell interface + // just for fun, lookup another shell interface IPersistFile* ppf; diff --git a/src/modules/sharedfile/libkvisharedfile.cpp b/src/modules/sharedfile/libkvisharedfile.cpp index 62c03d4ca..483c93f93 100644 --- a/src/modules/sharedfile/libkvisharedfile.cpp +++ b/src/modules/sharedfile/libkvisharedfile.cpp @@ -59,7 +59,7 @@ extern KVIRC_API KviSharedFilesManager * g_pSharedFilesManager; @description: Adds to the list of the active shared files. The users will be able to request the file via [cmd]dcc.get[/cmd]. - If [user_mask] is specified , the access to the file is limited + If [user_mask] is specified, the access to the file is limited to the users that match this mask, otherwise the mask will be automatically set to '*!*@*'.[br] If the 't' switch is used, the sharedfile will be removed after diff --git a/src/modules/sharedfileswindow/sharedfileswindow.cpp b/src/modules/sharedfileswindow/sharedfileswindow.cpp index b0a05320f..79e460005 100644 --- a/src/modules/sharedfileswindow/sharedfileswindow.cpp +++ b/src/modules/sharedfileswindow/sharedfileswindow.cpp @@ -208,7 +208,7 @@ KviSharedFilesTreeWidgetItem::~KviSharedFilesTreeWidgetItem() KviSharedFilesWindow::KviSharedFilesWindow(KviModuleExtensionDescriptor * d,KviFrame * lpFrm) -: KviWindow(KVI_WINDOW_TYPE_TOOL,lpFrm,"shared files window",0) , KviModuleExtension(d) +: KviWindow(KVI_WINDOW_TYPE_TOOL,lpFrm,"shared files window",0), KviModuleExtension(d) { g_pSharedFilesWindow = this; m_pSplitter = new KviTalSplitter(Qt::Horizontal,this); diff --git a/src/modules/sharedfileswindow/sharedfileswindow.h b/src/modules/sharedfileswindow/sharedfileswindow.h index 7ea97b770..31a67019d 100644 --- a/src/modules/sharedfileswindow/sharedfileswindow.h +++ b/src/modules/sharedfileswindow/sharedfileswindow.h @@ -74,7 +74,7 @@ protected slots: }; -class KviSharedFilesWindow : public KviWindow , public KviModuleExtension +class KviSharedFilesWindow : public KviWindow, public KviModuleExtension { friend class KviSharedFilesItem; Q_OBJECT diff --git a/src/modules/snd/libkvisnd.cpp b/src/modules/snd/libkvisnd.cpp index 1b51b83d9..5c2863f1e 100644 --- a/src/modules/snd/libkvisnd.cpp +++ b/src/modules/snd/libkvisnd.cpp @@ -505,7 +505,7 @@ void KviSoundThread::run() if(audiofd_c < 0) { qDebug("Could not open audio device /dev/dsp! [OSS+AUDIOFILE]"); - qDebug("(the device is probably busy , errno = %d)",errno); + qDebug("(the device is probably busy, errno = %d)",errno); goto exit_thread; } diff --git a/src/modules/socketspy/socketspywindow.cpp b/src/modules/socketspy/socketspywindow.cpp index 5bd914f6d..4feeb2ebe 100644 --- a/src/modules/socketspy/socketspywindow.cpp +++ b/src/modules/socketspy/socketspywindow.cpp @@ -35,7 +35,7 @@ extern KviPointerList * g_pSocketSpyWindowList; KviSocketSpyWindow::KviSocketSpyWindow(KviFrame * lpFrm,KviConsole * lpConsole) -: KviWindow(KVI_WINDOW_TYPE_SOCKETSPY,lpFrm,"socket_spy",lpConsole) , KviIrcDataStreamMonitor(lpConsole->context()) +: KviWindow(KVI_WINDOW_TYPE_SOCKETSPY,lpFrm,"socket_spy",lpConsole), KviIrcDataStreamMonitor(lpConsole->context()) { g_pSocketSpyWindowList->append(this); m_pSplitter = new KviTalSplitter(Qt::Horizontal,this); diff --git a/src/modules/str/libkvistr.cpp b/src/modules/str/libkvistr.cpp index b663bda54..862e33ff3 100644 --- a/src/modules/str/libkvistr.cpp +++ b/src/modules/str/libkvistr.cpp @@ -1150,7 +1150,7 @@ static bool str_kvs_fnc_match(KviKvsModuleFunctionCall * c) $str.word(,) @description: Returns the nth word inside the (with n starting from 0!)[br] - A word is a substring not containing spaces (ASCII chars 32, carriage returns , tabs etc...).[br] + A word is a substring not containing spaces (ASCII chars 32, carriage returns, tabs etc...).[br] If the string contains less than n+1 words then an empty string is returned.[br] This function is faster than a call to [fnc]split[/fnc]() and array indexing if you need a single word to be extracted from a complex string.[br] diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp index 247e870cc..7d0d4b5fb 100644 --- a/src/modules/system/libkvisystem.cpp +++ b/src/modules/system/libkvisystem.cpp @@ -612,7 +612,7 @@ static bool system_kvs_fnc_dbus(KviKvsModuleFunctionCall *c) system.setenv [] @description: Sets the enviroinement to the string.[br] - If is not given , the is unset.[br] + If is not given, the is unset.[br] @seealso: [fnc]$system.getenv[/fnc] */ diff --git a/src/modules/tip/libkvitip.cpp b/src/modules/tip/libkvitip.cpp index 2b36fdf09..bf872a037 100644 --- a/src/modules/tip/libkvitip.cpp +++ b/src/modules/tip/libkvitip.cpp @@ -241,7 +241,7 @@ void KviTipWindow::closeEvent(QCloseEvent *e) tip.open [tip_file_name:string] @description: Opens the "did you know..." tip window.
- If is specified , that tip is used instead of + If is specified, that tip is used instead of the default tips provided with kvirc.
must be a file name with no path and must refer to a standard KVIrc configuration file found in the global or local diff --git a/src/modules/torrent/tc_ktorrentdbusinterface.cpp b/src/modules/torrent/tc_ktorrentdbusinterface.cpp index 55506e2b6..537e828bf 100644 --- a/src/modules/torrent/tc_ktorrentdbusinterface.cpp +++ b/src/modules/torrent/tc_ktorrentdbusinterface.cpp @@ -238,7 +238,7 @@ return 0; } - QString KviKTorrentDBusInterface::fileName(int , int ) + QString KviKTorrentDBusInterface::fileName(int, int ) { /* CHECK_RANGE_STRING(i, m_ti.size()) @@ -254,7 +254,7 @@ return QString(); } - QString KviKTorrentDBusInterface::filePriority(int , int ) + QString KviKTorrentDBusInterface::filePriority(int, int ) { /* CHECK_RANGE_STRING(i, m_ti.size()) @@ -278,7 +278,7 @@ return QString(); } - bool KviKTorrentDBusInterface::setFilePriority(int , int , const QString &) + bool KviKTorrentDBusInterface::setFilePriority(int, int, const QString &) { /* CHECK_RANGE_BOOL(i, m_ti.size()) diff --git a/src/modules/trayicon/libkvitrayicon.cpp b/src/modules/trayicon/libkvitrayicon.cpp index 9d7a3aef4..b10f40e9a 100644 --- a/src/modules/trayicon/libkvitrayicon.cpp +++ b/src/modules/trayicon/libkvitrayicon.cpp @@ -155,23 +155,23 @@ void KviTrayIcon::flashingTimerShot() static const char * idlemsgs[NIDLEMSGS]= { - __tr("Nothing is happening...") , - __tr("Just idling...") , - __tr("Dum de dum de dum...") , - __tr("Hey man... do something!") , - __tr("Umpf!") , - __tr("Silence speaking") , - __tr("Are ya here?") , - __tr("The world has stopped?") , - __tr("Everything is all right") , - __tr("idle()") , - __tr("It's so cold here...") , - __tr("Do not disturb... watching TV") , - __tr("Just vegetating") , - __tr("Hey... are ya sure that your network is up?") , - __tr("Seems like the world has stopped spinning") , - __tr("This silence is freaking me out!") , - __tr("Mieeeeeowww!") , + __tr("Nothing is happening..."), + __tr("Just idling..."), + __tr("Dum de dum de dum..."), + __tr("Hey man... do something!"), + __tr("Umpf!"), + __tr("Silence speaking"), + __tr("Are ya here?"), + __tr("The world has stopped?"), + __tr("Everything is all right"), + __tr("idle()"), + __tr("It's so cold here..."), + __tr("Do not disturb... watching TV"), + __tr("Just vegetating"), + __tr("Hey... are ya sure that your network is up?"), + __tr("Seems like the world has stopped spinning"), + __tr("This silence is freaking me out!"), + __tr("Mieeeeeowww!"), __tr("idle idle idle idle!") }; @@ -550,7 +550,7 @@ static KviTrayIcon * trayicon_find(KviFrame *f) @short: Shows the dock widget for the current frame window @keyterms: - dock widget , system tray + dock widget, system tray @syntax: trayicon.show @description: @@ -561,12 +561,12 @@ static KviTrayIcon * trayicon_find(KviFrame *f) text in any console window, the square becomes red if the text is highlighted.[br] The bottom right square appears when there is some new text in any channel window, and it becomes red when the text is highlighted.[br] The upper right square refers to - query windows and the upper left one to any other kind of window (dcc , links...).[br] + query windows and the upper left one to any other kind of window (dcc, links...).[br] If you move the mouse over the dock widget a tooltip will show you the last lines of the "new" text in all these windows.[br] This is useful when you keep the main KVIrc window minimized and you're working on something else: - if the dock widget shows nothing but the earth icon , nothing is happening in the main KVIrc window. - If the dock widget shows one or more white (or red) squares , you can move the mouse over + if the dock widget shows nothing but the earth icon, nothing is happening in the main KVIrc window. + If the dock widget shows one or more white (or red) squares, you can move the mouse over and check what's happened exactly and eventually bring up the main KVIrc window by clicking on the widget.[br] [big]tecnical details[/big] The dock widget is currently working in KDE compilation mode only: @@ -650,7 +650,7 @@ static bool trayicon_kvs_cmd_hidewindow(KviKvsModuleCommandCall * c) @syntax: $reguser.isVisible() @description: - Returns 1 if the dock widget is actually visible , 0 otherwise. + Returns 1 if the dock widget is actually visible, 0 otherwise. @seealso: [cmd]trayicon.show[/cmd] */ @@ -733,7 +733,7 @@ KVIRC_MODULE( "Copyright (C) 2007 Alexey Uzhva " \ "Copyright (C) 2008 Elvio Basello ", "Exports the /trayicon.* interface\n", - trayicon_module_init , + trayicon_module_init, trayicon_module_can_unload, 0, trayicon_module_cleanup, diff --git a/src/modules/upnp/manager.cpp b/src/modules/upnp/manager.cpp index 8508db98a..8edb2b952 100644 --- a/src/modules/upnp/manager.cpp +++ b/src/modules/upnp/manager.cpp @@ -78,7 +78,7 @@ void Manager::initialize() // Create the SSDP object to detect devices m_pSsdpConnection = new SsdpConnection(); - connect(m_pSsdpConnection, SIGNAL( deviceFound(const QString&,int,const QString&) ) , + connect(m_pSsdpConnection, SIGNAL( deviceFound(const QString&,int,const QString&) ), this, SLOT( slotDeviceFound(const QString&,int,const QString&) ) ); // Create a timer diff --git a/src/modules/upnp/service.cpp b/src/modules/upnp/service.cpp index 00f656ba1..08b4f1fb8 100644 --- a/src/modules/upnp/service.cpp +++ b/src/modules/upnp/service.cpp @@ -58,7 +58,7 @@ Service::Service(const QString &hostname, int port, const QString &informationUr { m_szInformationUrl = informationUrl; m_pHttp = new QHttp(hostname, port); - connect(m_pHttp, SIGNAL( requestFinished(int,bool) ) , this, SLOT( slotRequestFinished(int,bool) ) ); + connect(m_pHttp, SIGNAL( requestFinished(int,bool) ), this, SLOT( slotRequestFinished(int,bool) ) ); qDebug() << "UPnP::Service: Created information service url='" << m_szInformationUrl << "'." << endl; } @@ -76,7 +76,7 @@ Service::Service(const ServiceParameters ¶ms) , m_iPort(params.port) { m_pHttp = new QHttp(params.hostname, params.port); - connect(m_pHttp, SIGNAL( requestFinished(int,bool) ) , this, SLOT( slotRequestFinished(int,bool) ) ); + connect(m_pHttp, SIGNAL( requestFinished(int,bool) ), this, SLOT( slotRequestFinished(int,bool) ) ); qDebug() << "CREATED UPnP::Service: url='" << m_szControlUrl << "' id='" << m_szServiceId << "'." << endl; } @@ -116,8 +116,8 @@ int Service::callActionInternal(const QString &actionName, const QMap", "url list module for KVIrc", url_module_init, diff --git a/src/modules/window/libkviwindow.cpp b/src/modules/window/libkviwindow.cpp index d823c55b8..c28799804 100644 --- a/src/modules/window/libkviwindow.cpp +++ b/src/modules/window/libkviwindow.cpp @@ -874,7 +874,7 @@ static bool window_kvs_cmd_listtypes(KviKvsModuleCommandCall * c) See [cmd]window.listtypes[/cmd] for a list of available window types in this KVIrc release.[br] If is the special word 'all', all the window types are listed.[br] specifies the irc context in which the windows are searched.[br] - If no is specified , the current one is used.[br] + If no is specified, the current one is used.[br] If is the special word 'all', all the irc context are searched.[br] If is the special word 'none' then only windows not belonging to any irc context are listed.[br] @@ -899,7 +899,7 @@ static bool window_kvs_cmd_listtypes(KviKvsModuleCommandCall * c) [comment]# List all the user windows created with $window.open[/comment] [comment]# They may either belong to an irc context or not[/comment] [cmd]echo[/cmd] $window.list(userwnd,any) - [comment]# Ok , let's use it[/comment] + [comment]# Ok, let's use it[/comment] [comment]# A nice alias that allows iterating commands through all the consoles[/comment] [comment]# Note the array returned by $window.list[/comment] [comment]# This is by LatinSuD :)[/comment] -- cgit v1.3.1-10-gc9f91