From 154025b143e8c3e7a86b46df2dd1bf33b9284565 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 4 Feb 2016 08:05:50 +0100 Subject: [PATCH] default layout --- src/ce_main.lfm | 3 --- src/ce_main.pas | 11 ++++----- src/ce_search.lfm | 62 +++++++++++++++++++++++------------------------ wiki/wiki.txt | 43 ++++++++++---------------------- 4 files changed, 49 insertions(+), 70 deletions(-) diff --git a/src/ce_main.lfm b/src/ce_main.lfm index dff75bef..51b5afed 100644 --- a/src/ce_main.lfm +++ b/src/ce_main.lfm @@ -5,8 +5,6 @@ object CEMainForm: TCEMainForm Width = 745 AllowDropFiles = True Caption = 'Coedit' - ClientHeight = 49 - ClientWidth = 745 Icon.Data = { F1B500000000010001000000000001002000DBB500001600000089504E470D0A 1A0A0000000D49484452000001000000010008060000005C72A8660000B5A249 @@ -1471,7 +1469,6 @@ object CEMainForm: TCEMainForm OnDropFiles = FormDropFiles ShowHint = True LCLVersion = '1.6.0.2' - Visible = False object mainMenu: TMainMenu Images = imgList top = 1 diff --git a/src/ce_main.pas b/src/ce_main.pas index dcb6549a..e9a5e81a 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -891,7 +891,7 @@ begin DockMaster.HeaderStyle := adhsPoints; DockMaster.HideHeaderCaptionFloatingControl := true; - // this is a fix copied from Laz, seems to force the space between the menu and the UI stay 0. + // this is a fix copied from Laz. if DockManager is TAnchorDockManager then begin aManager:=TAnchorDockManager(DockManager); aManager.PreferredSiteSizeAsSiteMinimum:=false; @@ -913,15 +913,14 @@ begin // center DockMaster.ManualDock(DockMaster.GetAnchorSite(fEditWidg), DockMaster.GetSite(Self), alBottom); DockMaster.ManualDock(DockMaster.GetAnchorSite(fMesgWidg), DockMaster.GetSite(fEditWidg), alBottom); - DockMaster.ManualDock(DockMaster.GetAnchorSite(fPrInpWidg), DockMaster.GetSite(fMesgWidg), alBottom); // left - DockMaster.GetAnchorSite(fSymlWidg).Width := 200; - DockMaster.GetAnchorSite(fFindWidg).Width := 200; + DockMaster.GetAnchorSite(fSymlWidg).Width := 160; + DockMaster.GetAnchorSite(fFindWidg).Width := 160; DockMaster.ManualDock(DockMaster.GetAnchorSite(fSymlWidg), DockMaster.GetSite(fEditWidg), alLeft); DockMaster.ManualDock(DockMaster.GetAnchorSite(fFindWidg), DockMaster.GetAnchorSite(fSymlWidg), alBottom, fSymlWidg); // right - DockMaster.GetAnchorSite(fProjWidg).Width := 250; - DockMaster.GetAnchorSite(fPrjCfWidg).Width := 250; + DockMaster.GetAnchorSite(fProjWidg).Width := 260; + DockMaster.GetAnchorSite(fPrjCfWidg).Width := 260; DockMaster.ManualDock(DockMaster.GetAnchorSite(fProjWidg), DockMaster.GetSite(fEditWidg), alRight); DockMaster.ManualDock(DockMaster.GetAnchorSite(fPrjCfWidg), DockMaster.GetAnchorSite(fProjWidg), alBottom, fProjWidg); // close remaining and header to top diff --git a/src/ce_search.lfm b/src/ce_search.lfm index 8268be74..57b0716d 100644 --- a/src/ce_search.lfm +++ b/src/ce_search.lfm @@ -1,26 +1,26 @@ inherited CESearchWidget: TCESearchWidget Left = 742 - Height = 288 + Height = 309 Top = 278 - Width = 393 + Width = 399 Caption = 'Search & replace' - ClientHeight = 288 - ClientWidth = 393 + ClientHeight = 309 + ClientWidth = 399 inherited Back: TPanel - Height = 288 - Width = 393 - ClientHeight = 288 - ClientWidth = 393 + Height = 309 + Width = 399 + ClientHeight = 309 + ClientWidth = 399 inherited Content: TPanel - Height = 288 - Width = 393 - ClientHeight = 288 - ClientWidth = 393 + Height = 309 + Width = 399 + ClientHeight = 309 + ClientWidth = 399 object cbToFind: TComboBox[0] Left = 4 Height = 23 Top = 4 - Width = 385 + Width = 391 Align = alTop AutoSize = False BorderSpacing.Around = 4 @@ -32,8 +32,8 @@ inherited CESearchWidget: TCESearchWidget object btnFind: TBitBtn[1] Left = 4 Height = 24 - Top = 176 - Width = 385 + Top = 197 + Width = 391 Align = alBottom BorderSpacing.Around = 4 Caption = 'btnFind' @@ -78,8 +78,8 @@ inherited CESearchWidget: TCESearchWidget object btnReplace: TBitBtn[2] Left = 4 Height = 24 - Top = 232 - Width = 385 + Top = 253 + Width = 391 Align = alBottom BorderSpacing.Around = 4 Caption = 'btnReplace' @@ -123,14 +123,14 @@ inherited CESearchWidget: TCESearchWidget end object grpOpts: TGroupBox[3] Left = 4 - Height = 114 + Height = 135 Top = 58 - Width = 385 + Width = 391 Align = alClient BorderSpacing.Around = 4 Caption = 'Options' - ClientHeight = 84 - ClientWidth = 381 + ClientHeight = 105 + ClientWidth = 387 TabOrder = 4 object chkWWord: TCheckBox Left = 8 @@ -190,8 +190,8 @@ inherited CESearchWidget: TCESearchWidget object btnReplaceAll: TBitBtn[4] Left = 4 Height = 24 - Top = 260 - Width = 385 + Top = 281 + Width = 391 Align = alBottom BorderSpacing.Around = 4 Caption = 'btnReplaceAll' @@ -237,18 +237,18 @@ inherited CESearchWidget: TCESearchWidget Left = 4 Height = 23 Top = 31 - Width = 385 + Width = 391 Align = alTop BorderSpacing.Around = 4 BevelOuter = bvNone ClientHeight = 23 - ClientWidth = 385 + ClientWidth = 391 TabOrder = 5 object cbReplaceWth: TComboBox Left = 108 Height = 23 Top = 0 - Width = 277 + Width = 283 Align = alClient Anchors = [akTop, akLeft, akBottom] ItemHeight = 0 @@ -270,19 +270,19 @@ inherited CESearchWidget: TCESearchWidget object Panel2: TPanel[6] Left = 4 Height = 24 - Top = 204 - Width = 385 + Top = 225 + Width = 391 Align = alBottom BorderSpacing.Around = 4 BevelOuter = bvNone ClientHeight = 24 - ClientWidth = 385 + ClientWidth = 391 TabOrder = 6 object btnFindAll: TBitBtn Left = 0 Height = 24 Top = 0 - Width = 354 + Width = 360 Align = alClient Caption = 'btnFindAll' Glyph.Data = { @@ -324,7 +324,7 @@ inherited CESearchWidget: TCESearchWidget TabOrder = 0 end object btnAllScope: TBitBtn - Left = 356 + Left = 362 Height = 24 Top = 0 Width = 29 diff --git a/wiki/wiki.txt b/wiki/wiki.txt index 26140b06..22114b05 100644 --- a/wiki/wiki.txt +++ b/wiki/wiki.txt @@ -60,7 +60,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. + * 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). Note for the future versions: * Updating doesn't require to uninstall. @@ -85,31 +85,13 @@ If they are not correctly set, for each of the following file **coedit**, **dcd- either set the permission in the context menu (check _allow execution_ or _executable_ depending on the desktop) or `chmod a+x` the file in a console. -Under linux, since no **.deb** or **.rpm** are provided, you can verify that the following packages are already present. -Since they are mostly related to gtk2, they already should be installed: - -> libpthread.so.0 -libX11.so.6 -libgdk_pixbuf-2.0.so.0 -libgtk-x11-2.0.so.0 -libgdk-x11-2.0.so.0 -libgobject-2.0.so.0 -libglib-2.0.so.0 -libgthread-2.0.so.0 -libgmodule-2.0.so.0 -libpango-1.0.so.0 -libcairo.so.2 -libatk-1.0.so.0 -libdl.so.2 -libc.so.6 - ## Build the sources Download ans setup the tools: -* [Download](http://lazarus.freepascal.org/index.php?page=downloads) and setup the latest Lazarus version (1.6) and FPC + FPC sources (3.0.0.1) for your platform. +* [Download](http://lazarus.freepascal.org/index.php?page=downloads) and setup the latest Lazarus version (1.6) and FPC + FPC sources (3.0.0) for your platform. * Windows: the three packages are bundled in an installer. Even on Windows 64 bit, the 32 version must be setup. - * Linux: the three packages must be downloaded and setup individually. Take care to the version number because the official rpm/deb source of a Linux distribution does not always propose the latest version ! + * Linux: the three packages must be downloaded and setup individually. It's recommended to download the packages from _SourceForge_ and not from the official repository of the distribution because they don't always propose the latest version. * [Clone](https://github.com/BBasile/Coedit.git) Coedit git repository. There are two ways to do it (console or a git GUI). If you've never used Git at all, you can try [Source-Tree](http://www.sourcetreeapp.com/), a freeware Git/Mercurial GUI that is distributed with a Git copy. @@ -145,10 +127,10 @@ Only the _x86-64_ _rpm_ is available (Fedora, openSuse, ...). After the installa # How to contribute -## Programming +## Development -Any Pascal or Delphi programmer who has interest to the D language can contribute. -The process is based on _git_ and _Github_, using what's often called the _fork push pull_ model: +Any Pascal or Delphi programmer who is also interested by the D language can contribute. +The process is based on _git_ and _Github_, using what's called the _fork push pull_ model: - fork the _Coedit_ repository in your _Github_ account. - clone this fork to your computer. @@ -161,7 +143,7 @@ The process is based on _git_ and _Github_, using what's often called the _fork The maintainer will be notified of the request, which could be merged after review. -## Linux packages +## Distribution In addition to the setup program, **.deb** and **.rpm** would be welcome. They can be build using the binaries that are proposed in a zip for each release. @@ -170,16 +152,17 @@ In addition to the setup program, **.deb** and **.rpm** would be welcome. They c The documentation (the sources of this wiki) need to be reviewed, as it's currently written by a non native English speaker. The wiki can be edited locally by cloning [this git repository](https://github.com/BBasile/Coedit.wiki.git). It's also possible to propose pull requests in the main repository since the [wiki source is present](https://github.com/BBasile/Coedit/tree/master/wiki). -As tool, one of the numerous markdown editor available on the web can be used, for example [StackEdit](https://stackedit.io/editor). +As tool, one of the many markdown editor available on the web can be used, for example [StackEdit](https://stackedit.io/editor). -There is also a huge need to split the wiki in pages. Because the page became huge and a long to load, -the browsers often fail to scroll to a particular anchor. +There is also a huge need to split the wiki in pages. +Because the page becomes huge and a long to load, the browsers can fail to scroll to a particular anchor. ## Bug reports Bugs can be reported using [this dedicated online utility](https://github.com/BBasile/Coedit/issues). -It can be a bug report (BR), a feature request (FR). -General questions and discussions (Q, BLA) about the use are also allowed since there is no other dedicated place to talk about CE. +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). # Menu reference