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
/
RecentFiles.pb
purebasic
/
PureBasicIDE
/
RecentFiles.pb
RecentFiles.pb 3.96 KB
Copy Edit Raw Blame History
; --------------------------------------------------------------------------------------------
; 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.
; --------------------------------------------------------------------------------------------
Procedure.s RecentFiles_EntryString(Index)
If Index > #MAX_RecentFiles ; its a project
Name$ = ProjectName(RecentFiles(Index))
If Name$ <> ""
Name$ = " (" + Name$ + ")"
EndIf
ProcedureReturn RSet(Str(Index-#MAX_RecentFiles), Len(Str(FilesHistorySize))) + ") " + GetFilePart(RecentFiles(Index)) + Name$
Else ; its a source file
ProcedureReturn RSet(Str(Index), Len(Str(FilesHistorySize))) + ") " + RecentFiles(Index) ; Display full path here, to avoid issue if some files gets same name (ie: main.pb) https://www.purebasic.fr/english/viewtopic.php?f=3&t=60650
EndIf
EndProcedure
Procedure RecentFiles_AddMenuEntries(IsProject)
If IsProject = #False
Offset = 0
Else
Offset = #MAX_RecentFiles
EndIf
Count = 0
For i = 1 To FilesHistorySize
If RecentFiles(Offset+i)
MenuItem(#MENU_RecentFiles_Start+Offset+i-1, ReplaceString(RecentFiles_EntryString(Offset+i), "&", "&&")) ; escape the "menu char"
Count + 1
EndIf
Next i
If IsProject = #False
DisplayedRecentFiles = Count
Else
DisplayedRecentProjects = Count
EndIf
EndProcedure
Procedure RecentFiles_AddFile(FileName,ドル IsProject)
CompilerIf #CompileWindows
; Also notify the OS of the file usage
; This is useful for the 'recent file' list in the start menu and Windows7 Taskbar
CompilerIf #PB_Compiler_Unicode
#SHARD_PATH = 00000003ドル
CompilerElse
#SHARD_PATH = 00000002ドル
CompilerEndIf
SHAddToRecentDocs_(#SHARD_PATH, @FileName$)
CompilerEndIf
If IsProject = #False
Offset = 0
OldCount = DisplayedRecentFiles
Else
Offset = #MAX_RecentFiles
OldCount = DisplayedRecentProjects
EndIf
If IsEqualFile(FileName,ドル RecentFiles(Offset+1))
ProcedureReturn ; the file is already at the top of the list, so there is nothing to do
EndIf
; search for the same filename in the list
;
Found = 0
For index = 1 To FilesHistorySize
If RecentFiles(Offset+index) = "" Or IsEqualFile(FileName,ドル RecentFiles(Offset+index))
Found = 1
Break
EndIf
Next index
If Found = 0
index = FilesHistorySize
EndIf
; now move all other files one index down..
;
For i = index-1 To 1 Step -1
RecentFiles(Offset+i+1) = RecentFiles(Offset+i)
Next i
RecentFiles(Offset+1) = FileName$
; Count the number of entries we have
Count = 0
For i = 1 To FilesHistorySize
If RecentFiles(Offset+i)
Count + 1
EndIf
Next i
If Count = OldCount And Count = FilesHistorySize
; rename the menu items for Recentfiles (no recreation of the whole menu)
For i = 1 To FilesHistorySize
SetMenuItemText(#MENU, #MENU_RecentFiles_Start+Offset+i-1, ReplaceString(RecentFiles_EntryString(Offset+i), "&", "&&"))
Next i
Else
; the count changed.. we must re-create the menu
StartFlickerFix(#WINDOW_Main)
CreateIDEMenu() ; update the menu
StopFlickerFix(#WINDOW_Main, 1)
EndIf
EndProcedure
Procedure RecentFiles_Open(MenuItemID)
If MenuItemID >= #MENU_RecentFiles_Start And MenuItemID <= #MENU_RecentFiles_End
If Trim(RecentFiles(MenuItemID - #MENU_RecentFiles_Start + 1)) <> ""
If MenuItemID < #MENU_RecentFiles_Start+#MAX_RecentFiles ; RecentFiles range
LoadSourceFile(RecentFiles(MenuItemID - #MENU_RecentFiles_Start + 1))
Else ; RecentProjects range
LoadProject(RecentFiles(MenuItemID - #MENU_RecentFiles_Start + 1))
EndIf
; do not add the filename to the beginning of the list, LoadSourceFile()/LoadProject() will do so
EndIf
EndIf
EndProcedure
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 によって変換されたページ (->オリジナル) /