Commit Graph

991 Commits

Author SHA1 Message Date
Basile Burg 5fd10645ac #10, get file list for curr conf
- still missing: exclusions + mainSourceFile
2015-09-16 13:32:04 +02:00
Basile Burg 612b30c1a5 fix, symbol list broken under linux since bcf479b3fe, due to not input stream size 2015-09-16 03:25:31 +02:00
Basile Burg 46af83d137 fix, possible bug when getting cwd and if project drive was not the first 2015-09-16 03:23:35 +02:00
Basile Burg f3ee6451b8 fix, getExeFullPath did not work when file was in cwd 2015-09-16 02:52:46 +02:00
Basile Burg 95fae8efbb work on #39 for the linux platform 2015-09-16 02:49:53 +02:00
Basile Burg 22b9b8d47a fix error when dast not found 2015-09-15 23:07:37 +02:00
Basile Burg 7e50d1ba77 sw-2
- adapter symbol list widget
- compared to previous system errors and warnings are missing
2015-09-15 18:44:37 +02:00
Basile Burg 26196d8a23 fix, reload last stuff, does not handle temp/unsaved modules 2015-09-15 18:41:51 +02:00
Basile Burg 3ac5fef89b sw-1 2015-09-15 14:00:23 +02:00
Basile Burg d1368d3939 added ddemangle to to tool infos 2015-09-14 15:54:41 +02:00
Basile Burg 1254f45ecd demangling, only called manually, messages-widget context menu. 2015-09-14 15:54:20 +02:00
Basile Burg cf0d62f0b7 more for #24 2015-09-14 04:38:34 +02:00
Basile Burg 44b48164ae implements #24, demangle messages
problem: this doesn't work on types, ddemangle does not call the function to do that
2015-09-14 04:25:56 +02:00
Basile Burg fd5e3219c3 fix, exceptions in the options editor 2015-09-14 04:22:41 +02:00
Basile Burg fd552ba69b nothing 2015-09-10 15:56:41 +02:00
Basile Burg 7b66664bc0 native proj editor, only enable conf selector when cat is specific to a conf 2015-09-10 15:56:25 +02:00
Basile Burg 5452333f5a dub project, target type 2015-09-10 13:13:34 +02:00
Basile Burg 54fdeeed9c dub build, pass the right type + config 2015-09-09 13:53:52 +02:00
Basile Burg 08243d3f9d support for drag and drop + open with using a dub json file 2015-09-09 13:52:56 +02:00
Basile Burg 63dedff146 added function to test a dub project validity
valid for Coedit = only JSON
2015-09-09 13:52:20 +02:00
Basile Burg ce2d63713d added ICECOmmonproject.getCommandeLIne
common interface for the action view project command line
2015-09-09 13:51:36 +02:00
Basile Burg 3a37d133a6 fix, interpretation of how dub handle the configs & built types
- default only added if no user-defined
- check for overridden built types
2015-09-08 01:24:26 +02:00
Basile Burg fa4e2b3cf8 work on #10, dub support
- configs and built types are combined
- widget split in two pages: editor and inspector
- inspector displays the combined configs
2015-09-08 00:13:40 +02:00
Basile Burg 4889ebae25 always disable the widgets observing specifically the native projects when the project is a dub one 2015-09-08 00:08:56 +02:00
Basile Burg 9bc1db76ca remove context menu from the search widget 2015-09-08 00:07:46 +02:00
Basile Burg a8f2f442d4 get tab caption, small optimization
- only lex if doc is D source
2015-09-07 15:54:06 +02:00
Basile Burg e26f8494af fix, possible AV when lexing nothing 2015-09-07 15:52:58 +02:00
Basile Burg fe1e1468ee fix some error in #35 implementation
- wrong filename saved
- AV on exit because entity not removed from list
2015-09-07 15:46:46 +02:00
Basile Burg 19b15b06db implemented reload last docs and proj, close #35
via another editable option class dsiplayed as 'Application' and saved as 'application.txt'
2015-09-07 15:30:27 +02:00
Basile Burg 1b357826ee implemented first script line used to pass dmd switch, close #36
- optional
- support for symbolic strings
2015-09-07 12:20:15 +02:00
Basile Burg 0aaebbb4e7 added funct to eliminate dups in TStrings 2015-09-07 12:12:46 +02:00
Basile Burg 706c3ff3d5 implemented base/overridden config, close #37 2015-09-06 20:33:21 +02:00
Basile Burg 347b23caf4 fix, project-related messages not cleared anymore before compiling 2015-09-06 03:59:59 +02:00
Basile Burg e9aefad611 allow the custom tools params to be temp disabled 2015-09-05 22:53:48 +02:00
Basile Burg 5e21c66f2a more for feature #37
still missing pre/post procs and pathsopts
2015-09-05 22:49:42 +02:00
Basile Burg 0e10fade8d support for disabled string syntax in more project fields
- import string paths, import module paths, extra sources.
- use ce_common funct to test if disabled
2015-09-05 22:42:19 +02:00
Basile Burg ac17c180e1 fix missing comparison rhs 2015-09-05 22:37:05 +02:00
Basile Burg a1e83f3bdc added funct isStringDisabled() 2015-09-05 22:30:05 +02:00
Basile Burg 3fbb09be4f remove a dependency to PropEdit and IdeIntf in dmd wrapper
related to #30
2015-09-05 17:10:33 +02:00
Basile Burg d2578128bd native project + dmd wrapper modified to support #37
- partially implemented processing of overriden config
- remaining `getOpt()`functs to adapt are listed in Laz TODO list
2015-09-05 16:39:15 +02:00
Basile Burg 6f5a8e42cb started dub project editor 2015-09-05 11:22:19 +02:00
Basile Burg 95aef4170f style, put locals init in declaration instead of body 2015-09-04 23:48:07 +02:00
Basile Burg 0cc5fe3e5d added tool status for dub 2015-09-04 23:46:58 +02:00
Basile Burg 5743f87761 removed LCL deps in ce_common & ce_nativeproject, prerequisite for #30 2015-09-04 12:11:18 +02:00
Basile Burg 0863f89886 implements #35 (1/2), reload last docs and proj
routines ok,
'as on option': todo.
2015-09-04 01:21:19 +02:00
Basile Burg e1993bafea more explicit action caption 2015-09-02 11:18:06 +02:00
Basile Burg c208316f14 di-6
- action related to run proj in main, ok, but sub routines missing for TCEDubProject
- pretty format DUB proj on save
- proj binary kind in TCECOmmonProject itf, moved enum so that TCEDubProject can use the same values
2015-09-01 19:55:42 +02:00
Basile Burg f389b08008 di-5
project MRU list ready
2015-09-01 17:05:57 +02:00
Basile Burg fedc07005e di-4 2015-09-01 17:03:01 +02:00
Basile Burg fa9b575103 di-3
- todo list widget ready
2015-09-01 16:48:11 +02:00
Basile Burg d1c255d44b di-2
symbol list, CPP is working to make DUB messages clickable.
still TODO in ce_dubproject to expose fsources file names
2015-09-01 16:37:51 +02:00
Basile Burg d373a15012 di-1 2015-09-01 15:35:23 +02:00
Basile Burg 8091356ba5 fix, possible RT err if basepath does not exist 2015-09-01 15:31:06 +02:00
Basile Burg 6da6698ff0 messages, improved filename detector
- works now for the DUB trick (set as pre-build process) only if project root is set to the location of the .json file
- will work as well when DUB integrated (with `<CPP>` expanded to solve relative fname found in the message)
2015-09-01 11:09:51 +02:00
Basile Burg bcf479b3fe symbol list, write source to input rather than using tmp file 2015-09-01 02:50:18 +02:00
Basile Burg 130e11606e DCD integration, write source to input rather than using tmp file 2015-09-01 02:32:07 +02:00
Basile Burg e72f558ff1 about box, status was only auto refresh on create 2015-08-31 17:56:25 +02:00
Basile Burg be20059d6b prevent closing all the widgets when locked
the editor is still always locked.
2015-08-31 17:46:06 +02:00
Basile Burg abdddf29c0 fix #33, piping a pre or post build process leads to AV 2015-08-28 17:57:42 +02:00
Basile Burg e5296b0e7b added new output option 'alwaysLinkStaticLibs'
to preserve previous linking behavior.
related to #28
2015-08-27 12:00:29 +02:00
Basile Burg ebd7e3fda4 fix for the linux version, related to #28
gcc linker does not work like Digital Mars's one,
read more at http://forum.dlang.org/post/xunqvzfxyozznlmniwgg@forum.dlang.org
2015-08-27 11:12:21 +02:00
Basile Burg 8d494845e5 adjusted about box for kde widgeset 2015-08-27 00:54:59 +02:00
Basile Burg 423e1fbc3d fix #32, bat files not anymore accepted as pre & post build process 2015-08-26 18:31:13 +02:00
Basile Burg 9b74529023 fix, about box, status text not fully drawn with gtk 2015-08-26 12:45:00 +02:00
Basile Burg fd3262d02d doc 2015-08-26 12:02:59 +02:00
Basile Burg 144b365596 added about box 2015-08-26 12:02:38 +02:00
Basile Burg 8c7f6cc270 fix, prevented a custom tool to freeze
when two incompatible options are activated
2015-08-26 10:13:36 +02:00
Basile Burg 555c790e1e fix, project pre/post build process CWD ans symstrings
symbols in cwd were not expanded
2015-08-25 20:37:53 +02:00
Basile Burg 031fa42f31 fix, ditto were not always well removed from ddoc 2015-08-25 17:57:50 +02:00
Basile Burg 379d161a7b implemented new data location on linux, close #31 2015-08-25 08:23:41 +02:00
Basile Burg 10cdbcd912 more related to 9cca5e1b12
TWritableLfmTextComponent.readerError does not coever all the error kinds (for example error in conversion from text to bin stream)
2015-08-24 15:00:48 +02:00
Basile Burg 55671cf9e6 test more robustly if file is a project
- on open with (cmd line arg)
- on drag file to editor
2015-08-24 14:50:50 +02:00
Basile Burg 9cca5e1b12 fix, TCECustimWritableComponent, prop hasLoaded could be erroneously set to true 2015-08-24 14:48:36 +02:00
Basile Burg 104d6bc3b6 added function to test if a file is a native project 2015-08-24 14:47:48 +02:00
Basile Burg f9d8bd95b2 nil 2015-08-24 14:47:03 +02:00
Basile Burg 4e29c6ee06 more glyph pos fine tweaking 2015-08-24 12:59:10 +02:00
Basile Burg 8ddad1cbc3 fix, problem with btns glyph with gtk2 2015-08-24 11:49:53 +02:00
Basile Burg 0bbbebd061 refact, dExtList replaces with several function that test the exts
* hasDlangSyntax
* isDlangCompilable
* isEditable
2015-08-24 07:15:31 +02:00
Basile Burg 6d59b11178 fix 28, double definition of a symbol with sub-dependencies
+ improvement, select all the libman entries with an asterisk
2015-08-23 21:25:17 +02:00
Basile Burg 8f8a44a288 fix #26, selection length on status bar is wrong 2015-08-23 16:53:33 +02:00
Basile Burg a4139bdfc1 fix #27, the highlighter does not handle the script line 2015-08-23 16:30:57 +02:00
Basile Burg 977374d00f symstrings, less erroneou CPCD symbol
see 1d769d3583
2015-08-15 09:33:52 +02:00
Basile Burg 1d769d3583 libman, improved register from project.
- libraries made of a single source are more likely to be registered without having to patch the path
- some exception still exist, for example the libraries with several leading empty sub folders (shitty example src/org/eclipse/swt...) 💩
2015-08-15 09:28:56 +02:00
Basile Burg 1fb0c2b432 fix, range violation introduced in f5e5167ebde45881cecf959aecbe42b5bcb33260 2015-08-13 15:09:20 +02:00
Basile Burg 20ef73bb57 ddoc comments, ignore a line that starts with 'ditto'
and optionally a period.
2015-08-12 13:12:19 +02:00
Basile Burg 5004840dde fix, editor freezes if DCD haz crashed, fix #22 2015-08-10 02:54:35 +02:00
Basile Burg 6842050c6f temp workaround for #20 2015-07-27 02:54:39 +02:00
Basile Burg 2e0209be05 related to #18
Windows may sent the exception to the application
2015-07-17 18:21:40 +02:00
Basile Burg e690b7434e added darwin code to get application data path 2015-07-17 16:30:48 +02:00
Basile Burg 4357515016 fix #18, empty drive errors 2015-07-17 16:30:05 +02:00
Basile Burg 6403d23dd7 fine tweaked btn size 2015-07-15 22:28:54 +02:00
Basile Burg 8f01388d0a custom tools: use new TCEProcess
see b911e10e93
2015-07-15 15:38:57 +02:00
Basile Burg 207f0ec066 project runner: uses new TCEProcess
see b911e10e93
2015-07-15 14:47:30 +02:00
Basile Burg 1e4650dccc todo list: uses new TCEProcess
see b911e10e93
2015-07-15 14:35:39 +02:00
Basile Burg 6ece0bf0aa TCEMainForm: uses new TCEProcess
see b911e10e93
2015-07-15 14:29:18 +02:00
Basile Burg 9bb01032b6 symlist: uses new TCEProcess
see b911e10e93
2015-07-15 14:28:57 +02:00
Basile Burg b911e10e93 added TCEProcess, custom TProcess class for Coedit
- will fix the "split line" issue
- will fix globally the 'OnTerminate' event not called (the timer is always enabled, so osx version is guaranteed not to have this issue)
- will be used widely (no more TProcess or TASyncProcess).
2015-07-15 14:28:04 +02:00
Basile Burg 670ab28b67 fix, application.processmessage() caused messages to be cut 2015-07-14 18:02:58 +02:00
Basile Burg 8aa027b79f reverted bf115d9594 2015-07-14 17:53:29 +02:00
Basile Burg 4dbfe58326 fix, runnable dmd compiler message cut
- due to 72975e7185 which is itself due to...
- the problems began with bf115d9594
2015-07-14 17:46:42 +02:00
Basile Burg 72975e7185 fix, process stuck with stdout.flush()
- introduced in bf115d9594.
- runnable module, add `stdout.flush;` then `readln;`
2015-07-14 06:08:17 +02:00
Basile Burg 91ff18f87f symlist: added method to expand the tree on the current declaration 2015-07-14 01:46:49 +02:00
Basile Burg 9e039477fc symlist: does not allocate for each node xtra data
- this happens a lot
- directly use data as an integer
2015-07-14 01:45:56 +02:00
Basile Burg bf115d9594 processOutputToStrings uses processOutputToStream 2015-07-07 18:54:06 +02:00
Basile Burg b8b72af8f3 removed d extension with upper case char
dmd does not take such file.
2015-07-07 18:52:54 +02:00
Basile Burg ff576c985f try to skip empty drives (#18) 2015-07-04 06:48:44 +02:00
Basile Burg 5d621ebf45 workaround for the patch mentioned in fed331360c
ResotreLayout is part of the anchordocking library. get rid of them programmatically in CE.
2015-06-22 07:00:26 +02:00
Basile Burg 3a28c54c26 common project interface - part 2 2015-06-21 03:55:48 +02:00
Basile Burg 9139d8eef7 common project interface - part 1 2015-06-20 15:00:16 +02:00
Basile Burg 3d74bffa3b messages, custom drawn, fixes
- horz scroll bar pos was not handled
- reset horz scroll bar to 0 when new messages are emitted
- constrain color value to make sure selected color <> background color
2015-06-20 11:34:37 +02:00
Basile Burg 5e06daf09e fix, dd files highlighter, used D HL but this not d code.
+ avoid content to be lexed to retrieve module name
2015-06-20 02:53:38 +02:00
Basile Burg fed331360c fix docking issues
- editor cant be disassociated from the menu
- a fix exists for the 3rd part component, but will be only applied if it's accepted by the people in charge (to consider when building CE from source).
- the fix will be applied in the next CE binary release (even if not  officially cherry merged to the Lazarus components).

fix #13
fix #4

waiting for that a widget must not undocked (right click) before getting closed.
2015-06-19 02:38:41 +02:00
Basile Burg 22fcf8a02f fix, message color, live update from option editor 2015-06-18 11:53:26 +02:00
Basile Burg 4391cb2680 added option to colorize messages background 2015-06-18 11:39:29 +02:00
Basile Burg ec22f7b979 why TStrings cannot be directly filled with TProcess.output 2015-06-18 11:05:22 +02:00
Basile Burg 891c746325 Revert "sompler"
This reverts commit f1e21098a7.
2015-06-18 11:02:06 +02:00
Basile Burg 38a57fec33 fix, highlighter sharing, reset range when a doc get focused
some ranges were randomly broken
2015-06-18 09:50:08 +02:00
Basile Burg 45317a2565 range issue doc switch 2015-06-17 23:58:01 +02:00
Basile Burg f1e21098a7 sompler 2015-06-17 23:57:37 +02:00
Basile Burg 97221ea590 darwin 2015-06-17 23:57:15 +02:00
Basile Burg d0ec5886d5 dont consider DUB as a minimal requirement to launch Coedit
building with DUB currently only a trick
briefly explained in the wiki.
2015-06-08 02:41:03 +02:00
Basile Burg 3ef1d25c43 improved symbolic strings
- lazy update happen only when needed
- new symbol `<CPCD>`, which expands to the project sources common directory
- updated demo
2015-06-07 15:55:30 +02:00
Basile Burg 6fc63706f8 removed icon extraction routine
handled by the cesetup
2015-06-05 03:27:02 +02:00
Basile Burg 1a0c006e06 exeInSysPath uses exeFullName 2015-06-04 15:54:14 +02:00
Basile Burg d59d85f750 fix, mostly win32, tools not found when launched from shortcut or shell ctxt handler
tools reside in same folder as CE
- happened if shortcut start directory is not CE app dir
- happened if CE is launched from open/with: cwd didn't allow to find the tools
2015-06-04 15:51:55 +02:00
Basile Burg 280ddd6c98 messages, added option fastDisplay
- when true do not refresh the list for each item
- faster when a lot of messages have to be output
2015-06-03 15:01:58 +02:00
Basile Burg a1672f7187 fix, editor modified file, invalid content could be paste
if new version of the file was an empty file
2015-06-03 14:40:47 +02:00
Basile Burg 2902b26310 fix, projinspect, AV when selecting something 2015-06-03 14:22:53 +02:00
Basile Burg 14ea706981 fix, dock options editor, content could be partially hidden
put in a scrollbox
2015-06-03 11:17:26 +02:00
Basile Burg a81d15e01e proj conf/insp btn enabled only if proj assigned 2015-06-03 11:06:56 +02:00
Basile Burg eaee7ee30a proj inspct, btn enabled only if proj assigned 2015-06-03 10:56:32 +02:00
Basile Burg f014576835 improved project file/folde add
initial dialog dir based on last selected
2015-06-03 10:52:13 +02:00
Basile Burg 8aa4ae52e2 removed cdb commander 2015-06-03 10:36:47 +02:00
Basile Burg 202ba4d8db lfm auto update 2015-06-02 22:47:40 +02:00
Basile Burg fc8eed3c5a updated range comp proc 2015-06-02 22:47:30 +02:00
Basile Burg 5dd4001470 fix, process input wdget remained disabled if process killed manually 2015-05-31 21:07:40 +02:00
Basile Burg ec0a337c1a fix, linux32, phobos not added to libman on first run 2015-05-31 03:29:27 +02:00
Basile Burg fc137ac565 icon, linux, try to extract in system icon dir 2015-05-29 11:59:26 +02:00
Basile Burg 7bc17d96fd added custom coedit icon 2015-05-28 18:48:02 +02:00
Basile Burg fb59694e58 macosx support, more to check 2015-05-28 06:57:29 +02:00
Pradeep Gowda a0ff81dc4a use StrToIntDef to return a default value of 0 incase pgrep returns an invalid Integer 2015-05-27 23:18:30 -04:00
Pradeep Gowda 42aa1e67eb Add `Open` function.
Trim will do the trick of obtaining the pid.
No need for RemoveLeadingChars.
2015-05-27 22:55:57 -04:00
Pradeep Gowda 30b8a74929 Remove redundant `var` declaration. 2015-05-27 22:18:06 -04:00
Pradeep Gowda f35ad0519e Application now compiles on Mac OSX (Yosemite).
Added `internalAppIsRunning` procedure for Darwin.

Uses `pgrep` instead of `ps` as MacOSX's ps lacks the `-C` option.
Instead we will use `pgrep` to query for the applications pid. If the
application is running we will get a positive integer (as a string) in
return which is returned as the `Result` after casting to `Int`.

Also: my first ever ObjectPascal code ;) Hooray!
2015-05-27 21:59:57 -04:00
Basile Burg f6aab96968 messages, bulk update 2015-05-26 13:54:57 +02:00
Basile Burg 42b608d5f1 fix, option editor, generic editor, changes from a dialog were not detected 2015-05-26 11:34:34 +02:00
Basile Burg 0fdab64271 hide TCollection default editor
for example in the category Editor, 'Shortcuts' are not anymore visible but editable in the category shortcuts
2015-05-26 11:13:52 +02:00
Basile Burg e2e9aa8bfe updated options editor interface
- custom editor can indicated if there are any unvalidated modifications
- shortcuts editor modifications can be canceled
2015-05-26 11:08:45 +02:00
Basile Burg 915f168a0c editor option, completion menu case sensitive 2015-05-24 17:31:45 +02:00
Basile Burg 720b66dc15 removed debug message 2015-05-23 11:10:51 +02:00