aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-08-31 09:10:41 +0000
committerGravatar Fabio Bas2010-08-31 09:10:41 +0000
commitc8ba5d212c9da7d11f08684c5d244cfaad4d0032 (patch)
treeed21d44e601fd369c5830bf7c445879ed3ebc5a0 /src/modules/objects
parentsome fix for OnHighlight doc (diff)
downloadKVIrc-c8ba5d212c9da7d11f08684c5d244cfaad4d0032.tar.gz
KVIrc-c8ba5d212c9da7d11f08684c5d244cfaad4d0032.tar.bz2
KVIrc-c8ba5d212c9da7d11f08684c5d244cfaad4d0032.zip
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
Diffstat (limited to 'src/modules/objects')
-rw-r--r--src/modules/objects/class_buttongroup.h2
-rw-r--r--src/modules/objects/class_ftp.cpp2
-rw-r--r--src/modules/objects/class_groupbox.cpp2
-rw-r--r--src/modules/objects/class_layout.cpp2
-rw-r--r--src/modules/objects/class_multilineedit.cpp18
-rw-r--r--src/modules/objects/class_socket.cpp18
-rw-r--r--src/modules/objects/class_sql.cpp2
-rw-r--r--src/modules/objects/class_widget.cpp14
-rw-r--r--src/modules/objects/class_workspace.cpp2
9 files changed, 31 insertions, 31 deletions
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<int ,KviKvsObject > btnDict;
+ KviPointerHashTable<int, KviKvsObject > 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 @@
<host> 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 <port> parameter
+ 0 otherwise.[br] In fact, this function returns 0 only if the supplied <port> parameter
is invalid or the socket is in an incoherent state (already connected or listening):
for a newly created socket and with a valid <port> 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([<port>[,<interface>[,<force_ipv6>]]])
Attempts to listen on the specified <port> and <interface>.[br]
- If <port> is not passed it is assumed to be 0 , if <interface> is not passed , it is assumed to be
+ If <port> is not passed it is assumed to be 0, if <interface> 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 <interface> is recognized as IPV6 address , and IPV6 is supported , the socket listens
+ If the <interface> is recognized as IPV6 address, and IPV6 is supported, the socket listens
in IPV6 mode. If <interface> is an empty string and <force_ipv6> 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(<socketId>)
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(<connection_name:string>)
- Sets the query for the database connection <connection_name> , which has to be already connected, as current query.
+ Sets the query for the database connection <connection_name>, which has to be already connected, as current query.
!fn: <connection_name:string> $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(<connection_name:string>)
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 <width> and height to <height>.
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(<bool>)
Sets the widget state to enabled or disabled if <bool> 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(<rgb(hex string)_array(red:integer,green:integer,blue_integer)_or_red>,[geen:integer],[blue:integer])
Sets the background color of this widget to <rgb_value>: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;