From 6d86b51b1030208d99649829cea96de0b64b5ed7 Mon Sep 17 00:00:00 2001 From: Noldor Date: Wed, 2 Sep 2009 15:56:45 +0000 Subject: Some fix in code and doc + removed obsolete code git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3466 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_dockwindow.cpp | 45 ++++++++------------------------ 1 file changed, 11 insertions(+), 34 deletions(-) (limited to 'src/modules/objects/class_dockwindow.cpp') diff --git a/src/modules/objects/class_dockwindow.cpp b/src/modules/objects/class_dockwindow.cpp index 70cbaeaf1..e15c2186f 100644 --- a/src/modules/objects/class_dockwindow.cpp +++ b/src/modules/objects/class_dockwindow.cpp @@ -4,7 +4,7 @@ // Creation date : Thu 29 Dec 2005 23:45:11 by Szymon Stefanek // // This file is part of the KVIrc IRC Client distribution -// Copyright (C) 2005-2008 Szymon Stefanek +// Copyright (C) 2005-2009 Szymon Stefanek // // This program is FREE software. You can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -33,7 +33,7 @@ #include /* - @doc: dockwindow + @doc: dockwindow @title: dockwindow class @type: @@ -47,27 +47,21 @@ A window dockable to the KVIrc main frame borders (like a toolbar). @functions: !fn: $addWidget() - Adds 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: $resizeEnabled() - Returns $true if resizing of this window is enabled and false otherwise. - !fn: $setResizeEnabled() - Enabled or disabled resizing of this window. - !fn: $setAllowedDockAreas() - Sets the allowed main window dock areas for this dock window.[br] - must be a combination of "l","r","t","b","f" and "m".[br] - "l" stands for left dock area, "r" stands for right dock area, "t" stands for the top dock areas, "b" stands for the bottom dock area, "f" stands for "floating" and "m" for "minimized".[br] - If a flag is present then the related block area is enabled,otherwise it is disabled. + Adds 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: $setAllowedDockAreas() + Sets the allowed main window dock areas for this dock window.[br] + must be a combination of "l","r","t","b","f" and "m".[br] + "l" stands for left dock area, "r" stands for right dock area, "t" stands for the top dock areas, "b" stands for the bottom dock area, "f" stands for "floating" and "m" for "minimized".[br] + If a flag is present then the related block area is enabled,otherwise it is disabled. !fn: $dock() - Docks this dock window to the specified dockarea of the main KVIrc window which can be one of "l" (left dock area), "t" (top dock area), "r" (right dock area), "b" (bottom dock area), "f" (floating) and "m" (minimized). + Docks this dock window to the specified dockarea of the main KVIrc window which can be one of "l" (left dock area), "t" (top dock area), "r" (right dock area), "b" (bottom dock area), "f" (floating) and "m" (minimized). */ KVSO_BEGIN_REGISTERCLASS(KviKvsObject_dockwindow,"dockwindow","widget") KVSO_REGISTER_HANDLER_BY_NAME(KviKvsObject_dockwindow,addWidget) - KVSO_REGISTER_HANDLER_BY_NAME(KviKvsObject_dockwindow,resizeEnabled) - KVSO_REGISTER_HANDLER_BY_NAME(KviKvsObject_dockwindow,setResizeEnabled) - KVSO_REGISTER_HANDLER_BY_NAME(KviKvsObject_dockwindow,setAllowedDockAreas) + KVSO_REGISTER_HANDLER_BY_NAME(KviKvsObject_dockwindow,setAllowedDockAreas) KVSO_REGISTER_HANDLER_BY_NAME(KviKvsObject_dockwindow,dock) KVSO_END_REGISTERCLASS(KviKvsObject_dockwindow) @@ -130,24 +124,7 @@ KVSO_CLASS_FUNCTION(dockwindow,addWidget) _pDockWindow->setWidget((QWidget *)(pWidget->object())); return true; } -// Fix me -KVSO_CLASS_FUNCTION(dockwindow,resizeEnabled) -{ - CHECK_INTERNAL_POINTER(widget()) - c->returnValue()->setBoolean(false); - return true; -} -// Fix me -KVSO_CLASS_FUNCTION(dockwindow,setResizeEnabled) -{ - CHECK_INTERNAL_POINTER(widget()) - bool bResizeEnabled; - KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bResizeEnabled) - KVSO_PARAMETERS_END(c) - return true; -} KVSO_CLASS_FUNCTION(dockwindow,setAllowedDockAreas) { -- cgit v1.3.1-10-gc9f91