summaryrefslogtreecommitdiffstats
path: root/sip/qt/qstyle.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qstyle.sip')
-rw-r--r--sip/qt/qstyle.sip231
1 files changed, 0 insertions, 231 deletions
diff --git a/sip/qt/qstyle.sip b/sip/qt/qstyle.sip
index 9a15be5..0630d81 100644
--- a/sip/qt/qstyle.sip
+++ b/sip/qt/qstyle.sip
@@ -69,8 +69,6 @@ This takes only the <Literal>t</Literal> parameter and returns a tuple of the
%End
-%If (TQt_3_0_0 -)
-
class TQStyleOption
{
%TypeHeaderCode
@@ -85,9 +83,7 @@ public:
TQStyleOption(StyleOptionDefault /Constrained/ = Default);
-%If (TQt_3_2_0 -)
TQStyleOption(int);
-%End
TQStyleOption(int,int);
TQStyleOption(int,int,int,int);
TQStyleOption(TQMenuItem *);
@@ -96,29 +92,21 @@ public:
TQStyleOption(const TQColor &);
TQStyleOption(TQTab *);
TQStyleOption(TQListViewItem *);
-%If (TQt_3_1_0 -)
TQStyleOption(TQCheckListItem *);
-%End
TQStyleOption(TQt::ArrowType /Constrained/);
-%If (TQt_3_1_0 -)
TQStyleOption(const TQRect &);
TQStyleOption(TQWidget *);
-%End
bool isDefault() const;
-%If (TQt_3_3_0 -)
int day() const;
-%End
int lineWidth() const;
int midLineWidth() const;
int frameShape() const;
int frameShadow() const;
-%If (TQt_3_2_0 -)
int headerSection() const;
-%End
TQMenuItem* menuItem() const;
int maxIconWidth() const;
int tabWidth() const;
@@ -127,25 +115,17 @@ public:
TQTab *tab() const;
-%If (TQt_3_1_0 -)
TQCheckListItem *checkListItem() const;
-%End
TQListViewItem *listViewItem() const;
TQt::ArrowType arrowType() const;
-%If (TQt_3_1_0 -)
TQRect rect() const;
TQWidget *widget() const;
-%End
};
-%End
-
-%If (TQt_3_0_0 -)
// Not yet defined in TQt v3Beta5.
class TQStyleHintReturn;
-%End
typedef TQMap<TQ_UINT32, TQSize> DialogButtonSizeMap;
typedef TQMap<TQ_INT32, TQ_INT32> TabIdentifierIndexMap;
@@ -186,8 +166,6 @@ public:
typedef TQStyleWidgetActionRequestData TQStyleApplicationActionRequestData;
-%If (TQt_2_00 -)
-
class TQStyle : TQObject
{
%TypeHeaderCode
@@ -196,13 +174,7 @@ class TQStyle : TQObject
%End
public:
-%If (TQt_3_0_0 -)
TQStyle();
-%End
-
-%If (- TQt_3_0_0)
- GUIStyle guiStyle() const;
-%End
enum ControlElementFlags {
CEF_None = 0x00000000,
@@ -246,157 +218,16 @@ public:
virtual void polish(TQPalette &);
-%If (TQt_3_0_0 -)
virtual void polishPopupMenu(TQPopupMenu *) = 0;
virtual void polishPopupMenu(const TQStyleControlElementData&, ControlElementFlags, void *) = 0;
-%End
-%If (- TQt_3_0_0)
- virtual TQRect itemRect(TQPainter *,int,int,int,int,int,bool,
- const TQPixmap *,const TQString &,int = -1);
-
- virtual void drawItem(TQPainter *,int,int,int,int,int,
- const TQColorGroup &,bool,const TQPixmap *,
- const TQString &,int = -1,const TQColor * = 0);
-%End
-%If (TQt_3_0_0 -)
virtual TQRect itemRect(TQPainter *,const TQRect &,int,bool,
const TQPixmap *,const TQString &,int = -1) const;
virtual void drawItem(TQPainter *,const TQRect &,int,const TQColorGroup &,
bool,const TQPixmap *,const TQString &,int = -1,
const TQColor * = 0) const;
-%End
-
-%If (- TQt_3_0_0)
- virtual void drawSeparator(TQPainter *,int,int,int,int,
- const TQColorGroup &,bool = 1,int = 1,
- int = 0);
- virtual void drawRect(TQPainter *,int,int,int,int,const TQColor &,
- int = 1,const TQBrush * = 0);
- virtual void drawRectStrong(TQPainter *,int,int,int,int,
- const TQColorGroup &,bool = 0,int = 1,
- int = 0,const TQBrush * = 0);
- virtual void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,
- bool = 0,const TQBrush * = 0) = 0;
- virtual TQRect buttonRect(int,int,int,int);
- virtual void drawButtonMask(TQPainter *,int,int,int,int);
- virtual void drawBevelButton(TQPainter *,int,int,int,int,
- const TQColorGroup &,bool = 0,
- const TQBrush * = 0) = 0;
-%If (TQt_2_1_0 -)
- TQRect bevelButtonRect(int,int,int,int);
-%End
- virtual void drawToolButton(TQPainter *,int,int,int,int,
- const TQColorGroup &,bool = 0,
- const TQBrush * = 0);
-%If (TQt_2_1_0 -)
- void drawToolButton(TQToolButton *,TQPainter *);
- TQRect toolButtonRect(int,int,int,int);
-%End
- virtual void drawPanel(TQPainter *,int,int,int,int,const TQColorGroup &,
- bool = 0,int = 1,const TQBrush * = 0);
- virtual void drawPopupPanel(TQPainter *,int,int,int,int,
- const TQColorGroup &,int = 2,
- const TQBrush * = 0);
- virtual void drawArrow(TQPainter *,TQt::ArrowType,bool,int,int,int,int,
- const TQColorGroup &,bool,const TQBrush * = 0) = 0;
- virtual TQSize exclusiveIndicatorSize() const = 0;
- virtual void drawExclusiveIndicator(TQPainter *,int,int,int,int,
- const TQColorGroup &,bool,bool = 0,
- bool = 1) = 0;
- virtual void drawExclusiveIndicatorMask(TQPainter *,int,int,int,int,
- bool);
- virtual TQSize indicatorSize() const = 0;
- virtual void drawIndicator(TQPainter *,int,int,int,int,
- const TQColorGroup &,int,bool = 0,
- bool = 1) = 0;
- virtual void drawIndicatorMask(TQPainter *,int,int,int,int,int);
- virtual void drawFocusRect(TQPainter *,const TQRect &,const TQColorGroup &,
- const TQColor * = 0,bool = 0) = 0;
- virtual void drawComboButton(TQPainter *,int,int,int,int,
- const TQColorGroup &,bool = 0,bool = 0,
- bool = 1,const TQBrush * = 0) = 0;
- virtual TQRect comboButtonRect(int,int,int,int) = 0;
- virtual TQRect comboButtonFocusRect(int,int,int,int) = 0;
- virtual void drawComboButtonMask(TQPainter *,int,int,int,int) = 0;
- virtual void drawPushButton(TQPushButton *,TQPainter *) = 0;
- virtual void drawPushButtonLabel(TQPushButton *,TQPainter *) = 0;
-
-%If (TQt_2_1_0 -)
- TQRect pushButtonContentsRect(TQPushButton *);
- int menuButtonIndicatorWidth(int);
-%End
-
- virtual void getButtonShift(int &,int &) = 0;
- virtual int defaultFrameWidth() const = 0;
- virtual void tabbarMetrics(const TQTabBar *,int &,int &,int &) = 0;
- virtual void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool) = 0;
- virtual void drawTabMask(TQPainter *,const TQTabBar* ,TQTab* ,bool) = 0;
-
- enum ScrollControl
- {
- AddLine = 0x1,
- SubLine = 0x2,
- AddPage = 0x4,
- SubPage = 0x8,
- First = 0x10,
- Last = 0x20,
- Slider = 0x40,
- NoScroll = 0x80
- };
-
- virtual void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,
- int &) = 0;
- virtual void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,
- uint,uint) = 0;
- virtual ScrollControl scrollBarPointOver(const TQScrollBar *,int,
- const TQPoint &) = 0;
- virtual int sliderLength() const = 0;
- virtual void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
- Orientation,bool,bool) = 0;
- virtual void drawSliderMask(TQPainter *,int,int,int,int,Orientation,
- bool,bool) = 0;
- virtual void drawSliderGroove(TQPainter *,int,int,int,int,
- const TQColorGroup &,TQCOORD,
- Orientation) = 0;
- virtual void drawSliderGrooveMask(TQPainter *,int,int,int,int,TQCOORD,
- Orientation) = 0;
- virtual int maximumSliderDragDistance() const = 0;
- virtual int splitterWidth() const = 0;
- virtual void drawSplitter(TQPainter *,int,int,int,int,
- const TQColorGroup &,Orientation) = 0;
- virtual void drawCheckMark(TQPainter *,int,int,int,int,
- const TQColorGroup &,bool,bool) = 0;
- virtual void polishPopupMenu(TQPopupMenu *) = 0;
- virtual int extraPopupMenuItemWidth(bool,int,TQMenuItem *,
- const TQFontMetrics &) = 0;
- virtual int popupSubmenuIndicatorWidth(const TQFontMetrics &) = 0;
- virtual int popupMenuItemHeight(bool,TQMenuItem *,
- const TQFontMetrics &) = 0;
- virtual void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *,
- const TQPalette &,bool, bool,int,int,int,
- int) = 0;
-%If (TQt_2_2_0 -)
- virtual void drawMenuBarItem(TQPainter *,int,int,int,int,TQMenuItem *,
- TQColorGroup &,bool,bool);
-%End
-%If (TQt_2_1_0 -)
- TQSize scrollBarExtent();
- int buttonDefaultIndicatorWidth() const;
-%If (TQt_2_2_0 -)
- int buttonMargin() const;
- int toolBarHandleExtent() const;
- int sliderThickness() const;
-%End
- int toolBarHandleExtend() const;
- void drawToolBarHandle(TQPainter *,const TQRect &,TQt::Orientation,bool,
- const TQColorGroup &,bool = 0);
-%End
-
-%End
-%If (TQt_3_0_0 -)
enum PrimitiveElement {
PE_ButtonCommand,
PE_ButtonDefault,
@@ -456,25 +287,16 @@ public:
PE_ProgressBarChunk,
-%If (TQt_3_0_1 -)
PE_PanelLineEdit,
PE_PanelTabWidget,
PE_WindowFrame,
-%End
-%If (TQt_3_1_0 -)
PE_CheckListController,
PE_CheckListIndicator,
PE_CheckListExclusiveIndicator,
PE_PanelGroupBox,
-%End
-%If (TQt_3_0_4 - TQt_3_0_5)
- PE_PopupMenuScroller,
-%End
-%If (TQt_3_3_0 -)
PE_RubberBand,
-%End
PE_CustomBase
};
@@ -528,22 +350,14 @@ public:
CE_MenuBarItem,
CE_ToolButtonLabel,
-%If (TQt_3_1_0 -)
CE_MenuBarEmptyArea,
-%End
-%If (TQt_3_0_5 -)
CE_PopupMenuScroller,
-%End
-%If (TQt_3_1_0 -)
CE_DockWindowEmptyArea,
-%End
-%If (TQt_3_2_0 -)
CE_PopupMenuVerticalExtra,
CE_PopupMenuHorizontalExtra,
CE_ToolBoxTab,
CE_HeaderLabel,
-%End
CE_CustomBase
};
@@ -580,7 +394,6 @@ public:
SR_ToolButtonContents,
-%If (TQt_3_2_0 -)
SR_DialogButtonAccept,
SR_DialogButtonReject,
SR_DialogButtonApply,
@@ -592,7 +405,6 @@ public:
SR_DialogButtonCustom,
SR_ToolBoxTabContents,
-%End
SR_CustomBase
};
@@ -632,9 +444,7 @@ public:
SC_ComboBoxFrame,
SC_ComboBoxEditField,
SC_ComboBoxArrow,
-%If (TQt_3_1_0 -)
SC_ComboBoxListBoxPopup,
-%End
SC_SliderGroove,
SC_SliderHandle,
@@ -720,13 +530,8 @@ public:
PM_IndicatorHeight,
PM_ExclusiveIndicatorWidth,
PM_ExclusiveIndicatorHeight,
-%If (TQt_3_0_4 -)
PM_PopupMenuScrollerHeight,
-%End
-%If (TQt_3_1_0 -)
PM_CheckListButtonSize,
-%End
-%If (TQt_3_2_0 -)
PM_CheckListControllerSize,
PM_PopupMenuFrameHorizontalExtra,
PM_PopupMenuFrameVerticalExtra,
@@ -742,13 +547,10 @@ public:
PM_HeaderGripMargin,
PM_TabBarTabShiftHorizontal,
PM_TabBarTabShiftVertical,
-%End
-%If (TQt_3_3_0 -)
PM_TabBarScrollButtonWidth,
PM_MenuBarItemSpacing,
PM_ToolBarItemSpacing,
-%End
PM_CustomBase
};
@@ -765,19 +567,15 @@ public:
CT_DockWindow,
CT_ProgressBar,
CT_PopupMenuItem,
-%If (TQt_3_1_0 -)
CT_TabBarTab,
CT_Slider,
CT_Header,
CT_LineEdit,
CT_MenuBar,
CT_SpinBox,
-%End
-%If (TQt_3_2_0 -)
CT_SizeGrip,
CT_TabWidget,
CT_DialogButtons,
-%End
CT_CustomBase
};
@@ -839,31 +637,22 @@ public:
SH_ComboBox_Popup,
-%If (TQt_3_0_1 -)
SH_TitleBar_NoBorder,
SH_ScrollBar_StopMouseOverSlider,
-%End
-%If (TQt_3_0_2 -)
SH_BlinkCursorWhenTextSelected,
SH_RichText_FullWidthSelection,
-%End
-%If (TQt_3_0_4 -)
SH_PopupMenu_Scrollable,
-%End
-%If (TQt_3_1_0 -)
SH_GroupBox_TextLabelVerticalAlignment,
SH_GroupBox_TextLabelColor,
SH_PopupMenu_SloppySubMenus,
-%End
-%If (TQt_3_2_0 -)
SH_Table_GridLineColor,
SH_LineEdit_PasswordCharacter,
@@ -877,13 +666,10 @@ public:
SH_ScrollBar_LeftClickAbsolutePosition,
SH_ListViewExpand_SelectMouseType,
-%End
-%If (TQt_3_3_0 -)
SH_UnderlineAccelerator,
SH_ToolButton_Uses3D,
-%End
SH_CustomBase
};
@@ -903,9 +689,7 @@ public:
SP_MessageBoxInformation,
SP_MessageBoxWarning,
SP_MessageBoxCritical,
-%If (TQt_3_2_0 -)
SP_MessageBoxQuestion,
-%End
SP_CustomBase
};
@@ -916,7 +700,6 @@ public:
static TQRect visualRect(const TQRect &,const TQWidget *);
static TQRect visualRect(const TQRect &,const TQRect &);
-%End
// New API
virtual void drawPrimitive( PrimitiveElement,
@@ -1053,20 +836,6 @@ public:
//void setApplicationActionRequestHook( ApplicationActionRequestHook );
virtual bool applicationActionRequest( const TQStyleControlElementData&, ControlElementFlags, void*, ApplicationActionRequest, TQStyleApplicationActionRequestData = TQStyleApplicationActionRequestData() );
-protected:
-%If (TQt_2_1_0 - TQt_3_0_0)
- void setScrollBarExtent(int,int = -1);
- void setButtonDefaultIndicatorWidth(int);
-%End
-
private:
-%If (- TQt_3_0_0)
- TQStyle();
- TQStyle(GUIStyle);
-%End
-%If (TQt_2_1_0 -)
TQStyle(const TQStyle &);
-%End
};
-
-%End