You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.9 KiB
103 lines
3.9 KiB
14 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
|
// module kmdi version KDE 3.5.3
|
||
|
|
||
|
|
||
|
// This software is free software; you can redistribute it and/or
|
||
|
// modify it under the terms of the GNU General Public License as
|
||
|
// published by the Free Software Foundation; either version 2 of
|
||
|
// the License, or (at your option) any later version.
|
||
|
//
|
||
|
// This software is distributed in the hope that it will be useful,
|
||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// GNU General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
|
|
||
|
class KMdiChildArea : QFrame
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kmdichildarea.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
//ig QPtrList<KMdiChildFrm>* m_pZ;
|
||
|
QSize m_defaultChildFrmSize;
|
||
|
|
||
|
protected:
|
||
|
|
||
|
public:
|
||
|
KMdiChildArea (QWidget*);
|
||
|
void manageChild (KMdiChildFrm*, bool = 1, bool = 1);
|
||
|
void destroyChild (KMdiChildFrm*, bool = 1);
|
||
|
void destroyChildButNotItsView (KMdiChildFrm*, bool = 1);
|
||
|
void setTopChild (KMdiChildFrm*, bool = 0);
|
||
|
KMdiChildFrm* topChild () const;
|
||
|
int getVisibleChildCount () const;
|
||
|
QPoint getCascadePoint (int = -1);
|
||
|
void setMdiCaptionFont (const QFont&);
|
||
|
void setMdiCaptionActiveForeColor (const QColor&);
|
||
|
void setMdiCaptionActiveBackColor (const QColor&);
|
||
|
void setMdiCaptionInactiveForeColor (const QColor&);
|
||
|
void setMdiCaptionInactiveBackColor (const QColor&);
|
||
|
static void getCaptionColors (const QPalette&, QColor&, QColor&, QColor&, QColor&);
|
||
|
|
||
|
public slots:
|
||
|
void cascadeWindows ();
|
||
|
void cascadeMaximized ();
|
||
|
void expandVertical ();
|
||
|
void expandHorizontal ();
|
||
|
void focusTopChild ();
|
||
|
void tilePragma ();
|
||
|
void tileAnodine ();
|
||
|
void tileVertically ();
|
||
|
void layoutMinimizedChildren ();
|
||
|
|
||
|
protected:
|
||
|
void tileAllInternal (int);
|
||
|
virtual void resizeEvent (QResizeEvent*);
|
||
|
void mousePressEvent (QMouseEvent*);
|
||
|
void childMinimized (KMdiChildFrm*, bool);
|
||
|
|
||
|
signals:
|
||
|
void noMaximizedChildFrmLeft (KMdiChildFrm*);
|
||
|
void nowMaximized (bool);
|
||
|
void sysButtonConnectionsMustChange (KMdiChildFrm*, KMdiChildFrm*);
|
||
|
void popupWindowMenu (QPoint);
|
||
|
void lastChildFrmClosed ();
|
||
|
|
||
|
//force
|
||
|
%ConvertToSubClassCode
|
||
|
// The table of Python class objects indexed by their names. The table
|
||
|
// must be sorted by name.
|
||
|
|
||
|
static sipStringTypeClassMap map[] = {
|
||
|
{sipName_KMdiChildArea, &sipClass_KMdiChildArea},
|
||
|
{sipName_KMdiChildFrm, &sipClass_KMdiChildFrm},
|
||
|
{sipName_KMdiChildView, &sipClass_KMdiChildView},
|
||
|
{sipName_KMdiChildFrmCaption, &sipClass_KMdiChildFrmCaption},
|
||
|
{sipName_KMdiMainFrm, &sipClass_KMdiMainFrm},
|
||
|
{sipName_KMdiTaskBar, &sipClass_KMdiTaskBar},
|
||
|
{sipName_KMdiTaskBarButton, &sipClass_KMdiTaskBarButton},
|
||
|
{sipName_KMdiToolViewAccessor, &sipClass_KMdiToolViewAccessor},
|
||
|
{sipName_KMdiWin32IconButton, &sipClass_KMdiWin32IconButton},
|
||
|
};
|
||
|
|
||
|
sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0]));
|
||
|
%End
|
||
|
//end
|
||
|
|
||
|
}; // class KMdiChildArea
|
||
|
|