Feed Advanced Search

Jun 11 2019

davidhurka added a comment to D21734: [WIP] Improve class documentation for PageView and PageViewItem.

Thanks for your comments, I will look over my patch soon.

Jun 11 2019, 10:24 PM · Okular
davidhurka added inline comments to D21755: [RFC] Replace ToolAction by a more universal “ToggleActionMenu”.
Jun 11 2019, 10:09 PM · Okular
davidhurka added a comment to D21734: [WIP] Improve class documentation for PageView and PageViewItem.

Part calls them like this:

Jun 11 2019, 9:59 PM · Okular
davidhurka added inline comments to D21755: [RFC] Replace ToolAction by a more universal “ToggleActionMenu”.
Jun 11 2019, 9:50 PM · Okular
davidhurka updated the summary of D21755: [RFC] Replace ToolAction by a more universal “ToggleActionMenu”.
Jun 11 2019, 9:45 PM · Okular
davidhurka updated subscribers of D21755: [RFC] Replace ToolAction by a more universal “ToggleActionMenu”.

I suggested to use KActionMenu in D21622 (although not really focussed on that patch). Turned out that KActionMenu can not access already constructed toolbar buttons, so that approach is not possible.

Jun 11 2019, 9:36 PM · Okular
davidhurka updated the summary of D21755: [RFC] Replace ToolAction by a more universal “ToggleActionMenu”.
Jun 11 2019, 9:29 PM · Okular
davidhurka requested review of D21755: [RFC] Replace ToolAction by a more universal “ToggleActionMenu”.
Jun 11 2019, 9:27 PM · Okular

Jun 10 2019

davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

OK, got to test this out. It works well! I would recommend making the toolbar button show the text of the actual color change mode that's currently active, much like how the selection tools toolbar button currently does. Otherwise you won't know which mode it will invoke.

Jun 10 2019, 10:04 PM · Okular
davidhurka updated the summary of D21195: [RFC] Create a Change Colors menu (with toolbar button).
Jun 10 2019, 9:58 PM · Okular
davidhurka added a reviewer for D21734: [WIP] Improve class documentation for PageView and PageViewItem: Okular.

Oh, does someone know any intended purpose division between setupActions(), setupViewerActions(), and setupBaseActions()?

Jun 10 2019, 7:58 PM · Okular
davidhurka added a comment to D21734: [WIP] Improve class documentation for PageView and PageViewItem.

Documenting these classes wasn’t really difficult, they already have helpful inline comments and member names.

Jun 10 2019, 7:56 PM · Okular
davidhurka requested review of D21734: [WIP] Improve class documentation for PageView and PageViewItem.
Jun 10 2019, 7:42 PM · Okular
davidhurka added a comment to T8076: Fix design of annotation toolbar.

Is it intended to fix Bug 398108 - Annotation toolbar works only in Browse mode, not in e. g. Text Selection mode?

Jun 10 2019, 6:08 PM · VDG, Okular
davidhurka added a comment to T10997: Improve check box design.
In T10997#187755, @mglb wrote:

[...] indeterminate is used in one place - tree views. And everything there is a problem:

  • square - mentioned before, it is used right now, so would be confusing for current users
  • horizontal line - might be confused with a button for folding tree
  • colored/transparent check mark - color-only differences are bad
  • ellipsis - "open..."
  • ⠴ - conceived while writing this note, intended meaning: "not all"/"something missing"

    Any ideas?

    [...]

    Re check meaning around the world: "Check mark" meaning does not always apply to check boxes. E.g. teachers in Poland use ✓/✗ or ✓/― or +/- as "correct"/"wrong", but in tests, forms and voting cards ✗ is almost always placed in a square as the choice marker.

    [...]
Jun 10 2019, 6:03 PM · VDG, Breeze
davidhurka added a comment to T10997: Improve check box design.

We can't make everything configurable, and configurability is never a substitute for good default behavior. What if I want the letter Z or an Emoji in my checkbox? Should we go out of our way to support those too? Let's not bikeshed this too much and derail the task.

Jun 10 2019, 3:08 PM · VDG, Breeze
davidhurka added a comment to T10997: Improve check box design.

I think it makes much more sense to have this automatically set according to the locale (or language, or whatever makes the most sense) than making it user-configurable. Nobody would ever find it.

Jun 10 2019, 2:59 PM · VDG, Breeze
davidhurka added a comment to T10997: Improve check box design.

the current locale

Jun 10 2019, 2:34 PM · VDG, Breeze

Jun 9 2019

davidhurka added a comment to D20437: Make selection scrolling go at 60 fps.

By the way, this also affects the magnifier tool (Ctrl+6), which calls scrollPosIntoView() when dragged against or beyond the viewport edges.

Jun 9 2019, 6:16 PM · Okular
davidhurka added a comment to D20437: Make selection scrolling go at 60 fps.

Sorry for testing it so late, now that I’m working on PageView.

Jun 9 2019, 1:32 PM · Okular

Jun 8 2019

davidhurka added a comment to D21622: Use a more conventional dropdown menu style instead of press-and-hold.

Couldn’t the whole class ToolAction be replaced by KActionMenu now?

Jun 8 2019, 10:26 PM · Okular

Jun 7 2019

davidhurka added a comment to T10997: Improve check box design.

+1 for using a checkmark instead of a sqare. (Although I like the animation of folding and unfolding the sqare.)
-1 for using ... for tristate/indeterminate. That looks like the checkbox will open a dialog (https://hig.kde.org/style/writing/labels.html?highlight=ellipsis). If looking fast, it even looks like a hamburger button, which will open a menu. At least, it looks more like a pushbutton than a checkbox.

Jun 7 2019, 3:45 PM · VDG, Breeze
davidhurka added a comment to D21622: Use a more conventional dropdown menu style instead of press-and-hold.

clicking on the arrow on the right side of the button will open the pop-up and allow choosing another tool, which is a more common method of implementing the feature.

Jun 7 2019, 3:26 PM · Okular
davidhurka added a comment to D21635: Re-arrange selection tool order and shortcuts to reflect new arrangement.

The current keyboard shortcuts aren't a problem if we don't re-arrange the items in the Selection Mode toolbar button.

Jun 7 2019, 2:55 PM · Okular

Jun 6 2019

davidhurka added a comment to T10201: Window titlebars.

So yes, we should and must consider "Pro" apps, but we cannot fix apps that are already have very problematic user interfaces.

Jun 6 2019, 10:29 PM · KDE Applications, VDG

Jun 5 2019

davidhurka added a comment to D15580: New annotation toolbar.

Or: Why is this still PageViewToolBar? It is not anymore in the PageView?

I'll move it, added to TODO

Actually the code of the other toolbar (Browse, Zoom, Selection) is managed in the file pageview.cpp. In which file would you move the code of PageViewToolBar?

Jun 5 2019, 8:28 AM · Documentation, Okular

Jun 4 2019

davidhurka added a comment to T10201: Window titlebars.

SierraBreezeEnhanced to the rescue again - what about different window buttons if the window is active or inactive?

Obviously this exact solution would be seen as copying macOS, but maybe just having circles or rings in the active window would help.

I suppose inactive windows could be set to not show the circle around the close button by default, but there should always be visible symbols.

The close button is good to find a window corner, even if the window is mostly hidden by other windows. I think it shouldn’t be circle-less when the window is inactive, that way a visual aid on the window geometry is lost.

Jun 4 2019, 7:34 PM · KDE Applications, VDG
davidhurka updated the diff for D21266: Improve documentation of area classes.

Removed references to pages from methods.

Jun 4 2019, 6:49 PM · Okular
davidhurka added a comment to D15580: New annotation toolbar.

Sticky-by-default would probably be okay as long as we can make it very clear how to un-select the tool. Probably implementing multiple methods would be good (hit esc key, left-click again on the tool, right-click anywhere, etc).

Jun 4 2019, 5:43 PM · Documentation, Okular

Jun 3 2019

davidhurka added a comment to D15580: New annotation toolbar.
  • I can't figure out what Pin Annotation actually does

If checked the current annotation tool is kept selected after use (as double-click does in the current Okular). Needs a better name/tooltip. Added to TODO.

Can't we just keep the old double-click behavior? I think that's good. Various other similar tools use a double-click to mean "activate this tool and then keep it active after you've used it once" so it's not a totally alien UI. Then we could keep the pin icon as an additional visual status indicator of whether the current tool is "sticky" or not.

Using double-click is probably used to some [how many?] Okular users, but others asked for something like a sticky button. An option to make selected actions sticky by default, without sticky button, would be perfect for me.
From other applications I know left-click: use the tool, right-click: stop using the tool. If there is no fallback tool (see below), the tool will be remembered for the next left click.

Jun 3 2019, 5:12 PM · Documentation, Okular

Jun 2 2019

davidhurka added inline comments to D21266: Improve documentation of area classes.
Jun 2 2019, 11:34 PM · Okular
davidhurka added a comment to D21266: Improve documentation of area classes.

I will remove page sizes from member documentations and describe the coordinate system with a more abstract reference rectangle.

Jun 2 2019, 10:51 PM · Okular
davidhurka updated the summary of D21281: [WIP] Write Documentation for Okular::Part.
Jun 2 2019, 10:09 PM · Okular
davidhurka added inline comments to D21271: Improve documentation of TextEntity stuff.
Jun 2 2019, 10:08 PM · Okular
davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

Sometimes I’m working on PageView, but I move it out of this patch because it’s less related than I thought. And this is enough stuff for a single patch for now...

Jun 2 2019, 10:04 PM · Okular
davidhurka added inline comments to D21271: Improve documentation of TextEntity stuff.
Jun 2 2019, 9:04 PM · Okular
davidhurka added a comment to T8076: Fix design of annotation toolbar.

How will you do what currently a double-click does? It should still be possible to do more than one annotation in one go.

Jun 2 2019, 7:14 PM · VDG, Okular
davidhurka updated the summary of D21281: [WIP] Write Documentation for Okular::Part.
Jun 2 2019, 6:33 PM · Okular
davidhurka added a comment to T8076: Fix design of annotation toolbar.

In the current version of Okular, the numbers 1-9 select the annotation tools based on their order.

Good to know... They are not listed in Configure Shortcuts.

Probably some users are used to this configuration and we can recycle it. Either we assign the numbers 1-9 to select the implict tools or use them for the explict tools.

Then we should assign them to implicit tools similar to the existing configuration.

Jun 2 2019, 5:05 PM · VDG, Okular
davidhurka added a comment to T10034: Attract existing FLOSS software projects to KDE and incorporate their members into our community.

I have just tried ScanTailor. It is useful to convert photographed documents to good looking PDFs.

Jun 2 2019, 2:45 PM · KDE Promo
davidhurka added a comment to T10201: Window titlebars.
  1. Can you make screenshots of an application like FreeCAD, with its n = n + 1 toolbars?

Oh. I didn't know about it. Wow.

Don’t like that because it turns a huge area to an area without border. If another window covers the left part, it’s hard to see that this huge area is the tools area of FreeCAD, and not an empty view in the window behind FreeCAD.

Jun 2 2019, 2:33 PM · KDE Applications, VDG
davidhurka updated subscribers of T8076: Fix design of annotation toolbar.
  • Add a combobox action with a list of favorite tools.

That means two clicks to change the tool. (Currently, often needs a double-click.)

  • Add a 'star' button that adds the currently selected tool and settings to the list of favorite ones

I was actually thinking about a star icon. :)

  • Keep the current settings dialog for configuring annotations, but use it only to configure favorite tools (reorder them, change the name and so on). Otherwise this could be tricky to do directly from the toolbar.

Probably the current “implicit” tool should be configurable trough the dialog too, so not all controls need to be in the toolbar, but the user does not need to make a favourite for a very special annotation he/she will use only once. (This is probably what you meant in the second section.)

  • Not sure how to deal with the preview of the tool, my solution is to let the user give a meaningful name of the tool. Adding a small preview as an icon next to the Action can be a solution, but I think the preview is going to be too small. I would just add the breeze icon of the corresponding tool.

@jangmarker tried using the existing, configurable icons, and I think it looks ok. Depending on the used dpi, a scalable icon engine would be good for the side panel, but toolbar icons are usually a bit bigger.

Now it looks like this:

A stamp looks like this:

I think we shouldn’t rely on the ability of the user to give meaningful names.

  • Currenlty the state of each annotation tool is saved. If I click underline > highlight > underline the state of underline is restored to its previous value. When a favorite tool is selected it sets the status of the color, width, etc. buttons. The state of the previously selected tool:
    • is saved if the tool is different from the current one: e.g. was highlight, my favorite is underline, state of highlight saved
    • is lost if the tool is the same as the current one: e.g. was highlight, my favorite is highlight with different color, now the saved state of the highlight tool is the same as my selected favorite

Then I’d call them “implicit tools” and “explicit tools”. The tools which can be selected from the toolbar are associated to implicit tools. (I. e. one implicit tool for each Freehand, Stamp, Popup, Highlight,...) By clicking arround in the toolbar the user selects or configures one of them. By choosing a favourite he/she loads a preset into one of the implicit tools.

Jun 2 2019, 1:23 PM · VDG, Okular
davidhurka added inline comments to D21376: RFC: In annotations list show highlighted text.
Jun 2 2019, 1:21 PM · Okular
davidhurka added a comment to T11014: Dimension line annotation tool.

Then it’s time I want to ask this:

Jun 2 2019, 12:16 PM · Okular
davidhurka added a comment to T11014: Dimension line annotation tool.

If there is a dedicated tool for dimensions, straight line annotations recognized as dimension should be movable by dragging the label. FreeCAD illustrates this, although a bit unintuitive: ;)


Moving sideways is probably not possible, but moving up and down would change the lenght of the leader lines.

Jun 2 2019, 11:45 AM · Okular
davidhurka added a comment to T8076: Fix design of annotation toolbar.

This is a first mockup of the annotation toolbar.

Jun 2 2019, 11:24 AM · VDG, Okular
davidhurka added a comment to T10201: Window titlebars.
In T10201#186849, @GB_2 wrote:

The close button is good to find a window corner, even if the window is mostly hidden by other windows. I think it shouldn’t be circle-less when the window is inactive, that way a visual aid on the window geometry is lost.

What about turning the filled circle into only a ring/circle outline?

Jun 2 2019, 9:56 AM · KDE Applications, VDG
davidhurka added a comment to T10201: Window titlebars.

SierraBreezeEnhanced to the rescue again - what about different window buttons if the window is active or inactive?

Obviously this exact solution would be seen as copying macOS, but maybe just having circles or rings in the active window would help.

I suppose inactive windows could be set to not show the circle around the close button by default, but there should always be visible symbols.

Jun 2 2019, 8:54 AM · KDE Applications, VDG

Jun 1 2019

davidhurka added inline comments to D10859: Improve layout of annotation configuration dialogs.
Jun 1 2019, 6:00 PM · Okular
davidhurka added a comment to T10034: Attract existing FLOSS software projects to KDE and incorporate their members into our community.

I have just tried ScanTailor. It is useful to convert photographed documents to good looking PDFs. (Don’t know why they talk about scans, scans don’t need this.) It already uses Qt and feels like other KDE applications.

Jun 1 2019, 2:03 PM · KDE Promo
davidhurka added a comment to D21416: Add icons for line annotation arrow styles to combo box.

For dark color themes: maybe the color of the adjacent text would be good as foreground color for the icons. Don’t know, but maybe QGuiApplication::pallete().color(QPalette::WindowText)?

Makes sense, thanks. Never tried this before, give me some time to check it out...

Tried your suggestion, looks good with breeze dark. Would you consider it important to connect to QGuiApplication::paletteChanged, to follow theme changes immediately?

Not wrong but not important. How often does one change the color theme while chosing a line ending? I could only imagine that the color theme changes automatically based on enviromnent light sensors, for people who work in a vehicle passing many tunnels. But how often does one chose the line ending while entering/leaving a tunnel the same time?

Jun 1 2019, 1:19 PM · Okular

May 31 2019

davidhurka added a comment to D10859: Improve layout of annotation configuration dialogs.

Not only straight line, but also freehand line, geometrical shape and polygon (with the same meaning). I agree with you, but on the other hand in drawing software like Krita or Gimp it is called Size so maybe the users are used to it. I have not a strong preference on this matter.

May 31 2019, 1:15 PM · Okular
davidhurka added a comment to D10859: Improve layout of annotation configuration dialogs.

For Highlighter and Geometrical shape I moved the annotation type to the top, before the color/size settings. What do you think?

Makes sense, most important setting first. :) Maybe this makes squiggle and strikeout a bit more discoverable.

May 31 2019, 9:44 AM · Okular

May 30 2019

davidhurka added a comment to D21266: Improve documentation of area classes.

Turns out that nothing is independent of page rotation, just discovered PagePrivate::rotateAt(Okular::Rotation), which transforms everything what is known to rotateAt().

May 30 2019, 7:57 PM · Okular
davidhurka added a comment to D21266: Improve documentation of area classes.

Turns out that the coordinate system of RegularAreaRect, as it is used by TextPage::textArea(TextSelection), is not independent of the page display. textArea() transforms the whole RegularAreaRect with the current totalRotation() of the Page.

May 30 2019, 7:52 PM · Okular

May 29 2019

davidhurka added a comment to D10859: Improve layout of annotation configuration dialogs.

I don't think the section headings really added much. Most of them were group boxes with one item, which is pointless. When using a FormLayout style, in general you want to make the labels self-explanatory as much as possible so you don't need section headers. To separate groups of related settings, you can add some whitespace that has the effect of grouping things together in a very natural-looking way. We do this extensively in other FormLayouts and people generally think it looks good:

I’m not sure whether to agree.

May 29 2019, 9:07 PM · Okular
davidhurka added a comment to D21416: Add icons for line annotation arrow styles to combo box.

The UI looks good and I understand the code. :)

May 29 2019, 7:17 PM · Okular
davidhurka added a comment to D10859: Improve layout of annotation configuration dialogs.

Just tried this. Maybe you can bring back the section headings, which were group box labels before? Straight Line got many options recently.

May 29 2019, 6:16 PM · Okular
davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

Got an overview of open-a-document methods in the Detailed Description of Part. Helped me a lot, can it stay there?

May 29 2019, 5:10 PM · Okular
davidhurka updated the diff for D21281: [WIP] Write Documentation for Okular::Part.
  • Add structure to open*(url) methods documentation, shown in Detailed Description of Part
  • Make showMenu() documentation more generic.
May 29 2019, 4:42 PM · Okular

May 26 2019

davidhurka added inline comments to D21376: RFC: In annotations list show highlighted text.
May 26 2019, 10:54 AM · Okular

May 25 2019

davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

If you say “at this low level”, would being more abstract make more sense?

May 25 2019, 11:19 PM · Okular
davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

I’m complaining a lot about the source code. Don’t understand that as arrogant demand to fix it, just tell me to do it. Anyway, the code works, so no need to change it?

May 25 2019, 10:40 PM · Okular
davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

Giving up for today, there are sooooo many functions of the format open*(url).

May 25 2019, 10:37 PM · Okular
davidhurka updated the diff for D21281: [WIP] Write Documentation for Okular::Part.

Did exactly this (and some more)

  • Improve code documentation of updateViewActions() and showMenu()
  • Document random member functions of Part, including showMenu()
  • Document more random member functions of Part, including openUrl(), and improve thats code comments
  • Document even more open*(url) functions, and slotPrint(). Also complain about source code.
  • Remove TODOs (but not all)
May 25 2019, 8:53 PM · Okular
davidhurka added a comment to D21364: Indicate annotation color in annotation list.

Now it looks like this:

Looks ok, but if someone makes PageViewAnnotator::makeToolPixmap() return a QIcon(Engine) instead of a pixmap, it will look better.

May 25 2019, 1:29 PM · Okular
davidhurka added a comment to D21364: Indicate annotation color in annotation list.

Why do you move EditAnnotToolDialog to GuiUtils? / How does the annotation tool bar (shown with F6) get its icons?

May 25 2019, 1:14 PM · Okular
davidhurka added a comment to D21376: RFC: In annotations list show highlighted text.

Your code:

Wouldn’t static_cast<>() be better than a C-style cast?

May 25 2019, 12:46 PM · Okular
davidhurka edited reviewers for D21376: RFC: In annotations list show highlighted text, added: aacid; removed: davidhurka.

You are not touching “Highlight with Comment”-style texts, which is probably good. (And would fit in another commit anyway.)
There was a discussion about this in D10797, and in T8533 in more general, but this patch is probably fine.
(T8533 is why I thought the annotations would have been y-ordered.)

May 25 2019, 12:30 PM · Okular
davidhurka added inline comments to D18358: Add buttons to collapse and expand all elements.
May 25 2019, 12:15 PM · Okular

May 23 2019

davidhurka added a comment to D21364: Indicate annotation color in annotation list.

I think captionForAnnotation() does not include the comment's text currently, so this change should probably be done in another commit.

May 23 2019, 9:13 PM · Okular
davidhurka added a comment to D21364: Indicate annotation color in annotation list.

Nice, makes the list more intuitive. :) (Didn’t test this)

May 23 2019, 4:14 PM · Okular

May 22 2019

davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

Probably it should be described how dropped URLs are handled in general? Sometimes the Part uses them and wildly opens files, sometimes not.

May 22 2019, 7:02 PM · Okular
davidhurka updated the diff for D21281: [WIP] Write Documentation for Okular::Part.
  • Part::Part() 'QObject is a widget' -> 'QObject is an object'
  • Document some D-Bus methods and Part signals, minor improvements in Document
May 22 2019, 6:48 PM · Okular

May 21 2019

davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

So I will keep it this way.

May 21 2019, 10:17 PM · Okular
davidhurka updated the summary of D21195: [RFC] Create a Change Colors menu (with toolbar button).
May 21 2019, 10:16 PM · Okular
davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

+1 for this. I think it makes sense. Trying it out, I like it a lot.

May 21 2019, 9:53 PM · Okular
davidhurka added inline comments to D21195: [RFC] Create a Change Colors menu (with toolbar button).
May 21 2019, 12:24 PM · Okular

May 20 2019

davidhurka updated the diff for D21266: Improve documentation of area classes.
  • NormalizedPoint: Revert some stuff and mention mouse click events
May 20 2019, 6:41 PM · Okular
davidhurka added a comment to D21266: Improve documentation of area classes.

Should the section “Coordinate System” of NormalizedPoint mention the “Trimmed Margins” feature? To prevent that someone sloppily codes a feature, which draws something on the page and fails if Trim Margins is active.

May 20 2019, 6:40 PM · Okular
davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

Is there some more KParts literature? I could find KParts on api.kde.org and the tutorials on community.kde.org, but couldn’t really transfer that to Okular.

Why you couldn't transfer it to okular? If you don't say what you don't understand is hard to explain *everything*

May 20 2019, 4:18 PM · Okular

May 19 2019

davidhurka added inline comments to D21271: Improve documentation of TextEntity stuff.
May 19 2019, 9:31 PM · Okular
davidhurka updated the diff for D21271: Improve documentation of TextEntity stuff.
  • Fix typos spotted by yurchor
  • Fix typos spotted by Albert
May 19 2019, 9:00 PM · Okular

May 18 2019

davidhurka added a comment to D21281: [WIP] Write Documentation for Okular::Part.

Didn’t get far yet. Much information is visible in the source code, but what should I put into the class/member documentation, and what is clear just because it’s a Part?

May 18 2019, 11:57 PM · Okular
davidhurka requested review of D21281: [WIP] Write Documentation for Okular::Part.
May 18 2019, 11:52 PM · Okular
davidhurka added a comment to D21271: Improve documentation of TextEntity stuff.

TextPagePrivate::correctTextOrder() calls some complex functions, which are yet undocumented. Interesting stuff is happening in them, so they should get some documentation. I added their prototypes to core/textpage_p.h, so I can add documentation to them.

May 18 2019, 12:47 PM · Okular
davidhurka requested review of D21271: Improve documentation of TextEntity stuff.
May 18 2019, 12:26 PM · Okular

May 17 2019

davidhurka added a comment to D21266: Improve documentation of area classes.

This is part of my goal to understand how TextEntity reordering works. There will probably be more patches like this soon.

May 17 2019, 11:46 PM · Okular
davidhurka requested review of D21266: Improve documentation of area classes.
May 17 2019, 11:06 PM · Okular

May 15 2019

davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

I have figured out, what was going on in the QToolButton.

May 15 2019, 4:38 PM · Okular
davidhurka updated the diff for D21195: [RFC] Create a Change Colors menu (with toolbar button).
  • Toolbar button finally shows the intended menu
  • Add icon for Configure... action
  • Corrected action-slot connections
  • Named enable/disable action "Change Colors" again, looks better in the toolbar
May 15 2019, 4:09 PM · Okular
davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

I have added CheckableActionMenu, which cuts the default action connection between the KActionMenu itself and the toolbar button. Now it is possible to make the toolbar button checkable, but not the submenu.

May 15 2019, 3:16 PM · Okular
davidhurka updated the diff for D21195: [RFC] Create a Change Colors menu (with toolbar button).

Removed checkbox from submenu, but toolbar button invents other menu structure

May 15 2019, 2:53 PM · Okular

May 14 2019

davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

The lambda looks much better, but it uses still int as action data, not Okular::SettingsCore::EnumRenderMode::type, which would make more sense. Is it possible to put Okular::SettingsCore::EnumRenderMode::type into the action’s QVariant? It didn’t work because I couldn’t register it as metatype.

May 14 2019, 11:51 PM · Okular
davidhurka updated the diff for D21195: [RFC] Create a Change Colors menu (with toolbar button).
  • Renamed the menu entries to Color Mode and Enable Color Changing
  • Use lambda function instead of function-like macro
May 14 2019, 11:40 PM · Okular

May 13 2019

davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

That menu is ultra hard to understand, it's a checked action + menu with an action with the same name inside that is also a checked action

May 13 2019, 10:04 PM · Okular
davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

Screenshots are appreciated when submitting patches that change or add UI elements. :)

https://community.kde.org/Infrastructure/Phabricator#Include_some_screenshots

May 13 2019, 6:48 PM · Okular
davidhurka added a comment to D21196: [RFC] Move Continuous option to View Mode submenu.

Nate suggested almost exactly this patch in Bug 407326. But instead of hiding Continuous when accessed from the menubar, I moved Continuous completely to the View Mode submenu.

May 13 2019, 6:47 PM · Documentation, Okular
davidhurka added a comment to D21195: [RFC] Create a Change Colors menu (with toolbar button).

Okular does not follow the KDELibs coding style, so I tried to follow the existing coding style. Maybe I didn’t understand something right, if so, please correct me.

May 13 2019, 6:36 PM · Okular
davidhurka updated the summary of D21195: [RFC] Create a Change Colors menu (with toolbar button).
May 13 2019, 6:11 PM · Okular