![]() |
![]() |
dockwindow class A window dockable to the KVIrc main frame |
||||||
Inherits |
||||||
object widget | ||||||
Description |
||||||
A window dockable to the KVIrc main frame borders (like a toolbar). | ||||||
Functions |
||||||
|
||||||
Examples |
||||||
%dock = $new(dockwindow)
%dock->$setWindowTitle("This is the dock window title")
%dock->$setAllowedDockAreas("l","f")
%widget = $new(widget, %dock)
%dock->$addWidget(%widget)
%box=$new(vbox,%widget)
%layout=$new(layout,%widget)
%layout->$addWidget(%box,0,0)
%label = $new(label,%box)
%label->$setText("This is a text label")
%lineedit = $new(lineedit,%box)
%lineedit->$setText("This is a lineedit")
%button = $new(button, %box)
%button->$setText("Close me")
privateimpl(%dock,closeMe)
{
delete $$
}
objects.connect %button clicked %dock closeMe
%dock->$show()
|