开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
devel
分支 (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
分支 (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
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
devel
分支 (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
/
LinuxMisc.pb
purebasic
/
PureBasicIDE
/
LinuxMisc.pb
LinuxMisc.pb 19.88 KB
一键复制 编辑 原始数据 按行查看 历史
kenmo-pb 提交于 2025年04月28日 21:16 +08:00 . Add ElementaryOS terminal support to LinuxMisc (#319)
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 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582
; --------------------------------------------------------------------------------------------
; 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.
; --------------------------------------------------------------------------------------------
; linux specific file:
CompilerIf #CompileLinux
Structure XClientMessageEvent
type.l ; int
CompilerIf #PB_Compiler_Processor = #PB_Processor_x64
alignment1.l
CompilerEndIf
serial.i ; unsigned long /* # of last request processed by server */
send_event.l ; Bool (=int) /* true if this came from a SendEvent request */
CompilerIf #PB_Compiler_Processor = #PB_Processor_x64
alignment2.l
CompilerEndIf
*display ; pointer /* Display the event was read from */
window.i ; Window (= pointer)
message_type.i; Atom (= pointer)
format.l ; int
CompilerIf #PB_Compiler_Processor = #PB_Processor_x64
alignment3.l
CompilerEndIf
StructureUnion
b.b[20] ; char
s.w[10] ; short
l.i[5] ; long is 64bit on Linux64!
EndStructureUnion
EndStructure
Global AlreadyRunning
Procedure OSStartupCode()
Shared DetectedGUITerminal,ドル GUITerminalParameters$ ; for the debugger
Home$ = GetEnvironmentVariable("HOME")
If Right(Home,ドル 1) <> #Separator
Home$ + #Separator
EndIf
; If the PUREBASIC_HOME is not set, we use the path to the purebasic executable as a reference.
; This way IDE compilation should work completely without the PUREBASIC_HOME. (so it is only needed
; for commandline compilation). This should be easier to setup for people.
;
If PureBasicPath$ = "" ; only change if not set by commandline -b
CompilerIf #SpiderBasic
PureBasicPath$ = GetEnvironmentVariable("SPIDERBASIC_HOME")
CompilerElse
PureBasicPath$ = GetEnvironmentVariable("PUREBASIC_HOME")
CompilerEndIf
If PureBasicPath$ = ""
PureBasicPath$ = GetPathPart(ProgramFilename())
; Not an absolute path, combine it with the current directory to have an absolute one
If Left(PureBasicPath,ドル 1) <> "/"
PureBasicPath$ = GetCurrentDirectory() + PureBasicPath$
EndIf
; cut the compilers dir part
If Right(PureBasicPath,ドル 10) = "compilers/"
PureBasicPath$ = Left(PureBasicPath,ドル Len(PureBasicPath$)-10)
ElseIf Right(PureBasicPath,ドル 9) = "compilers"
PureBasicPath$ = Left(PureBasicPath,ドル Len(PureBasicPath$)-9)
Else
PureBasicPath$ = "" ; Not a PureBasic/SpiderBasic root path
EndIf
EndIf
EndIf
; check if what we have here is a valid path. (if /proc is not mounted, ProgramFileName() may return a relative path
If FileSize(PureBasicPath$) <> -2
CompilerIf #SpiderBasic
MessageRequester("Error", "Can't locate the SpiderBasic install directory."+#LF$+
"Please export the 'SPIDERBASIC_HOME' env variable before starting the IDE.", #PB_MessageRequester_Error)
CompilerElse
MessageRequester("Error", "Can't locate the PureBasic install directory."+#LF$+
"Please export the 'PUREBASIC_HOME' env variable before starting the IDE.", #PB_MessageRequester_Error)
CompilerEndIf
EndIf
Debug "PureBasicPath$ = " + PureBasicPath$
If Right(PureBasicPath,ドル 1) <> #Separator
PureBasicPath$ + #Separator
EndIf
; Don't replace space with "\ " as all PureBasic commands like OpenFile() expect a real space.
;
; If FindString(PureBasicPath,ドル "\ ", 1) = 0
; PureBasicPath$ = ReplaceString(PureBasicPath,ドル " ", "\ ") ; this is only needed here, to work on the commandline
; EndIf
TempPath$ = "/tmp/"
If PreferencesFile$ = "" ; Only change if not set by commandline
PreferencesFile$ = PureBasicConfigPath() + #PreferenceFileName$
EndIf
If AddToolsFile$ = "" ; Only change if not set by commandline
AddToolsFile$ = PureBasicConfigPath() + "tools.prefs"
EndIf
If TemplatesFile$ = "" ; Only change if not set by commandline
TemplatesFile$ = PureBasicConfigPath() + "templates.prefs"
EndIf
If HistoryDatabaseFile$ = "" ; Only change if not set by commandline
HistoryDatabaseFile$ = PureBasicConfigPath() + "history.db"
EndIf
If SourcePathSet = 0
; It's important to point on the examples when the path is not set as when your run PureBasic for the first
; time, you want to open examples to test them. This value can be changed in the prefs and won't be
; used if another pref is found
;
SourcePath$ = PureBasicPath$ + "examples/"
EndIf
CompilerIf #SpiderBasic
RunOnceFile$ = TempPath$ + ".sbrunonce.txt"
CompilerElse
RunOnceFile$ = TempPath$ + ".pbrunonce.txt"
CompilerEndIf
;Debug "PureBasicPath: "+PureBasicPath$
;Debug "Preferences: "+ PreferencesFile$
;Debug "Tools settings: "+AddToolsFile$
ButtonBackgroundColor = GetButtonBackgroundColor()
; Try to detect a gui terminal program, where the debugger can be displayed in...
; Note: somehow, when the title option is set, often it does not execute correctly (for example in gnome-terminal)
; so remove them all
;
If system_(ToAscii("which gnome-terminal > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = "-- "
ElseIf system_(ToAscii("which konsole > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = " -e "
ElseIf system_(ToAscii("which aterm > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = " -e "
ElseIf system_(ToAscii("which mlterm > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = " -e "
ElseIf system_(ToAscii("which rxvt > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = " -e "
ElseIf system_(ToAscii("which xterm > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = " -e "
ElseIf system_(ToAscii("which lxterminal > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = " -e "
ElseIf system_(ToAscii("which io.elementary.terminal > "+TempPath$+"PB_TerminalTest.txt 2>/dev/null")) = 0
GUITerminalParameters$ = " -e "
Else
GUITerminalParameters$ = ""
EndIf
; read the which output, to get the full path (as the internal debugger doesn't search the PATH environment
;
If GUITerminalParameters$ <> ""
If ReadFile(#FILE_CompilerInfo, TempPath$+"PB_TerminalTest.txt")
DetectedGUITerminal$ = ReadString(#FILE_CompilerInfo)
CloseFile(#FILE_CompilerInfo)
Else
DetectedGUITerminal$ = ""
EndIf
EndIf
DeleteFile(TempPath$+"PB_TerminalTest.txt")
ProcedureReturn 1
EndProcedure
Procedure OSEndCode()
If AlreadyRunning = 0
DeleteFile(TempPath$ + ".purebasic.running")
EndIf
; still used for IDE->Debugger communication when using a FIFO
DeleteFile(TempPath$ + ".purebasic.out")
EndProcedure
Declare RunOnce_MessageFilter(*XEvent.XClientMessageEvent, *Event.GdkEventClient, user_data)
; determine things like StatusBarHeight once after the GUI is created.
Procedure GetWindowMetrics()
StatusbarHeight = StatusBarHeight(#STATUSBAR)
ToolbarHeight = 35
ToolbarTopOffset = 0
; MenuHeight = MenuHeight() ; returns a fixed value!
;
CompilerIf #CompileLinuxGtk
MenuSize.GtkRequisition;
gtk_widget_size_request_(MenuID(#MENU), @MenuSize)
MenuHeight = MenuSize\height
CompilerElse
MenuHeight = 0
CompilerEndIf
; Set up the callback for the RunOnce event
; (don't do this in OSStartupCode(), because at this point it is not determined if there is already an editor Window)
;
CompilerIf #CompileLinuxGtk2 ; TODO-GTK3 TODO-QT
gdk_add_client_message_filter_(gdk_atom_intern_("PureBasic_RunOnceSignal", 0), @RunOnce_MessageFilter(), 0)
CompilerEndIf
EndProcedure
Procedure LoadEditorFonts()
; The font still needs to be loaded for the Preferences display
If LoadFont(#FONT_Editor, EditorFontName,ドル EditorFontSize)
EditorFontID = FontID(#FONT_Editor)
EndIf
EditorBoldFontName$ = EditorFontName$
EndProcedure
Procedure UpdateToolbarView()
CompilerIf #CompileLinuxGtk
If ShowMainToolbar
gtk_widget_show_(*MainToolbar)
Else
gtk_widget_hide_(*MainToolbar)
EndIf
CompilerElse
If ShowMainToolbar
QtScript("toolbar(" + #TOOLBAR + ").show()")
Else
QtScript("toolbar(" + #TOOLBAR + ").hide()")
EndIf
CompilerEndIf
EndProcedure
Procedure RunOnceSignalReceived()
If ReadFile(#FILE_RunOnce, RunOnceFile$)
While Eof(#FILE_RunOnce) = 0
FileName$ = ReadString(#FILE_RunOnce)
;If Left(FileName,ドル 7) = "--LINE "
; ; apply the current line commandline option
; InitialSourceLine = Val(Right(FileName,ドル Len(FileName$)-7))
; If InitialSourceLine > 0 And InitialSourceLine < GetLinesCount(*ActiveSource) ; apply the -l option
; ChangeActiveLine(InitialSourceLine, -5)
; EndIf
;ElseIf FileName$ <> ""
; LoadSourceFile(FileName$)
;EndIf
; NOTE: Trying to open the files from here will cause the IDE to lock up on Linux x64,
; so we add the names to this list (which is empty after startup), and the main loop
; checks for the size of this list and opens it from there (see PureBasic.pb)
;
; We still have the file reading in here, as all this could happen multiple times in succession
; when PB files are opened by a file explorer etc.
;
AddElement(OpenFilesCommandLine())
OpenFilesCommandLine() = FileName$
Wend
CloseFile(#FILE_RunOnce)
EndIf
DeleteFile(RunOnceFile$)
; Still need the SetWindowForeground here, as apparently it has no effect if we delay it until after the X message
SetWindowForeground(#WINDOW_Main)
;ResizeMainWindow()
EndProcedure
ProcedureC RunOnce_MessageFilter(*XEvent.XClientMessageEvent, *Event.GdkEventClient, user_data)
Static LastEventSender
If Editor_RunOnce
If *XEvent\l[0] <> LastEventSender
RunOnceSignalReceived()
LastEventSender = *XEvent\l[0]
EndIf
ProcedureReturn #GDK_FILTER_REMOVE ; there is only 1 instance, so no need to send this message further
Else
ProcedureReturn #GDK_FILTER_CONTINUE
EndIf
EndProcedure
; Return true of PID is a running instance of this IDE
Procedure IsRunningIDEInstance(PID)
IsRunning = 0
; the other Instance isn't running (kill with '0' doesn't kill if it is still running, but returns > 0 if the PID is invalid)
If kill_(PID, 0) = 0
;
; if the IDE crashes, and then the PC is restarted, the PID in this file could be
; in use by another process, which will stop the IDE from starting.
; /proc/PID/exe is a symbolic link, so simply check if that leads to the IDE exe
;
; This code is what ProgramFilename() does, so it can be compared
;
Executable$ = ProgramFilename()
length = Len(Executable$)
File$ = "/proc/"+Str(PID)+"/exe"
*Buffer = AllocateMemory(length+20) ; do not use the exe length alone, as else we cannot tell if the link name is longer than that
If *Buffer
readlength = readlink_(ToAscii(File$), *Buffer, length+20)
If readlength = length And PeekS(*Buffer, length, #PB_Ascii) = Executable$ ; *Buffer is not 0-terminated!
IsRunning = 1
EndIf
FreeMemory(*Buffer)
EndIf
EndIf
ProcedureReturn IsRunning
EndProcedure
Procedure IsEditorRunning()
IsRunning = 0
If ReadFile(#FILE_RunOnce, TempPath$ + ".purebasic.running")
PID = Val(ReadString(#FILE_RunOnce))
CloseFile(#FILE_RunOnce)
IsRunning = IsRunningIDEInstance(PID)
If IsRunning = 0
DeleteFile(TempPath$ + ".purebasic.running") ; this was the file of a dead instance so delete it.
EndIf
EndIf
If IsRunning = 0
If CreateFile(#FILE_RunOnce, TempPath$ + ".purebasic.running")
WriteString(#FILE_RunOnce, Str(getpid_()))
CloseFile(#FILE_RunOnce)
EndIf
EndIf
AlreadyRunning = IsRunning
ProcedureReturn IsRunning
EndProcedure
Procedure EmitRunOnceSignal()
CompilerIf #CompileLinuxGtk2 ; TODO-GTK3 TODO-QT
Event.GdkEventClient
Event\type = #GDK_CLIENT_EVENT
Event\send_event = 1
Event\message_type = gdk_atom_intern_("PureBasic_RunOnceSignal", 0)
Event\data_format = 32
Event\l[0] = getpid_() ; identify the sender, to filter out multiple arriving signals
gdk_event_send_clientmessage_toall_(@Event)
CompilerEndIf
EndProcedure
Procedure RunOnce_Startup(InitialSourceLine)
Result = #False ; do not close IDE
If IsEditorRunning()
If CreateFile(#FILE_RunOnce, RunOnceFile$)
ForEach OpenFilesCommandline()
WriteStringN(#FILE_RunOnce, OpenFilesCommandline())
Next OpenFilesCommandline()
If InitialSourceLine <> -1
WriteStringN(#FILE_RunOnce, "--LINE "+Str(InitialSourceLine)) ; send this option on to the opened IDE (always as last one!)
EndIf
CloseFile(#FILE_RunOnce)
EmitRunOnceSignal()
Result = #True ; close IDE
EndIf
EndIf
ProcedureReturn Result
EndProcedure
Procedure RunOnce_UpdateSetting()
If Editor_RunOnce
If CreateFile(#FILE_RunOnce, TempPath$ + ".purebasic.running")
WriteString(#FILE_RunOnce, Str(getpid_()))
CloseFile(#FILE_RunOnce)
EndIf
Else
DeleteFile(TempPath$ + ".purebasic.running")
EndIf
EndProcedure
; Dead session detection
Procedure Session_IsRunning(OSSessionID$)
; The OSSessionID is the PID of the process
PID = Val(OSSessionID$)
ProcedureReturn IsRunningIDEInstance(PID)
EndProcedure
Procedure.s Session_Start()
; Return the current PID as the OSSessionID
; This can then be used to delect if the session is still active
ProcedureReturn Str(getpid_())
EndProcedure
Procedure Session_End(OSSessionID$)
; No need to clean up anything
EndProcedure
CompilerIf #CompileLinuxGtk
ProcedureC AutoComplete_GtkFocusSignal(*Window, *Event, user_data)
If AutoCompleteWindowOpen
If user_data+500 < ElapsedMilliseconds() ; to ignore the immediate lost focus that seems to be reportet on Mandrake
AutoComplete_Close()
EndIf
EndIf
ProcedureReturn 1
EndProcedure
ProcedureC AutoComplete_GtkTabHandler(*Widget, *Event.GdkEventKey, user_data)
If AutoCompleteWindowOpen
Accelerators = g_object_get_data_(gtk_widget_get_toplevel_(*Widget), "pb_accelerators")
If Accelerators
Key = *Event\keyval
; The TAB shortcut willn't be processed correctly, so catch it here
;
If Key = $FF09 And KeyboardShortcuts(#MENU_AutoComplete_OK) = #PB_Shortcut_Tab
AutoComplete_Insert()
ProcedureReturn 1
EndIf
If *Event\type = #GDK_KEY_PRESS
; gtk_accel_groups_activate_() works as well for our case, but it's not sure than the shortcut is
; really in our accelerator list, so check it. Note the '& $F' for the query, without which it fails
;
If gtk_accel_group_query_(Accelerators, Key, *Event\state & $F, @NbEntriesFound)
ProcedureReturn gtk_accel_groups_activate_(gtk_widget_get_toplevel_(*Widget), Key, *Event\state)
EndIf
EndIf
EndIf
; close autocomplete on PGUP/DOWN, LEFT and RIGHT
If *Event\keyval = #GDK_Prior Or *Event\keyval = #GDK_Next Or *Event\keyval = #GDK_Left Or *Event\keyval = #GDK_Right
AutoComplete_Close()
ElseIf *Event\keyval <> $FF52 And *Event\keyval <> $FF54
gtk_widget_event_(GadgetID(*ActiveSource\EditorGadget), *Event) ; pass on any events except for up/down to the editor
ProcedureReturn 1
EndIf
EndIf
ProcedureReturn 0
EndProcedure
CompilerEndIf
CompilerIf #CompileLinuxQt
ProcedureC AutoComplete_QtEventFilter(*Event)
If AutoCompleteWindowOpen
Type = QT_EventType(*Event)
If Type = 9 ; QEvent::FocusOut
AutoComplete_Close()
ProcedureReturn 1 ; event handled
ElseIf Type = 6 Or Type = 7 ; QEvent::KeyPress or QEvent::KeyRelease
Key = QT_EventKey(*Event)
; Close on PGUP/DOWN, LEFT and RIGHT
If Key = 01000016ドル Or Key = 01000017ドル Or Key = 01000014ドル Or Key = 01000012ドル
AutoComplete_Close()
ProcedureReturn 1 ; event handled
; Normal gadget handling for up and down
ElseIf Key = 01000013ドル Or Key = 01000015ドル
ProcedureReturn 0
; Tab shortcut does not work with the forwarding trick below
; ElseIf Type = 6 And Key = 01000001ドル And KeyboardShortcuts(#MENU_AutoComplete_OK) = #PB_Shortcut_Tab
; AutoComplete_Insert()
; ProcedureReturn 1
; Send all other keys to the editor
Else
QT_SendEvent(GadgetID(*ActiveSource\EditorGadget), *Event)
ProcedureReturn 1 ; event handled
EndIf
EndIf
EndIf
ProcedureReturn 0 ; do default event handling
EndProcedure
CompilerEndIf
Procedure AutoComplete_SetFocusCallback()
CompilerIf #CompileLinuxGtk
; set the tab handler for the gadget
;
GtkSignalConnect(GadgetID(#GADGET_AutoComplete_List), "key-press-event", @AutoComplete_GtkTabHandler(), 0)
GtkSignalConnect(GadgetID(#GADGET_AutoComplete_List), "key-release-event", @AutoComplete_GtkTabHandler(), 0)
; set up a callback to close the autocomplete window if the user selects some other window
;
GtkSignalConnect(WindowID(#WINDOW_AutoComplete), "focus-out-event", @AutoComplete_GtkFocusSignal(), ElapsedMilliseconds())
CompilerElse
; For both key and focus events
QT_SetEventFilter(GadgetID(#GADGET_AutoComplete_List), @AutoComplete_QtEventFilter())
CompilerEndIf
EndProcedure
Procedure AutoComplete_AdjustWindowSize(MaxWidth, MaxHeight)
EndProcedure
Procedure ToolsPanel_ApplyColors(Gadget)
; Disable ToolsPanel colors for Linux, because of the background
; color bug of GtkTreeView based gadgets that we have no fix for so far.
; Better no color than this ugly color change.
;
; NOTE: This bug seems to be gone, all is working OK in ubuntu 11.04 and PB v4.70
If Gadget = propgrid
grid_SetGadgetColor(Gadget, #Grid_Color_Background, ToolsPanelBackColor)
grid_SetDefaultStyle(Gadget,P_FontGrid, #P_FontGridSize, ToolsPanelFrontColor)
Else
If ToolsPanelUseColors
SetGadgetColor(Gadget, #PB_Gadget_FrontColor, ToolsPanelFrontColor)
SetGadgetColor(Gadget, #PB_Gadget_BackColor, ToolsPanelBackColor)
EndIf
If ToolsPanelFontID <> #PB_Default
SetGadgetFont(Gadget, ToolsPanelFontID)
EndIf
EndIf
EndProcedure
Procedure IsScreenReaderActive()
ProcedureReturn #False
EndProcedure
CompilerEndIf
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

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

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

取消
提交

简介

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

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/PureBasic/purebasic.git
git@gitee.com:PureBasic/purebasic.git
PureBasic
purebasic
PureBASIC
devel
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

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