Commit Graph

225 Commits

Author SHA1 Message Date
mattias
1021bbb19a IDE: docking: restore: keep autosizing disabled during restore
git-svn-id: trunk@46859 -
2014-11-15 12:39:26 +00:00
mattias
fc489d47da IDE: open windows .lnk files open the target, issue #26808
git-svn-id: trunk@46438 -
2014-10-05 16:44:46 +00:00
mattias
04b76a0df1 IDE: less file stat calls
git-svn-id: trunk@46437 -
2014-10-05 16:12:14 +00:00
juha
f3121878a3 IDE: Make "Build many modes" to always return to original mode. Issue #26797
git-svn-id: trunk@46347 -
2014-09-29 18:22:22 +00:00
mattias
4fa796d65d IDE: view messages, view search results: do not show source editor
git-svn-id: trunk@46335 -
2014-09-26 08:41:27 +00:00
mattias
d95954ac0b IDE: clean up old external tools
git-svn-id: trunk@45943 -
2014-07-20 19:50:17 +00:00
juha
2f1bc3998e Remove Designer dependency from SourceFileManager.
git-svn-id: trunk@45783 -
2014-07-05 10:49:22 +00:00
juha
48a6a75f6c IDE: A new command and entry in Run menu for building many modes at one go.
git-svn-id: trunk@45772 -
2014-07-04 14:31:31 +00:00
juha
7814246bbd IDE: Update "Target file name" for all build modes when saving a project with new name. Issue #24054
git-svn-id: trunk@45759 -
2014-07-03 11:50:49 +00:00
juha
83a1cb22c1 IDE: Project save functions, formatting and renaming variables.
git-svn-id: trunk@45758 -
2014-07-03 11:50:45 +00:00
juha
f077b490ad IDE: change class name -> TFileOpener. Cleanup.
git-svn-id: trunk@45707 -
2014-06-27 08:36:58 +00:00
juha
5ac2862006 IDE: get rid of PageIndex and WindowIndex params in TFileOpenClose methods.
git-svn-id: trunk@45706 -
2014-06-27 08:36:54 +00:00
juha
9b627e08b7 IDE: get rid of Flags parameter in TFileOpenClose methods.
git-svn-id: trunk@45705 -
2014-06-27 08:36:50 +00:00
juha
e9b671104b IDE: get rid of UseWindowID parameter in TFileOpenClose methods.
git-svn-id: trunk@45704 -
2014-06-27 08:36:47 +00:00
juha
1ee6bb71b6 IDE: move method AvailSrcWindowIndex out of GetAvailableUnitEditorInfo.
git-svn-id: trunk@45703 -
2014-06-27 08:36:43 +00:00
juha
e1034b74cc IDE: make wrappers or TFileOpenClose methods global functions. Refer to SourceFileMgr singleton when needed.
git-svn-id: trunk@45702 -
2014-06-27 08:36:39 +00:00
juha
1b53356f3f IDE: move method OpenFileInSourceEditor to class TFileOpenClose.
git-svn-id: trunk@45701 -
2014-06-27 08:36:35 +00:00
juha
5a3d5f3dd2 IDE: move method GetAvailableUnitEditorInfo to class TFileOpenClose.
git-svn-id: trunk@45700 -
2014-06-27 08:36:31 +00:00
juha
6421533afc IDE: move OpenMainUnit and RevertMainUnit to class TFileOpenClose.
git-svn-id: trunk@45699 -
2014-06-27 08:36:28 +00:00
juha
1d653dc9e3 IDE: move common code to a local function in TFileOpenClose.FindFile.
git-svn-id: trunk@45698 -
2014-06-27 08:36:24 +00:00
juha
581bc575ac IDE: remove AFileName param from TFileOpenClose.OpenEditorFile, use FFileName directly.
git-svn-id: trunk@45697 -
2014-06-27 08:36:20 +00:00
juha
1d006720b1 IDE: remove CurFileName param in TFileOpenClose.FindFile, use FFileName directly.
git-svn-id: trunk@45696 -
2014-06-27 08:36:16 +00:00
juha
112d4ba761 IDE: get rid of IsIncludeDirective param in GetFilenameAtRowCol.
git-svn-id: trunk@45695 -
2014-06-27 08:36:12 +00:00
juha
3639381e46 IDE: get rid of parameters in TFileOpenClose.OpenFileAtCursor.
git-svn-id: trunk@45694 -
2014-06-27 08:36:09 +00:00
juha
7f58002af2 IDE: get rid of parameters in OpenNotExistingFile.
git-svn-id: trunk@45693 -
2014-06-27 08:36:05 +00:00
juha
02379a1236 IDE: get rid of rest of the parameters in OpenUnknownFile.
git-svn-id: trunk@45692 -
2014-06-27 08:36:01 +00:00
juha
aa3c4d5732 IDE: get rid of Handled param in OpenUnknownFile.
git-svn-id: trunk@45691 -
2014-06-27 08:35:57 +00:00
juha
537b4962cd IDE: move method OpenUnknownFile to class TFileOpenClose.
git-svn-id: trunk@45690 -
2014-06-27 08:35:53 +00:00
juha
48701434d2 IDE: Move OpenNotExistingFile to new TFileOpenClose class.
git-svn-id: trunk@45689 -
2014-06-27 08:35:49 +00:00
juha
0bb3949faa IDE: move a piece of common code to TSourceEditorManager.
git-svn-id: trunk@45688 -
2014-06-27 08:35:44 +00:00
juha
20b51931f7 IDE: tweak and remove some variables in OpenEditorFile. Remove useless return value.
git-svn-id: trunk@45687 -
2014-06-27 08:35:39 +00:00
juha
a1950a42d2 IDE: refactor methods OpenKnownFile and OpenUnknownFile out of OpenEditorFile.
git-svn-id: trunk@45686 -
2014-06-27 08:35:36 +00:00
juha
042d8fed63 IDE: refactor methods PrepareFile and ChangeEditorPage out of OpenEditorFile.
git-svn-id: trunk@45685 -
2014-06-27 08:35:31 +00:00
juha
253b7b7eb2 IDE: rename private method in TFileOpenClose: PrepareInternalFile -> CheckInternalFile.
git-svn-id: trunk@45684 -
2014-06-27 08:35:27 +00:00
juha
e9c6ac3119 IDE: refactor PrepareRevert out of OpenEditorFile.
git-svn-id: trunk@45683 -
2014-06-27 08:35:24 +00:00
juha
f355ed2554 IDE: rename private method in TFileOpenClose: PrepareRevert -> CheckRevert.
git-svn-id: trunk@45682 -
2014-06-27 08:35:20 +00:00
juha
f1c0a955c8 IDE: use private variables in OpenEditorFile, harmonize parameter names.
git-svn-id: trunk@45681 -
2014-06-27 08:35:15 +00:00
juha
96e8c1781b IDE: refactor PrepareInternalFile out of OpenEditorFile.
git-svn-id: trunk@45680 -
2014-06-27 08:35:10 +00:00
juha
ddc6848616 IDE: refactor PrepareRevert out of OpenEditorFile.
git-svn-id: trunk@45679 -
2014-06-27 08:35:06 +00:00
juha
272ec933be IDE: refactor local functions from OpenFileAtCursor to private methods.
git-svn-id: trunk@45678 -
2014-06-27 08:35:01 +00:00
juha
c866e34ef7 IDE: refactor OpenEditorFile() and OpenFileAtCursor() into a new TFileOpenClose. The diff is misleading, identical blocks were found around the code.
git-svn-id: trunk@45677 -
2014-06-27 08:34:56 +00:00
mattias
8913df7a49 IDE: started checking component classes depending on resource format
git-svn-id: trunk@45659 -
2014-06-25 10:11:30 +00:00
juha
669a093a53 IDE: Tweak some resource strings with newlines. Pass consecutive newlines from caller but use one %s param.
git-svn-id: trunk@45555 -
2014-06-16 19:48:52 +00:00
juha
45a06804fd IDE: adjust lineendings of some resource strings.
git-svn-id: trunk@45551 -
2014-06-16 17:59:56 +00:00
juha
baf0ce059f IDE: fix a crash when opening a file with flag [ofRevert] but no editor yet opened for that file.
git-svn-id: trunk@45550 -
2014-06-16 15:56:06 +00:00
juha
75b7c1bd1e IDE: Use hard-coded quotation in some resourcestrings instead of %s parameters.
Makes Format() calls and translations easier although initially creates fuzzy lines in PO files.

git-svn-id: trunk@45519 -
2014-06-15 11:52:01 +00:00
juha
8197d8ec37 IDE: Refactor, join and reuse common code in methods CloseAll and InvertedFileClose. Also fixes a bug.
git-svn-id: trunk@45462 -
2014-06-10 16:10:56 +00:00
juha
e4079b2d24 IDE: Hard-code '"' in some SourceFileManager resourcestrings.
git-svn-id: trunk@45461 -
2014-06-10 16:10:51 +00:00
juha
7138d69f4a Designer: Simplify code.
git-svn-id: trunk@45460 -
2014-06-10 16:10:47 +00:00
juha
89f98718d1 IDE: fix DebugLn texts in SourceFileManager methods.
git-svn-id: trunk@45459 -
2014-06-10 16:10:43 +00:00
juha
dd98353d82 IDE: refactor, move 2 methods from Main to SourceFileManager.
git-svn-id: trunk@45455 -
2014-06-10 16:10:26 +00:00
mattias
403ed545d1 IDE: enabled new external tools by default, use old code with -dEnableOldExtTools
git-svn-id: trunk@45396 -
2014-06-08 10:19:28 +00:00
mattias
39995327cc IDE: reference/release external tools, auto free
git-svn-id: trunk@45301 -
2014-06-02 10:04:34 +00:00
mattias
1fc6cfbc6a IDE: clean up
git-svn-id: trunk@45277 -
2014-06-01 08:47:49 +00:00
juha
ac42195df8 IDE: formatting
git-svn-id: trunk@45270 -
2014-05-31 22:27:23 +00:00
juha
3b0756cebb IDE: Move method PublishModule to SourceFileManager.
git-svn-id: trunk@45269 -
2014-05-31 22:27:19 +00:00
juha
3bcf74cf3f IDE: refactor, move 3 more methods from MainIDE to SourceFileManager.
git-svn-id: trunk@45267 -
2014-05-31 22:27:11 +00:00
juha
624af549f8 IDE: cleanup
git-svn-id: trunk@45266 -
2014-05-31 22:27:06 +00:00
juha
debd43a9dc IDE: refactor, move 3 methods from MainIDE to SourceFileManager.
git-svn-id: trunk@45265 -
2014-05-31 22:27:02 +00:00
juha
91a561581b IDE: remove unneeded search paths from all build modes.
git-svn-id: trunk@45264 -
2014-05-31 22:26:58 +00:00
juha
f40a7e6671 IDE: open a build mode selection dialog for adding paths only if there are > 1 build modes.
git-svn-id: trunk@45263 -
2014-05-31 22:26:54 +00:00
mattias
3dc847126b IDE: open file: if in project search path, do not check if it is a symlink
git-svn-id: trunk@45250 -
2014-05-30 15:52:04 +00:00
mattias
62828003be IDE: openproject: always resolve symlinks in lpi filename, because project directory is used as working directory for fpc
git-svn-id: trunk@45248 -
2014-05-30 13:50:10 +00:00
mattias
30c58e48d6 IDE,lazutils: added GetPhysicalFilenameCached
git-svn-id: trunk@45247 -
2014-05-30 13:41:20 +00:00
mattias
ba5afa23a2 IDE: fixed initializing var
git-svn-id: trunk@45103 -
2014-05-20 09:27:18 +00:00
mattias
1c1300939f IDE: remove/rename unit in lpr if it is a pascal source
git-svn-id: trunk@44170 -
2014-02-19 15:48:29 +00:00
juha
dcc0a1c2d1 IDE: When adding the path of a new file to project search path, ask which build modes to add it to. Issue #23714.
git-svn-id: trunk@43592 -
2013-12-25 17:23:46 +00:00
juha
3c1bd6b897 IDE: Refactor 2 methods into one CheckDirIsInSearchPath. Add param IsIncludeFile.
git-svn-id: trunk@43591 -
2013-12-25 17:23:29 +00:00
juha
a423400047 IDE: Refactor, move 2 methods from Main to SourceFileManager.
git-svn-id: trunk@43590 -
2013-12-25 17:23:16 +00:00
mattias
f7c7f989ee IDE: further migration external tools
git-svn-id: trunk@42342 -
2013-08-05 07:26:12 +00:00
mattias
ddd03e966d IDE: further migration external tools
git-svn-id: trunk@42335 -
2013-08-04 20:34:00 +00:00
mattias
cf4f0b577b IDE: further migration external tools
git-svn-id: trunk@42295 -
2013-08-03 19:33:59 +00:00
mattias
a3c0c0d439 IDE: further migration external tools
git-svn-id: trunk@42292 -
2013-08-03 18:39:14 +00:00
mattias
109e2af7e6 IDE: clean up
git-svn-id: trunk@42284 -
2013-08-03 15:07:55 +00:00
mattias
16ac086593 IDE: check lfm in editor: auto open lfm of a form
git-svn-id: trunk@41986 -
2013-07-03 20:39:48 +00:00
mattias
e02311e159 IDE: create project for program file: set TargetFilename to source filenme, bug #23379
git-svn-id: trunk@41846 -
2013-06-23 18:06:19 +00:00
mattias
422e68c742 IDE: mode matrix: save enabled options in session modes
git-svn-id: trunk@41461 -
2013-05-30 14:29:43 +00:00
mattias
62106a6be3 IDE: mode matrix: saving enabled matrix options in session
git-svn-id: trunk@41436 -
2013-05-27 18:16:48 +00:00
mattias
18915a1cd0 IDE: fixed Open file opening project
git-svn-id: trunk@41249 -
2013-05-17 22:11:59 +00:00
juha
be63c30bff IDE: formatting
git-svn-id: trunk@41088 -
2013-05-09 11:52:11 +00:00
juha
ce249b4904 IDE: formatting
git-svn-id: trunk@41054 -
2013-05-06 21:04:17 +00:00
juha
f557c914d8 IDE: Refactoring. Move GetAvailableUnitEditorInfo from main to sourcefilemanager.
git-svn-id: trunk@41053 -
2013-05-06 16:39:48 +00:00
juha
48f88c37ef Revert "Use AllFilesMask everywhere instead of GetAllFilesMask, mask must be fixed in FPC libs"
git-svn-id: trunk@40957 -
2013-04-30 16:35:02 +00:00
juha
73fb9ab0e2 Use AllFilesMask everywhere instead of GetAllFilesMask
git-svn-id: trunk@40849 -
2013-04-19 07:08:03 +00:00
mattias
fd4d0497fc IDE,IDEIntf: added TSourceEditorManagerInterface.ReIndent, added parameter Beautify to TLazProjectFile.SetSourceText
git-svn-id: trunk@40813 -
2013-04-15 08:31:41 +00:00
mattias
28f7611143 IDE: reindent new unit pascal
git-svn-id: trunk@40807 -
2013-04-14 19:16:51 +00:00
mattias
d6cee91c23 IDE: moved creating new unit source to sourefilemanager, it needs editor options
git-svn-id: trunk@40789 -
2013-04-11 10:15:51 +00:00
mattias
6b0e827476 IDE: fixed range check
git-svn-id: trunk@40674 -
2013-03-31 18:51:38 +00:00
mattias
1cfb2f38d8 IDE: verbosity when unitinfo of srcedit not found
git-svn-id: trunk@40576 -
2013-03-17 20:06:00 +00:00
juha
950bdb1d35 IDE: add method "DoSaveEditorFile(const Filename: string; ..." to IDE interface. Analogous to DoCloseEditorFile method with Filename param.
git-svn-id: trunk@40566 -
2013-03-17 11:36:31 +00:00
mattias
d2484275e6 IDE: open file at cursor: do not stop at space when there are quotes
git-svn-id: trunk@40551 -
2013-03-14 20:55:25 +00:00
mattias
bcbe32c0d9 IDE: open file at cursor: check if cursor in quotes, if not, then stop at spaces
git-svn-id: trunk@40550 -
2013-03-14 18:52:32 +00:00
mattias
401d8bc33b IDE: clean up
git-svn-id: trunk@40365 -
2013-02-22 16:46:24 +00:00
mattias
9a6e0c6e66 IDE: unit resources: check dfm
git-svn-id: trunk@40328 -
2013-02-16 16:33:52 +00:00
mattias
f595fb71f7 IDE: added unitresources
git-svn-id: trunk@40326 -
2013-02-16 16:15:18 +00:00
mattias
32330dbc49 IDE: adde verbosity flag -dVerboseLFMSearch to debug frame search, fixed loading MustHaveLFM in LoadComponentDependencyHidden
git-svn-id: trunk@40203 -
2013-02-07 12:32:31 +00:00
mattias
d1f1fbe675 IDE: default loaded unit: check if file exists
git-svn-id: trunk@40190 -
2013-02-05 09:45:01 +00:00
mattias
2c1a0a9089 IDE: load designer form: fixed loading .pas or .pp
git-svn-id: trunk@40098 -
2013-01-31 21:03:25 +00:00
mattias
aec7fa72d7 IDE: fixed duplicate free
git-svn-id: trunk@40036 -
2013-01-30 01:24:18 +00:00
mattias
5394720d97 IDE: fixed compilation
git-svn-id: trunk@40021 -
2013-01-29 13:26:07 +00:00
mattias
cc770a0b35 IDE: open designer: search class: type is sufficient
git-svn-id: trunk@40020 -
2013-01-29 11:16:00 +00:00
mattias
91adfb4999 IDE: open designer form: store the found fallback component classes
git-svn-id: trunk@40019 -
2013-01-29 10:11:31 +00:00
mattias
143f54346f IDE: open designer form: rewrote search algorithm for nested classes
git-svn-id: trunk@40018 -
2013-01-29 10:02:45 +00:00
mattias
c32cd7bcde IDE: fixed loading nested frames
git-svn-id: trunk@40017 -
2013-01-29 08:30:24 +00:00
mattias
31d45f3449 IDE: added new search function for designer components
git-svn-id: trunk@40014 -
2013-01-29 02:06:01 +00:00
martin
86cf02bfa5 SourceEditor: Improve session restore, if more than 2 windows were used.
git-svn-id: trunk@39829 -
2013-01-11 14:59:56 +00:00
mattias
5446aa1fac IDE: close project: close editor file from right to left
git-svn-id: trunk@38937 -
2012-10-01 08:56:40 +00:00
juha
b4440971ec IDE: Make File -> "Close All" cloase also packages. Rename "Close" to "Close Editor File". Issue #12422
git-svn-id: trunk@38921 -
2012-09-30 12:33:52 +00:00
zeljko
0ccdbe8bb6 IDE: fixed wsMinimized behaviour on designed form. issue #21792
git-svn-id: trunk@38872 -
2012-09-27 16:31:45 +00:00
mattias
e382c97306 IDE: fixed open file lpi
git-svn-id: trunk@38851 -
2012-09-27 08:56:55 +00:00
juha
6b90fc2348 Designer: Disable ViewLFM menu item for virtual units
git-svn-id: trunk@38817 -
2012-09-24 20:58:10 +00:00
mattias
066a74ddf6 IDE: clean up
git-svn-id: trunk@38804 -
2012-09-24 06:37:40 +00:00
juha
35994bb452 IDE: Move more methods to SourceFileManager. It has not reference back to main unit any more.
git-svn-id: trunk@38800 -
2012-09-23 19:01:06 +00:00
juha
b393a5bd18 IDE: Move funcs from MainIDE to MainIDEBase (DoMergeDefaultProjectOptions) and to SourceFileManager (CheckMainSrcLCLInterfaces, DoOpenMainUnit, DoRevertMainUnit)
git-svn-id: trunk@38794 -
2012-09-21 20:36:00 +00:00
juha
fdb25262a7 IDE: Move BeginCodeTool to MainBase.
git-svn-id: trunk@38768 -
2012-09-20 22:36:23 +00:00
juha
08589a996b IDE: Move SetRecentFilesMenu from TMainIDE to TMainIDEBase
git-svn-id: trunk@38767 -
2012-09-20 22:01:44 +00:00
mattias
b056f168e4 IDE: fixed saving what project was opened on IDE quit
git-svn-id: trunk@38761 -
2012-09-20 09:00:50 +00:00
mattias
1cafbef514 IDE: save state project closed
git-svn-id: trunk@38755 -
2012-09-19 13:47:18 +00:00
mattias
ae08ad8a5e IDEIntf: fixed typo: favorite should use the American spelling instead of the British favourite
git-svn-id: trunk@38749 -
2012-09-19 13:12:42 +00:00
mattias
643c170bbe IDE: moved SetRecentProjectFilesMenu to mainbase
git-svn-id: trunk@38734 -
2012-09-18 11:59:05 +00:00
juha
45d0f32c80 IDE: move DoNewOther out of TMainIDE, add refactored function NewUnitOrForm
git-svn-id: trunk@38705 -
2012-09-17 00:05:06 +00:00
juha
b0f27fbbcd IDE: remove unused unit names from main.pp uses section
git-svn-id: trunk@38704 -
2012-09-17 00:05:01 +00:00
juha
f05db0a164 IDE: Make TMainIDE.UpdateDefaultPascalFileExtensions a global proc and change its name because there are others with identical name
git-svn-id: trunk@38703 -
2012-09-16 22:37:43 +00:00
juha
ea6e7aa309 IDE: refactor DoOpenFileAtCursor away from MainIDE
git-svn-id: trunk@38702 -
2012-09-16 22:23:34 +00:00
juha
6776632380 New file with code refactored from MainIDE
git-svn-id: trunk@38699 -
2012-09-16 21:03:12 +00:00