1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
|
{
*****************************************************************************
* Gtk3WSExtCtrls.pp *
* ----------------- *
* *
* *
*****************************************************************************
*****************************************************************************
This file is part of the Lazarus Component Library (LCL)
See the file COPYING.modifiedLGPL.txt, included in this distribution,
for details about the license.
*****************************************************************************
}
unit Gtk3WSExtCtrls;
{$mode objfpc}{$H+}
{$I gtk3defines.inc}
interface
uses
// LCL
LCLProc, ExtCtrls, Classes, Controls, SysUtils, types, Graphics, LCLType,
// widgetset
WSExtCtrls, WSLCLClasses,
Gtk3WSControls;
type
{ TGtk3WSPage }
TGtk3WSPage = class(TWSPage)
published
end;
{ TGtk3WSNotebook }
TGtk3WSNotebook = class(TWSNotebook)
published
end;
{ TGtk3WSShape }
TGtk3WSShape = class(TWSShape)
published
end;
{ TGtk3WSCustomSplitter }
TGtk3WSCustomSplitter = class(TWSCustomSplitter)
published
class function CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): TLCLIntfHandle; override;
end;
{ TGtk3WSSplitter }
TGtk3WSSplitter = class(TWSSplitter)
published
end;
{ TGtk3WSPaintBox }
TGtk3WSPaintBox = class(TWSPaintBox)
published
end;
{ TGtk3WSCustomImage }
TGtk3WSCustomImage = class(TWSCustomImage)
published
end;
{ TGtk3WSImage }
TGtk3WSImage = class(TWSImage)
published
end;
{ TGtk3WSBevel }
TGtk3WSBevel = class(TWSBevel)
published
end;
{ TGtk3WSCustomRadioGroup }
TGtk3WSCustomRadioGroup = class(TWSCustomRadioGroup)
published
end;
{ TGtk3WSRadioGroup }
TGtk3WSRadioGroup = class(TWSRadioGroup)
published
end;
{ TGtk3WSCustomCheckGroup }
TGtk3WSCustomCheckGroup = class(TWSCustomCheckGroup)
published
end;
{ TGtk3WSCheckGroup }
TGtk3WSCheckGroup = class(TWSCheckGroup)
published
end;
{ TGtk3WSCustomLabeledEdit }
TGtk3WSCustomLabeledEdit = class(TWSCustomLabeledEdit)
published
end;
{ TGtk3WSLabeledEdit }
TGtk3WSLabeledEdit = class(TWSLabeledEdit)
published
end;
{ TGtk3WSCustomPanel }
TGtk3WSCustomPanel = class(TWSCustomPanel)
published
class function CreateHandle(const AWinControl: TWinControl; const AParams: TCreateParams): TLCLIntfHandle; override;
end;
{ TGtk3WSPanel }
TGtk3WSPanel = class(TWSPanel)
published
end;
{ TGtk3WSCustomTrayIcon }
TGtk3WSCustomTrayIcon = class(TWSCustomTrayIcon)
published
class function Hide(const ATrayIcon: TCustomTrayIcon): Boolean; override;
class function Show(const ATrayIcon: TCustomTrayIcon): Boolean; override;
class procedure InternalUpdate(const ATrayIcon: TCustomTrayIcon); override;
class function GetPosition(const ATrayIcon: TCustomTrayIcon): TPoint; override;
end;
implementation
uses
gtk3widgets;
{ TGtk3WSCustomSplitter }
class function TGtk3WSCustomSplitter.CreateHandle(
const AWinControl: TWinControl; const AParams: TCreateParams): TLCLIntfHandle;
var
ASplitter: TGtk3Splitter;
begin
ASplitter := TGtk3Splitter.Create(AWinControl, AParams);
Result := TLCLIntfHandle(ASplitter);
end;
{ TGtk3WSCustomPanel }
class function TGtk3WSCustomPanel.CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): TLCLIntfHandle;
var
APanel: TGtk3Panel;
begin
APanel := TGtk3Panel.Create(AWinControl, AParams);
APanel.BorderStyle := TCustomControl(AWinControl).BorderStyle;
APanel.BevelInner := TCustomPanel(AWinControl).BevelInner;
APanel.BevelOuter := TCustomPanel(AWinControl).BevelOuter;
APanel.Text := AWinControl.Caption;
Result := TLCLIntfHandle(APanel);
end;
{ TGtk3WSCustomTrayIcon }
class function TGtk3WSCustomTrayIcon.Hide(const ATrayIcon: TCustomTrayIcon
): Boolean;
begin
Result:=inherited Hide(ATrayIcon);
end;
class function TGtk3WSCustomTrayIcon.Show(const ATrayIcon: TCustomTrayIcon
): Boolean;
begin
Result:=inherited Show(ATrayIcon);
end;
class procedure TGtk3WSCustomTrayIcon.InternalUpdate(
const ATrayIcon: TCustomTrayIcon);
begin
inherited InternalUpdate(ATrayIcon);
end;
class function TGtk3WSCustomTrayIcon.GetPosition(
const ATrayIcon: TCustomTrayIcon): TPoint;
begin
Result:=inherited GetPosition(ATrayIcon);
end;
end.
|