1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-20 09:04:43 +00:00
Commit graph

726 commits

Author SHA1 Message Date
Luke Ceddia
dde46b7092 Support -f options for layout 2024-06-26 21:52:58 +10:00
Luke Ceddia
23210b0452 Output formatted code with -y switch 2024-06-26 21:52:58 +10:00
Roland Heyder
4cde18ef75 Rework histories to use buffers
- maintain search and recent files histories in buffers
- histories keep the  last 100 entries used
- buffers are saved to disk at exit and are restored on next IDE session
2024-06-23 19:25:56 +02:00
Roland Heyder
cd68fa311a Move function (refactor)
- move RemoveDoubleSlashes$() into utilities\file.bas and make it proper case
- adapt all calls to it accordingly
2024-06-23 17:21:06 +02:00
Roland Heyder
59d8777689 Longstanding bugs fixed
- Select All (CTRL-A) in the help text actually didn't select ALL after text was selected manually once before, because Help_cx1/_cy1 were not reset (bug goes back to the SDL versions)
- help text width is a known value, no need to set millions of chars
- fixed Definition lists eating the first char, if list introducer is followed by space
2024-06-19 15:43:16 +02:00
Roland Heyder
c92a050116 IDE Help Menu revision
- added ´Metacommands´ and ´Variable Types´ items for direct access to the respective wiki pages
- reworded the item desciptions
2024-06-19 15:11:30 +02:00
Roland Heyder
718b900b07 IDE Help extension
- added further pages to the core pages queue
- added handling for new {{PageReferences}} wiki template
- added more name substitutes for the breadcrumb links
2024-06-19 14:58:29 +02:00
Luke Ceddia
90af0d6e73 Reliably enable window defocus on Linux
The FocusIn/FocusOut X11 events are more reflective of active
foreground window that Enter/Leave, which only relates to mouse
movement. In particular, FocusOut fires when Alt-Tabbing away
so the alt key is correctly released.

Also re-enable IDE defocus processing on Linux so the Alt key no
longer keeps the menus selected when Alt-Tabbing.
2024-06-03 08:07:41 +10:00
Steve McNeill
6a895f8405 Optimize string addition somewhat to reduce IDE lag
Very simple change here, to basically take:

a$ = b$ + c$ + d$ + e$ + f$

And make it:

a$ = b$ + (c$ + d$ + e$) + f$

....

This speeds up the IDE due to (c$ + d$ + e$) being small strings, while a$ and f$ are larger strings...  It's more efficient to move and add those small strings first, than it is to add them to the large strings, making them larger, at each step.
2024-06-02 16:34:15 -04:00
Luke Ceddia
49f0471e03
Assume UDT sizes are whole number of bytes
This allows simplifying how the size of UDT arrays are calculated,
and thus not leave memory uninitialised when doing a redim that
expands the array size.
2024-06-01 20:12:59 +10:00
Steve McNeill
b40a7fa264 Fix typo.
How the BLEEP did that happen?  /blush
2024-04-30 02:53:51 -04:00
Steve McNeill
595698115d Change to IDE reporting "Caused by SUB VWATCH" to make it "Caused by End of Program" 2024-04-30 02:46:30 -04:00
Roland Heyder
4c2aad55f7 Fixed Wiki links
Fixed wrong wiki page links after SELECT CASE caused by missing flags.
2024-04-29 22:06:05 +02:00
Samuel Gomes
0322491a2b Open GUI file dialog when Ctrl+S is pressed 2024-04-06 05:50:30 +05:30
Roland Heyder
5a04b6f1c2 Fix "Export As" menu state
Instead of being disabled by default after certain actions (those which affected the recent files list and so forced a rebuild of the "File" menu), now the current state of the "Export As" item is passed through to the rebuild procedure.
2024-03-19 00:53:49 +01:00
Matthew Kilgore
c0ac4c58d0 Fix math evaluator
The math evaluator was not running the input through lineformat before
evaluation, resulting in Evaluate_Expression$() giving the wrong result
since the input wasn't tokenized.
2024-02-13 15:57:17 -05:00
Roland Heyder
21b9ad99f7 3.) Refactor external dependencies checks
- adds filetype IDs
- now includes DECLARE LIBRARY files
- allows immediate recompile after error whitout the need to make a "fake" change to the program first
2024-02-07 21:04:39 +01:00
Roland Heyder
a7de88dfee 2.) Steve's fixes
- changes to Open/Save dialogs suggested by Steve to avoid adding a second extension
2024-02-07 20:53:53 +01:00
Roland Heyder
cf71beb796 1.) Some case corrections 2024-02-07 20:45:55 +01:00
Roland Heyder
5c08642b80 Some simple refactoring
- adds some useful info to the test docs
- remove handmade CRC32 function
- use new featured function(s) instead
2024-02-03 21:45:45 +01:00
Roland Heyder
ba90208c27 Add external dependencies checks
- tracks required external files for changes and triggers a rebuild if needed
- $EXEICON file
- $MIDISOUNDFONT (incl. the DEFAULT one)
- $INCLUDE (incl. nested ones)
- $EMBED files
- internal includes as forced by $COLOR or $DEBUG
2024-01-30 13:04:03 +01:00
RainRat
f65a74c22a fix typos 2024-01-28 10:37:47 -08:00
Roland Heyder
b8424f1336 Refactoring $ASSERTS:CONSOLE highlighting
- according to other multipart meta-commands, make the CONSOLE part a regular keyword
- grouping meta handling blocks (removed some blank lines)
2024-01-26 00:32:11 +01:00
Roland Heyder
9bbd125e45 Refactoring ExportAs function
- reduce memory impact
- fix $NOPREFIX issue
- improved checks to avoid faulty highligting of unquoted text in DATA lines and meta lines such as $VERSIONINFO or $ERROR
- fixed a wrong Wiki link (SHELL fucntion)
2024-01-26 00:15:41 +01:00
Matthew Kilgore
90941fffa7 Replace CONSTs while we have the individual elements
This moves the CONST replacement up before we turn the elements into a
single string. The advantage is that we don't have to worry about
splitting the string properly to find the CONST names as the elements
are already split for us.t
2024-01-18 13:00:13 -05:00
SteveMcNeill
79d48113f2 IDE Module Error Fix
When loading a font, and that  font wasn't found, we were tossing an IDE Module Error at the users.  This corrects that glitch and even pops up a notification letting them know that the font wasn't found, before reverting back to the old font handle.
2023-12-08 12:48:47 -05:00
SteveMcNeill
442f620dbe Chance IDE save method as discussed on Discord
String manipulation has too much overhead for larger files to write all at once.   The best write speeds, from multiple testing experiments in various conditions, come from simply using PUT to place the data line by line to the drive.

This change reflects that method of file saving.
2023-11-28 16:04:05 -05:00
SteveMcNeill
f5800fe9a7 Move IF outside of loop for efficiency 2023-11-07 16:32:02 -05:00
SteveMcNeill
0ec0dd62f3 Update QB64PE for faster file saving
As per the discussion here: https://qb64phoenix.com/forum/showthread.php?tid=2144
2023-11-07 14:36:34 -05:00
SteveMcNeill
f27a9129d0 Wait for key release before running
Issue #290
2023-10-15 08:26:16 -04:00
Samuel Gomes
bc8047563e Fix MENU ITEM [Run #Only (No EXE) NOT IMPLEMENTED! 2023-10-05 22:20:38 +05:30
Samuel Gomes
dae6beba08 Few IDE menu cosmetic fixes 2023-09-22 10:28:39 +05:30
Samuel Gomes
28d1bf1aac Remove legacy audio code from the compiler 2023-09-22 10:10:04 +05:30
Roland Heyder
7cd648c143 Feature request
see https://qb64phoenix.com/forum/showthread.php?tid=2017&pid=19971#pid19971
2023-09-22 00:34:19 +02:00
Samuel Gomes
1a43246c65 Add additional case sensitive file filters for *nix 2023-08-24 22:07:13 +05:30
Samuel Gomes
1fc5792d57 Default_StartDir is now shared between SaveFile() & OpenFile() 2023-08-24 21:57:35 +05:30
Samuel Gomes
634bee63eb Fix save dialog filter 2023-08-23 00:51:00 +05:30
Samuel Gomes
3b44191330 Make SaveFile$ return "C" on cancel 2023-08-23 00:01:48 +05:30
SteveMcNeill
adf46cdf62 Add GUI option to #Save
Correct glitch on not canceling properly with GUI input.
2023-07-11 22:05:10 -04:00
SteveMcNeill
00921c6d84 Savefile GUI added to IDE
Added the ability to use the Save Dialogs in the IDE.
2023-07-11 10:49:58 -04:00
Roland Heyder
3393f899bb Some refactoring
- also fix meta command color in new forum export
2023-06-09 15:58:54 +02:00
Roland Heyder
8eda570604 Improves code export
- added ability to export as new [qb=export] Forum codebox
- Forum/Wiki exports now go to the clipboard and can directly be pasted into the Forum post or Wiki page
2023-06-09 10:37:03 +02:00
RainRat
3914037c0f fix typos 2023-04-30 15:20:42 -07:00
Roland Heyder
c2df60db6f Fix pre-compiler highlighting
- in pre-compiler lines, the regular keywords such as AND, OR, XOR and the final THEN are rendered with meta command color
2023-03-28 23:43:46 +02:00
Roland Heyder
84e51c20e2 Add link titles in HTML export
- titles are usually shown as tool tip in a browser
- almost useless, but made to be in line with Wiki behavior
2023-03-28 12:43:33 +02:00
Roland Heyder
a34907edef Export finetuning
- strip useless line feeds after last code line
- fix some wrong wiki links
2023-03-28 10:19:17 +02:00
Roland Heyder
da5f789fd3 Fix File menu
Fix a bad interaction between "Export As" and the recent files list.
2023-03-20 01:30:55 +01:00
Roland Heyder
9d9e063b67 Multiple IDE instance fix
When exporting "Untitled" code, then take current IDE instance into account.
2023-03-19 22:56:11 +01:00
Roland Heyder
c52d3bcd28 Add code export abilities
Use File menu > Export As... to export current code as HTML, Rich Text or Wiki example.
2023-03-19 12:27:54 +01:00
Roland Heyder
b1c9733420 Removes old code
- unused (commented) code
- no longer needed HTML tag handling (eliminated from Wiki pages)
- #toc/#top link filters removed (those links are supported now)
2023-02-12 19:41:25 +01:00