Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
devel
Branches (25)
devel
spiderbasic-3.10
v6.21
v6.20
spiderbasic-3.02
qt
v6.12
spiderbasic-3.01
enablejs-ignore-formatting
master
spiderbasic-3.00
webview-tool
v6.11
v6.10
v6.04
spiderbasic-2.51
v6.03
editor-fix-3
editor-slow-fix2
editor-slow-fix
devel
Branches (25)
devel
spiderbasic-3.10
v6.21
v6.20
spiderbasic-3.02
qt
v6.12
spiderbasic-3.01
enablejs-ignore-formatting
master
spiderbasic-3.00
webview-tool
v6.11
v6.10
v6.04
spiderbasic-2.51
v6.03
editor-fix-3
editor-slow-fix2
editor-slow-fix
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
devel
Branches (25)
devel
spiderbasic-3.10
v6.21
v6.20
spiderbasic-3.02
qt
v6.12
spiderbasic-3.01
enablejs-ignore-formatting
master
spiderbasic-3.00
webview-tool
v6.11
v6.10
v6.04
spiderbasic-2.51
v6.03
editor-fix-3
editor-slow-fix2
editor-slow-fix
purebasic
/
PureBasicIDE
/
HelpTool.pb
purebasic
/
PureBasicIDE
/
HelpTool.pb
HelpTool.pb 6.69 KB
Copy Edit Raw Blame History
Timo Harter authored 2025年01月17日 18:40 +08:00 . QT Subsystem support (#274)
; --------------------------------------------------------------------------------------------
; Copyright (c) Fantaisie Software. All rights reserved.
; Dual licensed under the GPL and Fantaisie Software licenses.
; See LICENSE and LICENSE-FANTAISIE in the project root for license information.
; --------------------------------------------------------------------------------------------
; Not for linux for now, because of WebKitGtk instabilities
CompilerIf #CompileLinux = 0
; Settings here are also in Global variables because they are needed elsewhere
Global Backup_UseHelpToolF1
Global HelpToolHomeUrl$
Procedure Help_CreateFunction(*Entry.ToolsPanelEntry)
ButtonImageGadget(#GADGET_HelpTool_Back, 0, 0, 0, 0, ImageID(#IMAGE_Help_Back))
ButtonImageGadget(#GADGET_HelpTool_Forward, 0, 0, 0, 0, ImageID(#IMAGE_Help_Forward))
ButtonImageGadget(#GADGET_HelpTool_Home, 0, 0, 0, 0, ImageID(#IMAGE_Help_Home))
ButtonImageGadget(#GADGET_HelpTool_Help, 0, 0, 0, 0, ImageID(#IMAGE_Help_OpenHelp))
GadgetToolTip(#GADGET_HelpTool_Back, Language("Help","Back"))
GadgetToolTip(#GADGET_HelpTool_Forward, Language("Help","Forward"))
GadgetToolTip(#GADGET_HelpTool_Home, Language("Help","Home"))
GadgetToolTip(#GADGET_HelpTool_Help, Language("Help","OpenHelp"))
CompilerIf #CompileWindows
HelpToolHomeUrl$ = "mk:@MSITStore:" + PureBasicPath$ + #ProductName$ + ".chm::/Reference/reference.html"
CompilerElse
Select UCase(CurrentLanguage$)
Case "FRANCAIS"
HelpToolHomeUrl$ = "file://"+PureBasicPath$+"help/purebasic_french/reference/reference.html"
Case "DEUTSCH"
HelpToolHomeUrl$ = "file://"+PureBasicPath$+"help/purebasic_german/reference/reference.html"
Default
HelpToolHomeUrl$ = "file://"+PureBasicPath$+"help/purebasic/reference/reference.html"
EndSelect
CompilerEndIf
WebGadget(#GADGET_HelpTool_Viewer, 0, 0, 0, 0, HelpToolHomeUrl$)
HelpToolOpen = #True
EndProcedure
Procedure Help_DestroyFunction(*Entry.ToolsPanelEntry)
HelpToolOpen = #False
EndProcedure
Procedure Help_ResizeHandler(*Entry.ToolsPanelEntry, PanelWidth, PanelHeight)
; All the buttons should have the same size, so only call it once
;
GetRequiredSize(#GADGET_HelpTool_Back, @Width.l, @Height.l)
CompilerIf #CompileWindows
Space = 5
CompilerElse
Space = 8 ; looks better on Linux/OSX with some more space
CompilerEndIf
x = 5
ResizeGadget(#GADGET_HelpTool_Back, x, 5, Width, Height): x + Width + Space
ResizeGadget(#GADGET_HelpTool_Forward, x, 5, Width, Height): x + Width + Space
ResizeGadget(#GADGET_HelpTool_Home, x, 5, Width, Height): x + Width + Space
If x > PanelWidth-5-Width
ResizeGadget(#GADGET_HelpTool_Help, x, 5, Width, Height)
Else
ResizeGadget(#GADGET_HelpTool_Help, PanelWidth-5-Width, 5, Width, Height)
EndIf
ResizeGadget(#GADGET_HelpTool_Viewer, 0, 10+Height, PanelWidth, PanelHeight-Height-10)
EndProcedure
Procedure Help_EventHandler(*Entry.ToolsPanelEntry, EventGadgetID)
Select EventGadgetID
Case #GADGET_HelpTool_Back
SetGadgetState(#GADGET_HelpTool_Viewer, #PB_Web_Back)
Case #GADGET_HelpTool_Forward
SetGadgetState(#GADGET_HelpTool_Viewer, #PB_Web_Forward)
Case #GADGET_HelpTool_Home
SetGadgetText(#GADGET_HelpTool_Viewer, HelpToolHomeUrl$)
Case #GADGET_HelpTool_Help
CompilerIf #CompileWindows
Page$ = GetGadgetText(#GADGET_HelpTool_Viewer)
Page$ = Right(Page,ドル Len(Page$)-(FindString(Page,ドル "::", 1)+1))
If Left(Page,ドル 1) = "/"
Page$ = Right(Page,ドル Len(Page$)-1)
EndIf
OpenHelp(PureBasicPath$ + #ProductName$ + ".chm", Page$)
CompilerElse
OpenHelpWindow()
SetGadgetText(#GADGET_Help_Viewer, GetGadgetText(#GADGET_HelpTool_Viewer))
CompilerEndIf
EndSelect
EndProcedure
Procedure Help_PreferenceStart(*Entry.ToolsPanelEntry)
; Use the backup variable during the PReferences changing
Backup_UseHelpToolF1 = UseHelpToolF1
EndProcedure
Procedure Help_PreferenceApply(*Entry.ToolsPanelEntry)
; put the backup variable back
UseHelpToolF1 = Backup_UseHelpToolF1
EndProcedure
Procedure Help_PreferenceCreate(*Entry.ToolsPanelEntry)
CheckBoxGadget(#GADGET_Preferences_UseHelpToolF1, 10, 10, 300, 25, Language("Help","OpenF1"))
SetGadgetState(#GADGET_Preferences_UseHelpToolF1, Backup_UseHelpToolF1)
GetRequiredSize(#GADGET_Preferences_UseHelpToolF1, @Width, @Height)
ResizeGadget(#GADGET_Preferences_UseHelpToolF1, 10, 10, Width, Height)
EndProcedure
Procedure Help_PreferenceDestroy(*Entry.ToolsPanelEntry)
Backup_UseHelpToolF1 = GetGadgetState(#GADGET_Preferences_UseHelpToolF1)
EndProcedure
Procedure Help_PreferenceEvents(*Entry.ToolsPanelEntry, EventGadgetID)
;
; nothing to do here
;
EndProcedure
Procedure Help_PreferenceChanged(*Entry.ToolsPanelEntry, IsConfigOpen)
If IsConfigOpen
If UseHelpToolF1 <> GetGadgetState(#GADGET_Preferences_UseHelpToolF1)
ProcedureReturn 1
EndIf
Else
If UseHelpToolF1 <> Backup_UseHelpToolF1
ProcedureReturn 1
EndIf
EndIf
ProcedureReturn 0
EndProcedure
;- Initialisation code
; This will make this Tool available to the editor
;
Help_VT.ToolsPanelFunctions
Help_VT\CreateFunction = @Help_CreateFunction()
Help_VT\DestroyFunction = @Help_DestroyFunction()
Help_VT\ResizeHandler = @Help_ResizeHandler()
Help_VT\EventHandler = @Help_EventHandler()
Help_VT\PreferenceStart = @Help_PreferenceStart()
Help_VT\PreferenceApply = @Help_PreferenceApply()
Help_VT\PreferenceCreate = @Help_PreferenceCreate()
Help_VT\PreferenceDestroy = @Help_PreferenceDestroy()
Help_VT\PreferenceEvents = @Help_PreferenceEvents()
Help_VT\PreferenceChanged = @Help_PreferenceChanged()
AddElement(AvailablePanelTools())
AvailablePanelTools()\FunctionsVT = @Help_VT
AvailablePanelTools()\NeedPreferences = 0 ; the one setting is stored in the global section
AvailablePanelTools()\NeedConfiguration = 1
AvailablePanelTools()\PreferencesWidth = 320
AvailablePanelTools()\PreferencesHeight = 80
AvailablePanelTools()\NeedDestroyFunction = 1
AvailablePanelTools()\ToolID$ = "HelpTool"
AvailablePanelTools()\PanelTitle$ = "HelpToolShort"
AvailablePanelTools()\ToolName$ = "HelpToolLong"
CompilerEndIf
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

PureBasic是由Fantaisie Software所开发的商用BASIC程序语言及集成开发环境。特点是语法简单直接,不依赖运行时库,因此能编译出相当小巧的程序,包含命令列或GUI执行档、DLL等。而且不使用各系统的API,所以有高度的跨平台特性,支持Windows 32/64位元、Linux 32/64位元、Mac OS X、Amiga。
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/PureBasic/purebasic.git
git@gitee.com:PureBasic/purebasic.git
PureBasic
purebasic
PureBASIC
devel
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /