Login  Register

new toolbars

Posted by ravas on Sep 02, 2015; 8:26pm
URL: https://forum.librecad.org/new-toolbars-tp5712125.html

The individual toolbars, category toolbar and custom toolbar are ready...ish.
I haven't really considered a default layout for all the individual new toolbars.
One possibility is to just have them hidden by default.

The toolbar/dockwidget context menu is over-populated now,
I've been considering reimplementing http://doc.qt.io/qt-5/qmainwindow.html#createPopupMenu
and putting the new individual toolbars in a submenu.

You can see the majority of the changes in:
void QC_ApplicationWindow::menus_and_toolbars()
lc_actionfactory
lc_customtoolbar

It's in the toolbar_merging branch (I did one merge a few weeks ago).

Custom toolbar:
1. make a txt file
2. start librecad
3. in application preferences choose the txt file you made
4. restart librecad

You can press F2 (arbitrary hotkey) to add or remove the most recent triggered action to the custom toolbar.
You can rearrange the icons by editing the file; and you can add a separator by adding a line with a hyphen.
Here is my custom toolbar:

DrawCircle
DrawCircle2P
DrawCircle3P
DrawCircleTan2_1P
DrawCircleTan1_2P
DrawCircleTan3
-
DrawLine
DrawLineHorizontal
DrawLineVertical
DrawLineParallelThrough
DrawLineBisector
DrawLineTangent1
DrawLineTangent2
DrawLineOrthogonal
DrawLinePolygonCenCor
DrawLinePolygonCorCor
-
ModifyMoveRotate
ModifyMirror

The names are those found in rs.h (minus the "Action" prefix).
action_list.txt

I've been considering making dockwidget alternatives to the toolbars, with maybe 4-6 columns of icons.
I've also been considering to-b's idea of grouping line tools and their options in one dockwidget,
and likewise for the other categories.
This could be the solution to the user awareness problem regarding the options toolbar.

I've lost some of my motivation because of the persistence of the tangent point issue,
and also because I'd prefer working on "the cutting edge" (LC3) rather than the obsolescent.
Right now I'm focused on my flow chart creator.

Let me know how you want to proceed.