Qcad Theme TabBar

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Qcad Theme TabBar

Post by petevick » Tue Nov 30, 2021 1:41 pm

Qcad Theme TabBar v1.0
UPDATE, see below


At least one user has reported that the tab bars in Qcad display reversed, To overcome this problem Qcad Theme TabBar (QTT) enables you to easily remove or reinstate the tab bar section of a Qcad stylesheet. QTT will work with any stylesheet that has a tab bar section in it, that is most of the themes that now ship with Qcad, or any stylesheet created with Qcad User Theme, Qcad Theme Designer or Qcad Theme Lite. If the stylesheet does not contain a tab bar section, QTT will let you know that it cannot be opened.

Installation
Download the appropriate zip file for your particular operating system. Extract the Qcad Theme TabBar folder in the zip file to anywhere on your system.

How to use...
Double click the executable in the Qcad Theme TabBar folder.
  • STEP 1 - Open an existing stylesheet. If the stylesheet has already had the tab bar section removed, the checkbox will be ticked and the checkbox caption will read 'Untick to reinstate the tab bar section'. The text below the checkbox will confirm this by displaying 'This stylesheets tab bar section is inactive'
  • STEP 2 - To reinstate the tab bar section, simply click on the check box to untick it. The checkbox caption will now read 'Tick to remove the tab bar section', and the 'Save' text on the Save button will turn maroon (long story!) indicating that the stylesheet needs saving.
  • STEP 4 - Click the Save button to save the stylesheet. The 'Save' text on the Save button will turn back to black, and the text below the checkbox will read 'This stylesheets tab bar section is now active'
Notes
  • You can reverse the above action and make the tab bar section inactive by ticking the checkbox and clicking the Save button.
  • The file name field, depending on the path length, displays a partial path to the folder containing the selected stylesheet, if you hover over the file name field the hint tip will display the full path including the stylesheet.
The one person to report this behaviour had to be forum member John Hyslop. Personally I think it's all to do with him living in Australia, I live in the UK, hence everything is upside down and back to front in Qz.
Anyway, thanks John yet again for the testing/moaning/ear bashing, and of course the banter.

Screenshots of QTT in Linux and then Windows.
qtt- Linux.png
qtt- Linux.png (18.3 KiB) Viewed 4461 times
qtt- Windows.png
qtt- Windows.png (12.14 KiB) Viewed 4461 times
v1.0 Linux 64bit downloaded 39 times
v1.0 Linux 32bit downloaded 39 times
v1.0 Windows downloaded 41 times
Last edited by petevick on Thu Feb 24, 2022 12:31 pm, edited 1 time in total.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme TabBar

Post by petevick » Fri Dec 03, 2021 5:32 pm

Refer to this topic - https://www.qcad.org/rsforum/viewtopic. ... 994#p33367 by John Hyslop for further information regarding this behaviour of the tabs. No explanation as to the cause could be found.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme TabBar

Post by petevick » Thu Feb 24, 2022 12:28 pm

Qcad Theme TabBar v1.5 UPDATE !!

Version 1.5 is a moderate update, it introduces a few changes, all as listed below.

CHANGES
  • I've added a colour swatch that shows the background colour of the current stylsheet.
  • The app window is now sizeable, no particular reason!!. Screenshot below, Linux and Windows.
    QTT both.png
    QTT both.png (55.61 KiB) Viewed 3353 times
    .
  • The system folder browser has quite a few disadvantages, so I've changed it for a custom folder browser. Apart from selecting a specific folder, this browser also allows you to rename , add or delete a folder. This can be done by either clicking the buttons in the toolbar, right click on a folder to display a context menu or via keyboard shortcuts (see below). Click the Select button or use the S keyboard shortcut to accept the selected folder. Click the Cancel button or press the keyboard Esc button to exit the browser with no selection. The browser window is sizeable and it's size is saved to the config file. The icons in the browser vary between the Linux and Windows versions as seen below.
    browsers.PNG
    browsers.PNG (70.63 KiB) Viewed 3353 times
    Toolbar button details....
    • folder-del-both.png
      folder-del-both.png (14.04 KiB) Viewed 3353 times
    • Click this button to Delete the selected folder, confirmation is required.
      You can also right click on a folder and select Delete from the context menu, or
      press the Delete keyboard button or Press the - numeric keyboard button.
      .
      folder-new-both.png
      folder-new-both.png (10.93 KiB) Viewed 3353 times
    • Click this button to create a New folder. A temporary folder is created in the selected folder, in Linux it's called 'Untitled Folder', in Windows it's called 'New folder', it'll be in an edit ready state, just start typing the name you want.
      You can also right click on a folder and select New Folder from the context menu, or use the N keyboard shortcut, or press the + numeric keyboard button.
      .
      folder-edit-both.png
      folder-edit-both.png (13.06 KiB) Viewed 3353 times
    • Click this button to Rename the selected folder. The name will enter the editing state, just type in the new name.
      You can also long double click on the folder name or right click on a folder and select Rename from the context menu, or use the R keyboard shortcut.
FIXED BUGS
  • It's quite possible that version 1.0 never actually worked on some systems !! I've no explanation, but this version has been tested on various Linux and Window systems without fault.
Attachments
Qcad Theme TabBar 1.5 Windows.zip
(1.12 MiB) Downloaded 250 times
Qcad Theme TabBar 1.5 Linux-64.zip
(1.33 MiB) Downloaded 254 times
Qcad Theme TabBar 1.5 Linux-32.zip
(1.28 MiB) Downloaded 238 times
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”