From 69c08c2aa7a1bc87b8d498a4518b7fc3df485c8c Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sat, 6 Feb 2016 21:01:58 +0100 Subject: [PATCH] docking, allow to move the top splitter with CTRL --- src/ce_main.pas | 6 +++--- wiki/wiki.txt | 13 ++++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/ce_main.pas b/src/ce_main.pas index 61343084..e87eda81 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -889,9 +889,10 @@ begin end; procedure TCEMainForm.LockTopWindow(Sender: TObject; var NewSize: Integer; - var Accept: Boolean); + var Accept: Boolean); begin - accept := false; + //TODO-cdocking: top splitter pos can change even if locked (e.g after resize) + accept := GetKeyShiftState = [ssCtrl]; end; procedure TCEMainForm.InitDocking; @@ -964,7 +965,6 @@ begin topsplt.MoveSplitter(-500); topsplt.OnCanOffset:= @LockTopWindow; end; - end; procedure TCEMainForm.LoadSettings; diff --git a/wiki/wiki.txt b/wiki/wiki.txt index 75b25b67..40277d9a 100644 --- a/wiki/wiki.txt +++ b/wiki/wiki.txt @@ -29,6 +29,8 @@ [lnk_cetodo]: https://github.com/BBasile/Coedit/tree/master/cetodo [lnk_cesyms]: https://github.com/BBasile/Coedit/tree/master/cesyms +[lnk_bugtracker]: https://github.com/BBasile/Coedit/issue + Welcome to Coedit Wiki, the documentation source for the small Windows & Linux IDE for the D programming language. A summary of the content is accessible in the right side-bar. @@ -60,7 +62,7 @@ The latest Coedit version requires at least DMD 2.066. * To uninstall, run the same program but with the `-u` option. * Linux: if coedit has been setup with `sudo` you must also uninstall with elevated privileges: `sudo .\coedit...setup -u`. * Windows: start a console as administrator and execute: `coedit..win32.setup -u`. - * Troubleshooting: run the setup program with the `-l` (or `--list`) option to get the status of the files and use the report to uninstall manually the files or open a ticket [here](https://github.com/BBasile/Coedit/issue). + * Troubleshooting: run the setup program with the `-l` (or `--list`) option to get the status of the files and use the report to uninstall manually the files or open a ticket [here][lnk_bugtracker]. Note for the future versions: * Updating doesn't require to uninstall. @@ -159,7 +161,7 @@ Because the page becomes huge and a long to load, the browsers can fail to scrol ## Bug reports -Bugs can be reported using [this dedicated online utility](https://github.com/BBasile/Coedit/issues). +Bugs can be reported using [this dedicated online utility][lnk_bugtracker]. This place can also be used to suggest enhancements and new features. For discussions, the official D forums [propose a section dedicated to the IDEs](http://forum.dlang.org/group/ide). @@ -388,9 +390,10 @@ Docking can be customized in the [option editor][lnk_widg_opts]: ![](https://raw.githubusercontent.com/BBasile/CoeditWikiData/master/optdock.png) -Note that this feature relies on a component which is in beta state and in case of errors, -it can be necessary to delete the configuration file named _docking.xml_ from the [data folder][lnk_widg_opts], -after what Coedit will start with the default layout. +Note that the docking relies on a component that's in beta state and problems might be encountered: +- space between the menu and the workspace: the splitter can be moved when pressing the CTRL key. +- strange looking layout after reloading (missing splitter between two widgets, or nothing between two splitters): close CE, delete the configuration file named _docking.xml_ from the [data folder][lnk_widg_opts], after what Coedit will start with the default layout. +- other problem: [file an issue][lnk_bugtracker]. # Widgets