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.
113 lines
4.3 KiB
113 lines
4.3 KiB
13 years ago
|
// This is the SIP interface definition for TQMotifStyle.
|
||
13 years ago
|
//
|
||
|
// Copyright (c) 2007
|
||
|
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||
|
//
|
||
13 years ago
|
// This file is part of PyTQt.
|
||
13 years ago
|
//
|
||
13 years ago
|
// This copy of PyTQt is free software; you can redistribute it and/or modify it
|
||
13 years ago
|
// 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.
|
||
|
//
|
||
13 years ago
|
// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
|
||
13 years ago
|
// 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
|
||
13 years ago
|
// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
|
||
13 years ago
|
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
|
||
|
|
||
|
%ExportedDoc
|
||
13 years ago
|
<Sect2><Title>TQMotifStyle (TQt v2+)</Title>
|
||
13 years ago
|
<FuncSynopsis>
|
||
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
||
13 years ago
|
<ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
|
||
13 years ago
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
||
|
</FuncSynopsis>
|
||
|
<Para>
|
||
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
||
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
||
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
||
13 years ago
|
(TQt v2)
|
||
13 years ago
|
</Para>
|
||
|
|
||
|
<FuncSynopsis>
|
||
|
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
|
||
13 years ago
|
<ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
|
||
13 years ago
|
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
|
||
|
</FuncSynopsis>
|
||
|
<Para>
|
||
|
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
|
||
|
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
|
||
13 years ago
|
<Literal>overlap</Literal> values. (TQt v2)
|
||
13 years ago
|
</Para>
|
||
|
</Sect2>
|
||
|
%End
|
||
|
|
||
|
|
||
13 years ago
|
%If (TQt_STYLE_MOTIF)
|
||
13 years ago
|
|
||
13 years ago
|
class TQMotifStyle : TQCommonStyle
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
13 years ago
|
#include <tqmotifstyle.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
public:
|
||
13 years ago
|
TQMotifStyle(bool = 0);
|
||
13 years ago
|
|
||
|
void setUseHighlightColors(bool);
|
||
|
bool useHighlightColors() const;
|
||
|
|
||
12 years ago
|
void polish( TQPalette& );
|
||
12 years ago
|
void polish( const TQStyleControlElementData&, ControlElementFlags, void * );
|
||
|
void applicationPolish( const TQStyleControlElementData&, ControlElementFlags, void * );
|
||
12 years ago
|
|
||
12 years ago
|
void polishPopupMenu( const TQStyleControlElementData&, ControlElementFlags, void * );
|
||
13 years ago
|
|
||
12 years ago
|
void drawPrimitive(PrimitiveElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,const TQRect &,
|
||
13 years ago
|
const TQColorGroup &,SFlags = Style_Default,
|
||
|
const TQStyleOption & = TQStyleOption()) const;
|
||
13 years ago
|
|
||
12 years ago
|
void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
|
||
13 years ago
|
const TQRect &,const TQColorGroup &,
|
||
13 years ago
|
SFlags = Style_Default,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
|
||
13 years ago
|
|
||
12 years ago
|
void drawComplexControl(ComplexControl,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
|
||
13 years ago
|
const TQRect &,const TQColorGroup &,
|
||
13 years ago
|
SFlags = Style_Default,SCFlags = SC_All,
|
||
|
SCFlags = SC_None,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQRect querySubControlMetrics(ComplexControl,const TQStyleControlElementData&,ControlElementFlags,SubControl,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
|
||
13 years ago
|
|
||
12 years ago
|
int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQSize sizeFromContents(ContentsType,const TQStyleControlElementData&,ControlElementFlags,const TQSize &,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQPixmap stylePixmap(StylePixmap,const TQStyleControlElementData&,ControlElementFlags,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(), const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
int styleHint(StyleHint,const TQStyleControlElementData&,ControlElementFlags,
|
||
13 years ago
|
const TQStyleOption & = TQStyleOption(),
|
||
12 years ago
|
TQStyleHintReturn * = 0, const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
|
private:
|
||
13 years ago
|
TQMotifStyle(const TQMotifStyle &);
|
||
13 years ago
|
};
|
||
|
|
||
|
%End
|