summaryrefslogtreecommitdiffstats
path: root/src/modules/objects
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:06:29 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:06:29 -0600
commit2dd6d32bd821b303aa7b25edda76d1ef7c14b2bf (patch)
tree9cf20f45e85e8192ae89b22807cf1e82e5012cd9 /src/modules/objects
parentf91149819be7e7f45e68f22876f3c0062a11d4b9 (diff)
downloadkvirc-2dd6d32bd821b303aa7b25edda76d1ef7c14b2bf.tar.gz
kvirc-2dd6d32bd821b303aa7b25edda76d1ef7c14b2bf.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'src/modules/objects')
-rw-r--r--src/modules/objects/class_buttongroup.cpp4
-rw-r--r--src/modules/objects/class_dockwindow.cpp4
-rw-r--r--src/modules/objects/class_groupbox.cpp24
-rw-r--r--src/modules/objects/class_hbox.cpp2
-rw-r--r--src/modules/objects/class_layout.cpp42
-rw-r--r--src/modules/objects/class_painter.cpp2
-rw-r--r--src/modules/objects/class_popupmenu.cpp2
-rw-r--r--src/modules/objects/class_process.cpp2
-rw-r--r--src/modules/objects/class_tabwidget.cpp6
-rw-r--r--src/modules/objects/class_vbox.cpp2
-rw-r--r--src/modules/objects/class_widget.cpp10
-rw-r--r--src/modules/objects/class_workspace.cpp2
12 files changed, 51 insertions, 51 deletions
diff --git a/src/modules/objects/class_buttongroup.cpp b/src/modules/objects/class_buttongroup.cpp
index 0a4f58a7..96ecc40c 100644
--- a/src/modules/objects/class_buttongroup.cpp
+++ b/src/modules/objects/class_buttongroup.cpp
@@ -48,8 +48,8 @@
@description:
This widget organizes buttons in a group.
It will be usually a parent for other child controls.
- You can either use a child tqlayout to manage the children geometries
- or use $setColumnLayout function to manage the tqlayout automatically.
+ You can either use a child layout to manage the children geometries
+ or use $setColumnLayout function to manage the layout automatically.
The class ineriths groupbox.
@functions:
diff --git a/src/modules/objects/class_dockwindow.cpp b/src/modules/objects/class_dockwindow.cpp
index 852db9dc..c0942a67 100644
--- a/src/modules/objects/class_dockwindow.cpp
+++ b/src/modules/objects/class_dockwindow.cpp
@@ -49,11 +49,11 @@
[class]widget[/class]
@description:
A window dockable to the KVIrc main frame borders (like a toolbar).
- The window has an implicit tqlayout that will automatically manage
+ The window has an implicit layout that will automatically manage
the children depending on the dock window's orientation.
@functions:
!fn: $addWidget(<widget:hobject>)
- Adds <widget> to the internal tqlayout of this dock window.[br]
+ Adds <widget> to the internal layout of this dock window.[br]
The widget must be a child of this dock window (otherwise strange things may happen).
!fn: <string> $orientation()
Returns the string "vertical" or "horizontal" depending on the orientation of this dock window.
diff --git a/src/modules/objects/class_groupbox.cpp b/src/modules/objects/class_groupbox.cpp
index a1f5c11f..7c011403 100644
--- a/src/modules/objects/class_groupbox.cpp
+++ b/src/modules/objects/class_groupbox.cpp
@@ -60,8 +60,8 @@ const int align_cod[] = {
@description:
This widget can be used to display a groupbox.
It will be usually a parent for other child controls.
- You can either use a child tqlayout to manage the children geometries
- or use $setColumnLayout to manage the tqlayout automatically.
+ You can either use a child layout to manage the children geometries
+ or use $setColumnLayout to manage the layout automatically.
@functions:
!fn: $setTitle(<text:String>)
Sets the group box title to <text>.
@@ -96,7 +96,7 @@ const int align_cod[] = {
!fn: $setOrientation<orientation:string>
Sets the group box's orientation. Valid values are:Qt::Horizontal,Qt::Vertical.
!fn: $setColumnLayout(<columns:integer>,<orientation:string>)
- Enables the automatic tqlayout management. The children are arranged in n columns with the specified orientation.[br]
+ Enables the automatic layout management. The children are arranged in n columns with the specified orientation.[br]
Valid values for <orientation> are:Qt::Horizontal,Qt::Vertical.
@examples:
[example]
@@ -120,16 +120,16 @@ const int align_cod[] = {
%inputpass->$setechomode("password")[br]
[br]
#now lets' layouting the groupbox's element's.[br]
- %layoutgb=$new(tqlayout,%gb)[br]
+ %layoutgb=$new(layout,%gb)[br]
%layoutgb->$setmargin(20)[br]
%layoutgb->$addwidget(%labeluser,0,0)[br]
%layoutgb->$addwidget(%labelpass,1,0)[br]
%layoutgb->$addwidget(%inputuser,0,1)[br]
%layoutgb->$addwidget(%inputpass,1,1)[br]
[br]
- # now we create a fake widget and managing the two buttons tqlayout.[br]
+ # now we create a fake widget and managing the two buttons layout.[br]
%fakewidget=$new(widget,%widget)[br]
- %layoutbtn=$new(tqlayout,%fakewidget)[br]
+ %layoutbtn=$new(layout,%fakewidget)[br]
%btnok=$new(button,%fakewidget)[br]
%btnok->$settext("OK")[br]
%btncancel=$new(button,%fakewidget)[br]
@@ -137,13 +137,13 @@ const int align_cod[] = {
%layoutbtn->$addwidget(%btnok,0,0)[br]
%layoutbtn->$addwidget(%btncancel,0,1)[br]
[br]
- #And finally we create a main tqlayout with the groupbox (and its "children")[br]
+ #And finally we create a main layout with the groupbox (and its "children")[br]
#and fakewiget (with its buttons children).
- %maintqlayout=$new(tqlayout,%widget)[br]
- %maintqlayout->$setspacing(10)[br]
- %maintqlayout->$setmargin(10)[br]
- %maintqlayout->$addwidget(%gb,0,0)[br]
- %maintqlayout->$addwidget(%fakewidget,1,0)[br]
+ %mainlayout=$new(layout,%widget)[br]
+ %mainlayout->$setspacing(10)[br]
+ %mainlayout->$setmargin(10)[br]
+ %mainlayout->$addwidget(%gb,0,0)[br]
+ %mainlayout->$addwidget(%fakewidget,1,0)[br]
[br]
#Let's show our nice login request =D ! [br]
%widget->$show()[br]
diff --git a/src/modules/objects/class_hbox.cpp b/src/modules/objects/class_hbox.cpp
index 0f6ae24c..21167be1 100644
--- a/src/modules/objects/class_hbox.cpp
+++ b/src/modules/objects/class_hbox.cpp
@@ -44,7 +44,7 @@
!fn: $setSpacing(<spacing:uint>)
Sets the default spacing of the widgets in pixels
!fn: $setMargin(<margin:uint>)
- Sets the dimension of the tqlayout margin : the distance from the border to the outermost child widget edges.
+ Sets the dimension of the layout margin : the distance from the border to the outermost child widget edges.
!fn: $setStretchFactor(<widget:hobject>,<stretch:uint>)
Sets the stretch factor of widget to stretch.
*/
diff --git a/src/modules/objects/class_layout.cpp b/src/modules/objects/class_layout.cpp
index 5caac1d9..7b2d252d 100644
--- a/src/modules/objects/class_layout.cpp
+++ b/src/modules/objects/class_layout.cpp
@@ -40,11 +40,11 @@
/*
- @doc: tqlayout
+ @doc: layout
@keyterms:
- tqlayout object class, child widgets
+ layout object class, child widgets
@title:
- tqlayout class
+ layout class
@type:
class
@short:
@@ -52,25 +52,25 @@
@inherits:
[class]object[/class]
@description:
- The tqlayout is a geometry management tool for child widgets.
- You create a tqlayout , give it some widgets to manage and it will tqlayout them
+ 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
automatically.[br]
- The parent of the tqlayout must be the widget for which child widget geometries have to be managed.
- A tqlayout is a grid of NxM cells in which you insert child widgets with [classfnc:tqlayout]$addWidget[/classfnc]().[br]
- Widgets that must span multiple cells can be added to the tqlayout with [classfnc:tqlayout]$addMultiCellWidget[/classfnc]().[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]
+ Widgets that must span multiple cells can be added to the layout with [classfnc:layout]$addMultiCellWidget[/classfnc]().[br]
@functions:
!fn: $addWidget(<widget:object widget>,<row:uint>,<column:uint>)
- Adds a widget to this tqlayout placing it at position <row>,<column> in the grid
+ Adds a widget to this layout placing it at position <row>,<column> in the grid
!fn: $addMultiCellWidget(<widget:object widget>,<start_row:uint>,<end_row:uint>,<start_col:uint>,<end_col:uint>)
- Adds a widget to this tqlayout spanning multiple grid cells
+ Adds a widget to this layout spanning multiple grid cells
!fn: $setRowStretch(<row:uint>,<stretch:uint>)
- Sets the stretch value for a particular row of this tqlayout. The <stretch_value>
+ Sets the stretch value for a particular row of this layout. The <stretch_value>
must be a positive integer. The rows with bigger stretch values will take more space
- in the tqlayout.
+ in the layout.
!fn: $setColStretch(<column:uint>,<stretch:uint>)
- Sets the stretch value for a particular column in this tqlayout. The <stretch_value>
+ Sets the stretch value for a particular column in this layout. The <stretch_value>
must be a positive integer. The rows with bigger stretch values will take more space
- in the tqlayout.
+ in the layout.
!fn: $addRowSpacing(<row:uint>,<spacing:uint>)
Sets the minimum height of the specified <row> to <spacing> which must be a positive integer
!fn: $addColSpacing(<column:uint>,<spacing:uint>)
@@ -78,18 +78,18 @@
!fn: $setSpacing(<spacing:uint>)
Sets the default spacing of the widgets in pixels
!fn: $setMargin(<margin:uint>)
- Sets the dimension of the tqlayout margin : the distance from the border to the outermost child widget edges.
+ Sets the dimension of the layout margin : the distance from the border to the outermost child widget edges.
!fn: $setResizeMode(<resize_mode:string>)
- Sets the resize mode of the parent widget in relation to this tqlayout.
+ Sets the resize mode of the parent widget in relation to this layout.
<mode> can be one of:[br]
-Auto: this is the default[br]
- -Fixed: the parent widget of this tqlayout is resized to the "sizeHint" value and it cannot be resized by the user.[br]
- -Minimum: the minimum size of the parent widget of this tqlayout is set to minimumSize() and it cannot be smaller[br]
- -FreeResize: the parent widget of this tqlayout is not constrained at all[br]
+ -Fixed: the parent widget of this layout is resized to the "sizeHint" value and it cannot be resized by the user.[br]
+ -Minimum: the minimum size of the parent widget of this layout is set to minimumSize() and it cannot be smaller[br]
+ -FreeResize: the parent widget of this layout is not constrained at all[br]
*/
-KVSO_BEGIN_REGISTERCLASS(KviKvsObject_layout,"tqlayout","object")
+KVSO_BEGIN_REGISTERCLASS(KviKvsObject_layout,"layout","object")
KVSO_REGISTER_HANDLER(KviKvsObject_layout,"addWidget", functionAddWidget)
KVSO_REGISTER_HANDLER(KviKvsObject_layout,"addMultiCellWidget", functionAddMultiCellWidget)
KVSO_REGISTER_HANDLER(KviKvsObject_layout,"setRowStretch", functionSetRowStretch)
@@ -116,7 +116,7 @@ bool KviKvsObject_layout::init(KviKvsRunTimeContext * pContext,KviKvsVariantList
if(!w)
{
- pContext->warning(__tr2qs("The parent of a tqlayout must be a widget!"));
+ pContext->warning(__tr2qs("The parent of a layout must be a widget!"));
return false;
}
setObject(TQT_TQOBJECT(new TQGridLayout(w)));
diff --git a/src/modules/objects/class_painter.cpp b/src/modules/objects/class_painter.cpp
index 81cc3f6a..09499455 100644
--- a/src/modules/objects/class_painter.cpp
+++ b/src/modules/objects/class_painter.cpp
@@ -323,7 +323,7 @@
}[br]
}[br]
[br]
- %lay=$new(tqlayout,%Hello)[br]
+ %lay=$new(layout,%Hello)[br]
%lay->$addwidget(%Btn,4,0)[br]
%Hello->$setBackgroundColor("000000");[br]
%Hello->$setmaximumwidth(800)[br]
diff --git a/src/modules/objects/class_popupmenu.cpp b/src/modules/objects/class_popupmenu.cpp
index 8f1afd74..cb9c3bba 100644
--- a/src/modules/objects/class_popupmenu.cpp
+++ b/src/modules/objects/class_popupmenu.cpp
@@ -89,7 +89,7 @@
{[br]
#Geometry of the widget and setting-up of popupmenu [br]
$$->$setGeometry(%X,%Y,100,100)[br]
- $$->%lay=$new(tqlayout,$$)[br]
+ $$->%lay=$new(layout,$$)[br]
#Here we generate a cicle to create our labels inside the widget.[br]
%i=0[br]
while (%i<10)[br]
diff --git a/src/modules/objects/class_process.cpp b/src/modules/objects/class_process.cpp
index 9ec6cc5a..1c45ed43 100644
--- a/src/modules/objects/class_process.cpp
+++ b/src/modules/objects/class_process.cpp
@@ -82,7 +82,7 @@
%tt=$new(test)[br]
%A=$new(widget)[br]
%A->$setGeometry(100,100,400,300)[br]
- %layoutA=$new(tqlayout,%A)[br]
+ %layoutA=$new(layout,%A)[br]
%Ainput=$new(lineedit,%A)[br]
#%Aoutput=$new(textedit,%A)// coming soon in the new texteditor class[br]
%Aoutput=$new(label,%A)[br]
diff --git a/src/modules/objects/class_tabwidget.cpp b/src/modules/objects/class_tabwidget.cpp
index fc221880..3b768217 100644
--- a/src/modules/objects/class_tabwidget.cpp
+++ b/src/modules/objects/class_tabwidget.cpp
@@ -94,7 +94,7 @@
%secondtab=$new(widget,%Tabwidget)
# Now we'll create the item to put in to tab's pages.
- %layoutfirsttab=$new(tqlayout,%firsttab)
+ %layoutfirsttab=$new(layout,%firsttab)
%labelbt=$new(label,%firsttab)
%labelbt->$settext(Botton Tab)
%labeltt=$new(label,%firsttab)
@@ -104,7 +104,7 @@
%buttontt=$new(button,%firsttab)
%buttontt->$settext("To &Top")
- # Now we'll give a tqlayout to all items.
+ # Now we'll give a layout to all items.
# This also allows to use privateimpl without making buttons global variables
%layoutfirsttab->$addwidget(%labelbt,0,0)
%layoutfirsttab->$addwidget(%labeltt,0,1)
@@ -125,7 +125,7 @@
}
# We do the same work with the second tab's page.
- %layoutsecondtab=$new(tqlayout,%secondtab)
+ %layoutsecondtab=$new(layout,%secondtab)
%labelwp=$new(label,%secondtab)
%labelwp->$settext("Enjoy the new Class provided by")
%layoutsecondtab->$addwidget(%labelwp,0,0)
diff --git a/src/modules/objects/class_vbox.cpp b/src/modules/objects/class_vbox.cpp
index bfc8014c..0019f000 100644
--- a/src/modules/objects/class_vbox.cpp
+++ b/src/modules/objects/class_vbox.cpp
@@ -44,7 +44,7 @@
!fn: $setSpacing(<spacing:int>)
Sets the default spacing of the widgets in pixels
!fn: $setMargin(<margin:int>)
- Sets the dimension of the tqlayout margin : the distance from the border to the outermost child widget edges.
+ Sets the dimension of the layout margin : the distance from the border to the outermost child widget edges.
!fn: $setStretchFactor(<widget:hobject>,<stretch:uint>)
Sets the stretch factor of widget to stretch.
*/
diff --git a/src/modules/objects/class_widget.cpp b/src/modules/objects/class_widget.cpp
index 83d56081..644999a5 100644
--- a/src/modules/objects/class_widget.cpp
+++ b/src/modules/objects/class_widget.cpp
@@ -167,19 +167,19 @@ const int widgettypes_cod[] = {
!fn: $setMinimumWidth(<value>)
Sets the minimum width of this widget to <value>.
The user will not be able to resize the widget to a smaller
- value. This value is also used by the [class:tqlayout]tqlayout class[/class].
+ value. This value is also used by the [class:layout]layout class[/class].
!fn: $setMinimumHeight(<value>)
Sets the minimum height of this widget to <value>.
The user will not be able to resize the widget to a smaller
- value. This value is also used by the [class:tqlayout]tqlayout class[/class].
+ value. This value is also used by the [class:layout]layout class[/class].
!fn: $setMaximumWidth(<value>)
Sets the maximum width of this widget to <value>.
The user will not be able to resize the widget to a bigger
- value. This value is also used by the [class:tqlayout]tqlayout class[/class].
+ value. This value is also used by the [class:layout]layout class[/class].
!fn: $setMaximumHeight(<value>)
Sets the maximum height of this widget to <value>.
The user will not be able to resize the widget to a bigger
- value. This value is also used by the [class:tqlayout]tqlayout class[/class].
+ value. This value is also used by the [class:layout]layout class[/class].
!fn: $move(<x_or_array>[,<y>])
Moves this widget to the coordinate <x> and <y> relative to its
parent widget (or the desktop if this widget is a toplevel one).
@@ -1616,7 +1616,7 @@ bool KviKvsObject_widget::function_addWidgetToWrappedLayout(KviKvsObjectFunction
c->warning(__tr2qs("Widget parameter is not a valid object"));
return true;
}
- TQLayout *lay=widget()->tqlayout();
+ TQLayout *lay=widget()->layout();
if (!lay)
{
c->warning(__tr2qs("No Layout associated to the widget "));
diff --git a/src/modules/objects/class_workspace.cpp b/src/modules/objects/class_workspace.cpp
index 48092775..4f178024 100644
--- a/src/modules/objects/class_workspace.cpp
+++ b/src/modules/objects/class_workspace.cpp
@@ -110,7 +110,7 @@
constructor[br]
{[br]
$$->$setGeometry(%X,%Y,100,100)[br]
- $$->%lay=$new(tqlayout,$$)[br]
+ $$->%lay=$new(layout,$$)[br]
%i=0[br]
while (%i<10)[br]
{[br]