<br><br><div class="gmail_quote">On 22 May 2010 12:47, Hans-Peter Diettrich <span dir="ltr"><<a href="mailto:DrDiettrich1@aol.com">DrDiettrich1@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Vannus schrieb:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
to handle screen sizes maybe layouts should allow 'absolute' (1280 pixels) or 'relative' (100%) positioning/sizing?<br>
</blockquote>
<br></div>
A nice idea.<br>
<br>
It may lead to strange results, when restoring a layout from a 600x800<br>
screen on a multi-monitor desktop, regardless of whether it's absolute<br>
or relative. Another problem to be solved...<br></blockquote><div><br></div><div>layout should have single, dual, etc modes.</div><div><br></div><div>if i use my laptop, all windows are on that monitor.</div><div>if i plug monitor into my laptop, and move source editor onto this then lazarus should save this as dual mode of the layout.</div>
<div>every time i use laptop without extra screen it uses single mode, every time i plug in monitor it uses dual mode.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Also, who specifies which coordinates should be absolute, and which<br>
should be relative? Do you want to write and use such an editor?<br>
Whenever a layout is to be saved?</blockquote><div><br></div><div>an editor in lazarus windows menu where you can select left, top, width, height, and possibly even anchors editor.</div><div>you would rarely need to use the editor - windows should 'just remember' their relative left, top, width, height positions.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A) Every layout is stored in an file. How can the IDE find the most<br>
appropriate layout file?<br>
<br>
<br>
project1.layout<br>
%user%/lazarus/layouts/default.layout<br>
%user%/lazarus/layouts/myother.layout<br>
%lazarus%/layouts/default.layout<br>
</blockquote>
<br></div>
Question is not *where* the layouts are, instead *what* the layouts are<br>
for, i.e. *which* of these files to use.<br>
<br>
Lazarus can be shipped with any number of layouts, and the user can pick<br>
from them whatever he likes - this requires no special coding. Question<br>
is about automatic selection, based on which criteria, and in which<br>
situation.</blockquote><div><br></div><div>not just use the same as windows/unix PATH's? how did delphi do it? actually... (how does emberdecardero/visual studio handle multi-monitors??)</div><div>firstly, projects own layout (if there was a layouts menu in lazarus, you could copy this for user project type default as well)</div>
<div>user project type default</div><div>project type default</div><div>lastly, lazarus default</div><div><br></div><div>konqueror in KDE3.5 handles this sort of thing as well. might be easy to copy from it :)</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
instead of just a generic default.layout, id also suggest:-<br>
vcl_app.layout<br>
simplecgi_app.layout<br>
console_app.layout<br>
</blockquote>
<br></div>
These could be loaded when a new project is created. I'm not sure<br>
whether the project type is known later, when an existing project is<br>
reopened.<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
B) With multiple editor windows, the layout includes the files, open<br>
in an editor window. How to deal with the currently open files, when<br>
a different layout is restored?<br>
<br>
<br>
maybe leave them in their own editor window, just open new ones for restored layout.<br>
</blockquote>
<br></div>
It may be not a good idea to restore open files with a layout at all...<br>
<br>
Nonetheless it's not a problem to remove that part from the code, and replace it by any other mechanism - we only should find a convenient solution for handling open files when switching between layouts. In the IDE, every editor file may be tagged with a "preferred" editor window number...</blockquote>
<div><br></div><div>sounds good.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5"><br>
<br>
DoDi</div></div></blockquote><div><br></div><div>- V </div></div>