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.
181 lines
3.3 KiB
181 lines
3.3 KiB
// This is the SIP interface definition for TQFrame.
|
|
//
|
|
// Copyright (c) 2007
|
|
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
|
//
|
|
// This file is part of PyTQt.
|
|
//
|
|
// This copy of PyTQt 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, or (at your option) any later
|
|
// version.
|
|
//
|
|
// PyTQt is supplied 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
|
|
// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
|
|
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
%ExportedDoc
|
|
<Sect2><Title>TQFrame</Title>
|
|
<Para>
|
|
<Literal>TQFrame</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
%End
|
|
|
|
|
|
class TQFrame : TQWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qframe.h>
|
|
%End
|
|
|
|
public:
|
|
%If (- TQt_3_0_0)
|
|
TQFrame(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
|
|
bool = 1);
|
|
%End
|
|
%If (TQt_3_0_0 -)
|
|
TQFrame(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
|
|
%End
|
|
|
|
int frameStyle() const;
|
|
%If (- TQt_2_00)
|
|
void setFrameStyle(int);
|
|
%End
|
|
%If (TQt_2_00 -)
|
|
virtual void setFrameStyle(int);
|
|
%End
|
|
|
|
int frameWidth() const;
|
|
TQRect contentsRect() const;
|
|
|
|
%If (- TQt_2_00)
|
|
bool lineShapesOk() const;
|
|
%End
|
|
|
|
TQSize sizeHint() const;
|
|
%If (TQt_2_00 - TQt_3_0_0)
|
|
TQSizePolicy sizePolicy() const;
|
|
%End
|
|
|
|
%If (- TQt_2_00)
|
|
enum {
|
|
NoFrame,
|
|
Box,
|
|
Panel,
|
|
WinPanel,
|
|
HLine,
|
|
VLine,
|
|
MShape,
|
|
Plain,
|
|
Raised,
|
|
Sunken,
|
|
MShadow
|
|
};
|
|
%End
|
|
%If (TQt_2_00 -)
|
|
enum Shape {
|
|
NoFrame,
|
|
Box,
|
|
Panel,
|
|
WinPanel,
|
|
HLine,
|
|
VLine,
|
|
StyledPanel,
|
|
PopupPanel,
|
|
%If (TQt_3_0_0 -)
|
|
MenuBarPanel,
|
|
ToolBarPanel,
|
|
%End
|
|
%If (TQt_3_0_1 -)
|
|
LineEditPanel,
|
|
TabWidgetPanel,
|
|
%End
|
|
%If (TQt_3_1_0 -)
|
|
GroupBoxPanel,
|
|
%End
|
|
MShape
|
|
};
|
|
%End
|
|
|
|
%If (TQt_2_00 -)
|
|
enum Shadow {
|
|
Plain,
|
|
Raised,
|
|
Sunken,
|
|
MShadow
|
|
};
|
|
%End
|
|
|
|
%If (- TQt_2_00)
|
|
int frameShape() const;
|
|
%End
|
|
%If (TQt_2_00 -)
|
|
Shape frameShape() const;
|
|
void setFrameShape(Shape);
|
|
%End
|
|
%If (- TQt_2_00)
|
|
int frameShadow() const;
|
|
%End
|
|
%If (TQt_2_00 -)
|
|
Shadow frameShadow() const;
|
|
void setFrameShadow(Shadow);
|
|
%End
|
|
|
|
int lineWidth() const;
|
|
%If (- TQt_2_00)
|
|
void setLineWidth(int);
|
|
%End
|
|
%If (TQt_2_00 -)
|
|
virtual void setLineWidth(int);
|
|
%End
|
|
|
|
int margin() const;
|
|
%If (- TQt_2_00)
|
|
void setMargin(int);
|
|
%End
|
|
%If (TQt_2_00 -)
|
|
virtual void setMargin(int);
|
|
%End
|
|
|
|
int midLineWidth() const;
|
|
%If (- TQt_2_00)
|
|
void setMidLineWidth(int);
|
|
%End
|
|
%If (TQt_2_00 -)
|
|
virtual void setMidLineWidth(int);
|
|
%End
|
|
|
|
TQRect frameRect() const;
|
|
%If (TQt_2_00 -)
|
|
virtual void setFrameRect(const TQRect &);
|
|
%End
|
|
|
|
protected:
|
|
%If (- TQt_2_00)
|
|
void setFrameRect(const TQRect &);
|
|
%End
|
|
void paintEvent(TQPaintEvent *);
|
|
void resizeEvent(TQResizeEvent *);
|
|
virtual void drawFrame(TQPainter *);
|
|
virtual void drawContents(TQPainter *);
|
|
virtual void frameChanged();
|
|
%If (TQt_2_00 - TQt_3_0_0)
|
|
void updateMask();
|
|
virtual void drawFrameMask(TQPainter *);
|
|
virtual void drawContentsMask(TQPainter *);
|
|
%End
|
|
%If (TQt_3_1_0 -)
|
|
void styleChange(TQStyle &);
|
|
%End
|
|
|
|
private:
|
|
TQFrame(const TQFrame &);
|
|
};
|