kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #00091
Re: Patch: Keyboard shortcut for "Drag Mode"
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"Danilo Uccelli" <danucc@...>
-
Date:
Fri, 7 Apr 2006 22:09:53 +0200
-
In-reply-to:
<44316866.2000508@...>
2006/4/3, Mitch Bradley <wmb@...>:
>
> RFE: In eeschema, make it easier to switch from "block move" mode to
> "block drag" mode.
>
> Justification: I find that I use drag mode much more than move mode. In
> fact, most of the times that I do use move mode, the block is not
> connected around the edges, so drag mode would work there too.
> Switching to drag mode with the mouse requires too much careful mouse
> activity compared to the frequency of its use. It is difficult to
> remember to press the control key before selecting the block.
>
> Solution: Add a keyboard shortcut so that the Tab key is equivalent to
> RightMouse>DragBlock.
>
> An even better solution would be to make Drag the default instead of Move.
>
> Patch:
>
> *** c:/kicad-dev/eeschema/controle.cpp~ Mon Dec 5 09:47:52 2005
> --- c:/kicad-dev/eeschema/controle.cpp Mon Apr 3 08:03:50 2006
> ***************
> *** 228,233 ****
> --- 228,238 ----
> m_CurrentScreen->m_O_Curseur = m_CurrentScreen->m_Curseur;
> break;
>
> + case '\t': // Switch to drag mode
> + m_CurrentScreen->m_O_Curseur = m_CurrentScreen->m_Curseur;
> +
> ((WinEDA_SchematicFrame*)this)->HandleBlockEndByPopUp(BLOCK_DRAG, DC);
> + break;
> +
> case WXK_NUMPAD8 : /* Deplacement curseur vers le haut */
> case WXK_UP :
> Mouse.y -= delta.y;
>
> I found that interesting, but I prefer to use 'D' and 'd' key instead of
tab.
*case* 'D' : *// Switch to drag mode*
*case* 'd' :
That would be more mnemonic, but I don't know how is perceived in the other
languages.
The 'M' key is already used for Move and nobody seems to complaint about
that.
The best solution would be to have this kind of shortcuts in a configuration
file...
I propose, as an other improvement, to use Del key for Delete block, by
adding this case on the same switch instruction, in this particular case
there is no language problems.
*case* WXK_DELETE : *// Switch to delete mode*
m_CurrentScreen->m_O_Curseur = m_CurrentScreen->m_Curseur;
((WinEDA_SchematicFrame*)*this*)->HandleBlockEndByPopUp(BLOCK_DELETE, DC);
*break*;
Regards,
Danilo Uccelli
CH-2400 Le Locle
danucc@...
------=_Part_20861_9097625.1144440593816 Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
2006/4/3, Mitch Bradley <<a href="mailto:wmb@...">wmb@...</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
RFE: In eeschema, make it easier to switch from "block move" modeto<br>"block drag" mode.<br><br>Justification: I find that I usedrag mode much more than move mode. In<br>fact, most of the times that I do use move mode, the block is not
<br>connected around the edges, so drag mode would work there too.<br>Switching to drag mode with the mouse requires too much careful mouse<br>activity compared to the frequency of its use. It is difficult to<br>remember to press the control key before selecting the block.
<br><br>Solution: Add a keyboard shortcut so that the Tab key is equivalentto<br>RightMouse>DragBlock.<br><br>An even better solution would be to make Drag the default instead of Move.<br><br>Patch:<br><br>*** c:/kicad-dev/eeschema/controle.cpp~ Mon Dec 5 09:47:52 2005
<br>--- c:/kicad-dev/eeschema/controle.cpp Mon Apr 3 08:03:50 2006<br>***************<br>*** 228,233 ****<br>--- 228,238 ----<br> m_CurrentScreen->m_O_Curseur
= m_CurrentScreen->m_Curseur;<br> break;<br><br>+ case '\t': // Switch to drag mode<br>+
m_CurrentScreen->m_O_Curseur = m_CurrentScreen->m_Curseur;<br>+<br>((WinEDA_SchematicFrame*)this)->HandleBlockEndByPopUp(BLOCK_DRAG, DC);<br>+ break;<br>+<br> case
WXK_NUMPAD8 : /* Deplacement curseur
vers le haut */<br> case WXK_UP :<br> Mouse.y -= delta.y;<br><br></blockquote></div>I found that interesting, but I prefer to use 'D'and 'd' key instead of tab.<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
<pre> <b>case</b> <span style="color: rgb(255, 0, 255);">'D'</span> : <span style="color: rgb(128, 128, 128);"><i>// Switch to drag mode</i></span>
<b>case</b> <span style="color: rgb(255, 0, 255);">'d'</span> :
</pre><br>
That would be more mnemonic, but I don't know how is perceived in the otherlanguages.<br>
The 'M' key is already used for Move and nobody seems to complaint about that.<br>
<br>
The best solution would be to have this kind of shortcuts in a configuration file... <br>
<br>
I propose, as an other improvement, to use Del key for Delete block, by
adding this case on the same switch instruction, in this particular
case there is no language problems.<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
<pre> <b>case</b> WXK_DELETE : <span style="color: rgb(128, 128, 128);"><i>// Switch to delete mode</i></span>
m_CurrentScreen->m_O_Curseur = m_CurrentScreen->m_Curseur;
((WinEDA_SchematicFrame*)<b>this</b>)->HandleBlockEndByPopUp(BLOCK_DELETE, DC);
<b>break</b>;
</pre><br>
Regards,<br>
<br>Danilo Uccelli<br>CH-2400 Le Locle<br><a href="mailto:danucc@...m">danucc@...</a>
------=_Part_20861_9097625.1144440593816--
Follow ups
References