Feed Advanced Search

Oct 28 2018

tobiasdeiminger requested review of D16494: Take 1..n KMainWindows in kRestoreMainWindows.
Oct 28 2018, 8:14 PM · Frameworks

Oct 27 2018

tobiasdeiminger added a comment to D16457: Avoid crash during session restore.

This is an Okular specific fix. However any application that uses KMainWindow could run into the same problem, so I wonder if there's a way to harden frameworks kxmlgui against that dangling pointer issue?

Oct 27 2018, 12:06 PM · Okular
tobiasdeiminger requested review of D16457: Avoid crash during session restore.
Oct 27 2018, 12:00 PM · Okular

Oct 12 2018

tobiasdeiminger added a comment to D16147: Draw non-external text annotations with word wrap.

"wrap anywhere" seems really a bit strange. I'd expect something like "wrap at word boundaries", "don't wrap but write across margins" or "enlarge rectangle on demand" from any sane tool. Qt::TextWordWrap would be fine for me.

Oct 12 2018, 9:37 PM · Okular

Oct 7 2018

tobiasdeiminger added a comment to D15205: Support setting text color for typewriter annotations.

Do you think it would be useful to have adjustable text color for inline notes, too? Then I'll prepare a similar patch.

Oct 7 2018, 7:53 PM · Documentation, Okular

Oct 4 2018

tobiasdeiminger added a comment to D15205: Support setting text color for typewriter annotations.

Also, since it's working for you, would you mind sending me a quick screenshot that shows both a colored typewriter annotation and also the colored toolbar icon? That's a really nice touch.

Oct 4 2018, 9:19 PM · Documentation, Okular
tobiasdeiminger added a comment to D15205: Support setting text color for typewriter annotations.

Ah yeah, Neon only has Poppler 0.62.

So the color changing feature just doesn't work without Poppler 0.69? If that's the case, we should probably turn it off unless you have a good enough Poppler version.

Oct 4 2018, 6:56 PM · Documentation, Okular
tobiasdeiminger added a comment to D15205: Support setting text color for typewriter annotations.

I know it's a little late, but now that this has landed, I tried it out so I could add a picture of it to this week's Usability & Productivity post, but I couldn't get it to work. What am I doing wrong?

Oct 4 2018, 6:35 PM · Documentation, Okular
tobiasdeiminger committed R223:e44ff38706f7: Support setting text color for typewriter annotations (authored by dileepsankhla).
Support setting text color for typewriter annotations
Oct 4 2018, 6:03 PM
tobiasdeiminger closed D15205: Support setting text color for typewriter annotations.
Oct 4 2018, 6:03 PM · Documentation, Okular
tobiasdeiminger updated the summary of D15205: Support setting text color for typewriter annotations.
Oct 4 2018, 6:00 PM · Documentation, Okular
tobiasdeiminger added a comment to T8076: Fix design of annotation toolbar.

I'll put all the items by themselves in the new annotation toolbar, there should be enough space.

Oct 4 2018, 7:48 AM · VDG, Okular

Oct 3 2018

tobiasdeiminger added a comment to D15205: Support setting text color for typewriter annotations.

Should be ready to land. I'll push tomorrow, time frame for last objections is open now ;-)

Oct 3 2018, 2:43 PM · Documentation, Okular
tobiasdeiminger updated the diff for D15205: Support setting text color for typewriter annotations.

More review fixes

  • Refine doxygen comments on TextAnnotation::textColor and TextAnnotation::setTextColor
  • Colorize toolbar icon in with text color instead of black
  • Remove accidential whitespace change
Oct 3 2018, 2:37 PM · Documentation, Okular
tobiasdeiminger added a comment to D15205: Support setting text color for typewriter annotations.

I now actually tested and it works very nicely. I'll approve the diff, because I don't have a strong opinion on the whitespace issue.

Oct 3 2018, 9:09 AM · Documentation, Okular

Oct 2 2018

tobiasdeiminger added inline comments to D15205: Support setting text color for typewriter annotations.
Oct 2 2018, 8:05 PM · Documentation, Okular

Oct 1 2018

tobiasdeiminger updated the diff for D15205: Support setting text color for typewriter annotations.

Really rebase on master

Oct 1 2018, 7:16 PM · Documentation, Okular

Sep 28 2018

tobiasdeiminger updated the summary of D15205: Support setting text color for typewriter annotations.
Sep 28 2018, 6:48 AM · Documentation, Okular
tobiasdeiminger updated the diff for D15205: Support setting text color for typewriter annotations.

Rebase on master. Some review fixes.

Sep 28 2018, 5:49 AM · Documentation, Okular

Sep 27 2018

tobiasdeiminger added inline comments to D15205: Support setting text color for typewriter annotations.
Sep 27 2018, 8:29 AM · Documentation, Okular

Sep 25 2018

tobiasdeiminger committed R223:6dd7cf662d23: Add typewriter annotation tool (authored by dileepsankhla).
Add typewriter annotation tool
Sep 25 2018, 8:47 PM
tobiasdeiminger closed D15204: Add typewriter annotation tool.
Sep 25 2018, 8:47 PM · Okular
tobiasdeiminger updated the summary of D15204: Add typewriter annotation tool.
Sep 25 2018, 8:44 PM · Okular
tobiasdeiminger added a comment to D15204: Add typewriter annotation tool.

@sander Thanks for the review!

Sep 25 2018, 2:52 PM · Okular

Sep 24 2018

tobiasdeiminger added a comment to D15204: Add typewriter annotation tool.

This revision should be quite complete now.

Sep 24 2018, 8:26 AM · Okular
tobiasdeiminger updated the diff for D15204: Add typewriter annotation tool.

Review fixes

Sep 24 2018, 8:06 AM · Okular

Sep 21 2018

tobiasdeiminger added inline comments to D15204: Add typewriter annotation tool.
Sep 21 2018, 1:16 PM · Okular

Sep 18 2018

tobiasdeiminger committed R223:61e8b1d79dc7: Merge remote-tracking branch 'origin/Applications/18.08' (authored by tobiasdeiminger).
Merge remote-tracking branch 'origin/Applications/18.08'
Sep 18 2018, 7:36 PM
tobiasdeiminger committed R223:fa7a1b3d0674: Avoid undefined behavior due to dangling file descriptor (authored by tobiasdeiminger).
Avoid undefined behavior due to dangling file descriptor
Sep 18 2018, 7:34 PM
tobiasdeiminger closed D15574: Avoid undefined behavior due to dangling file descriptor.
Sep 18 2018, 7:34 PM · Okular
tobiasdeiminger added a comment to T8076: Fix design of annotation toolbar.

@tobiasdeiminger ..and yes I would like to coordinate so we don't waste effort.

Sep 18 2018, 4:50 PM · VDG, Okular

Sep 17 2018

tobiasdeiminger added a comment to D15580: New annotation toolbar.

It took some minutes until I realized how to change from ellipse to polygon (long left press). Now I find it good and easy. Would there be a way to make it even more self explaining?

Sep 17 2018, 7:19 PM · Documentation, Okular
tobiasdeiminger added a comment to D15580: New annotation toolbar.

How would the new color picker handle "multi-color" annotations? I ask, because D15205 brings selectable font color for typewriter tool. Inline note is very similar, so I had intended to submit a font color patch for inline note too. This would bring annotations with two different color values, namely background color and font color. Given the related poppler patch for FreeText has already landed, and typewriter is ready for review, that's not too hypothetical. We could even go one step further, and introduce a third color for the border.

Sep 17 2018, 7:18 PM · Documentation, Okular
tobiasdeiminger added a comment to D15580: New annotation toolbar.

Nice approach👍 D15204, D15205 and D15580 conflict somewhat. Not bad, but whoever gets in later will have to adapt. Shall we try to coordinate?

Sep 17 2018, 7:17 PM · Documentation, Okular
tobiasdeiminger added inline comments to D15574: Avoid undefined behavior due to dangling file descriptor.
Sep 17 2018, 1:03 PM · Okular
tobiasdeiminger updated the diff for D15574: Avoid undefined behavior due to dangling file descriptor.

Fix check for m_sleepInhibitFd

Sep 17 2018, 1:00 PM · Okular
tobiasdeiminger requested review of D15574: Avoid undefined behavior due to dangling file descriptor.
Sep 17 2018, 12:32 PM · Okular

Sep 11 2018

tobiasdeiminger accepted D15301: Use std::unique_ptr for two private data members.
Sep 11 2018, 7:01 AM · Okular

Sep 8 2018

tobiasdeiminger added a comment to D15347: Modify CloseDialogHelper in parttest.

Do you think it'd make sense to actually fix the bug you mentioned instead of changing click to a queued invoke? Feels a bit weird to be honest

Sep 8 2018, 8:50 PM · Okular
tobiasdeiminger committed R223:0128f33f43eb: Fix isNull check for RegularArea (authored by tobiasdeiminger).
Fix isNull check for RegularArea
Sep 8 2018, 8:33 PM
tobiasdeiminger closed D15344: Fix isNull check for RegularArea.
Sep 8 2018, 8:33 PM · Okular
tobiasdeiminger updated the summary of D15204: Add typewriter annotation tool.
Sep 8 2018, 2:39 PM · Okular
tobiasdeiminger added a dependent revision for D15347: Modify CloseDialogHelper in parttest: D15348: Add typewriter autotests.
Sep 8 2018, 2:38 PM · Okular
tobiasdeiminger requested review of D15348: Add typewriter autotests.
Sep 8 2018, 2:38 PM · Okular
tobiasdeiminger requested review of D15347: Modify CloseDialogHelper in parttest.
Sep 8 2018, 2:31 PM · Okular
tobiasdeiminger added a dependent revision for D15205: Support setting text color for typewriter annotations: D15347: Modify CloseDialogHelper in parttest.
Sep 8 2018, 2:31 PM · Documentation, Okular
tobiasdeiminger updated the diff for D15205: Support setting text color for typewriter annotations.

No real changes, just follow rebase of parent revision D15204.

Sep 8 2018, 2:27 PM · Documentation, Okular
tobiasdeiminger updated the diff for D15204: Add typewriter annotation tool.

D15279 has landed, we can depend on master again.
Factor out autotests. Will be moved on top of revision stack.

Sep 8 2018, 2:23 PM · Okular
tobiasdeiminger requested review of D15344: Fix isNull check for RegularArea.
Sep 8 2018, 8:50 AM · Okular
tobiasdeiminger added inline comments to D15301: Use std::unique_ptr for two private data members.
Sep 8 2018, 8:30 AM · Okular

Sep 7 2018

tobiasdeiminger committed R223:d61cef693d96: Store all annotation color attributes as ARGB string (authored by dileepsankhla).
Store all annotation color attributes as ARGB string
Sep 7 2018, 4:55 PM
tobiasdeiminger closed D15279: Store all annotation color attributes as ARGB string.
Sep 7 2018, 4:55 PM · Okular
tobiasdeiminger updated subscribers of D15279: Store all annotation color attributes as ARGB string.

I'm going to push, and want to do it on behalf of @dileepsankhla who did the original work. I.e. my Phab revision, but git commit author should be him.
Has anybody tried with arc land? Will this work?

$ git commit --amend --author="Original Author <email@address.com>"
$ arc land
Sep 7 2018, 11:37 AM · Okular
tobiasdeiminger updated the summary of D15279: Store all annotation color attributes as ARGB string.
Sep 7 2018, 11:19 AM · Okular

Sep 6 2018

tobiasdeiminger added a comment to D15279: Store all annotation color attributes as ARGB string.

So what now? The patch seems to do something reasonable, but it does not do what you claim it does.

Sep 6 2018, 4:35 PM · Okular
tobiasdeiminger added inline comments to D15301: Use std::unique_ptr for two private data members.
Sep 6 2018, 7:38 AM · Okular

Sep 5 2018

tobiasdeiminger added a comment to D15279: Store all annotation color attributes as ARGB string.

I cannot reproduce Part 1 of your test plan. When I delete my okularpartrc and start Okular (with the patch), then the freshly created okularpartrc file

When is your new okularpartrc created exactly? Afaikt, it should not be created right on startup, but only when you modify some tool in the config dialog.

Sep 5 2018, 10:30 PM · Okular
tobiasdeiminger updated the diff for D15205: Support setting text color for typewriter annotations.

Remove reintroduced whitespace change.

Sep 5 2018, 7:58 AM · Documentation, Okular
tobiasdeiminger updated the diff for D15205: Support setting text color for typewriter annotations.

Rebase on D15204. Check for poppler 0.69.

Sep 5 2018, 7:49 AM · Documentation, Okular
tobiasdeiminger updated the diff for D15204: Add typewriter annotation tool.

Rebased on D15279, to factor out ARGB format change. Fix whitespace change.

Sep 5 2018, 7:20 AM · Okular

Sep 4 2018

tobiasdeiminger added a dependency for D15204: Add typewriter annotation tool: D15279: Store all annotation color attributes as ARGB string.
Sep 4 2018, 9:03 PM · Okular
tobiasdeiminger added a dependent revision for D15279: Store all annotation color attributes as ARGB string: D15204: Add typewriter annotation tool.
Sep 4 2018, 9:03 PM · Okular
tobiasdeiminger requested review of D15279: Store all annotation color attributes as ARGB string.
Sep 4 2018, 9:00 PM · Okular
tobiasdeiminger added a comment to D15204: Add typewriter annotation tool.

Would it a good idea to split those changes that deal with the color alpha channel into a separate patch? That would make reviewing easier, and lead to more legible git history.

Sep 4 2018, 6:16 PM · Okular

Sep 1 2018

tobiasdeiminger updated the summary of D15204: Add typewriter annotation tool.
Sep 1 2018, 1:00 PM · Okular
tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

I'd like to split this into two new Diffs

Sounds like a good idea to me.

Sep 1 2018, 12:59 PM · Okular
tobiasdeiminger requested review of D15205: Support setting text color for typewriter annotations.
Sep 1 2018, 12:48 PM · Documentation, Okular
tobiasdeiminger added a dependent revision for D15204: Add typewriter annotation tool: D15205: Support setting text color for typewriter annotations.
Sep 1 2018, 12:48 PM · Okular
tobiasdeiminger requested review of D15204: Add typewriter annotation tool.
Sep 1 2018, 10:36 AM · Okular

Aug 25 2018

tobiasdeiminger accepted D14752: Fix links being "lost" on save.

Here's a PDF and LaTex source, suitable to trigger and test OkularLinkType::setAnnotation in resolveMediaLinks.

Aug 25 2018, 7:21 AM · Okular

Aug 24 2018

tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

I'd like to split this into two new Diffs

  1. Add typewriter (everything until ID 36397)
  2. Add fontcolor support (the reminder, depends on "Add typwriter")

It's easier to review and test. And, the first part could land quite immediately, the second part depends on a pending poppler patch that needs some more research.

Aug 24 2018, 4:36 AM · Okular

Aug 20 2018

tobiasdeiminger added a comment to D14752: Fix links being "lost" on save.

I'm currently looking for documents to test the resolveMediaLinkReferences stuff. It requires documents containing pages, screen/widget annotations, or form fields - with associated open or close additional action, of action type movie or rendition. Does anybody have such files laying around?

Aug 20 2018, 7:54 PM · Okular

Aug 13 2018

tobiasdeiminger added inline comments to D14752: Fix links being "lost" on save.
Aug 13 2018, 7:28 AM · Okular
tobiasdeiminger added a comment to D14752: Fix links being "lost" on save.

@sander Here's a bit of explanation how I understand it. Maybe you can extract comments / commit message / documentation from it.

Aug 13 2018, 7:18 AM · Okular
tobiasdeiminger added a comment to D14752: Fix links being "lost" on save.

Alberts patch works for me and I don't know another solution that would be reasonable simple. BUG: 397373 is a side effect of deferred ("lazy") link setup inside PDFGenerator. Deferred link setup is an implementation detail of PDFGenerator, and so its side effects have to be mitigated also locally to PDFGenerator. PDFGenerator::swapBackingFile is the most obvious place.

Aug 13 2018, 7:17 AM · Okular

Jul 18 2018

tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jul 18 2018, 8:36 PM · Okular

Jul 15 2018

tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jul 15 2018, 4:36 PM · Okular
tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jul 15 2018, 4:31 PM · Okular

Jun 17 2018

tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jun 17 2018, 8:23 PM · Okular

Jun 13 2018

tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jun 13 2018, 7:41 AM · Okular

Jun 11 2018

tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jun 11 2018, 7:46 AM · Okular

Jun 4 2018

tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jun 4 2018, 2:00 PM · Okular

Jun 1 2018

tobiasdeiminger added inline comments to D13203: Add Typewriter annotation tool in Okular.
Jun 1 2018, 4:52 PM · Okular
tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

Typewriter annotations created with the initial typewriter tool have a border of width=1 (Okular started without existing okularpartrc). But we always want border width = 0 for typewriter, is it? It could even be hardcoded into drawing code.

Jun 1 2018, 12:35 PM · Okular

May 31 2018

tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

I mean isn't it enough to change the line to acolor.setAlpha( a->style().opacity() * a->style().color().alpha() ) as you suggested? Why do we need to change the Poppler's one?

May 31 2018, 7:44 AM · Okular
tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

In ui/pagepainter.cpp L 668, we can comment out acolor.setAlpha( opacity ) as here the value of opacity is 255 but changing the L 659 or 668 should be consistent in the case of other annotations too. Is commenting out L 668 accepted?

if ( inplaceIntent == Okular::TextAnnotation::InplaceIntent ) acolor.setAlpha(0);

in PagePainter.

Any other ideas?

May 31 2018, 6:48 AM · Okular

May 30 2018

tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

In ui/pagepainter.cpp L 668, we can comment out acolor.setAlpha( opacity ) as here the value of opacity is 255 but changing the L 659 or 668 should be consistent in the case of other annotations too. Is commenting out L 668 accepted?

May 30 2018, 5:06 PM · Okular
tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

Hmm, what can this do that the regular text annotation tool can't?

The typewriter feature should ultimately get an UI similar to the Adobe Reader typewriter tool, but we decided to start with a less breaking and more working patch 😄 Therefore Dileep just reuses the inline note tool. The resulting annotation differs from inline note in making background always transparent and setting PDF field "intent" to FreeTextTypeWriter to ensure interoperability with other PDF tools. This fulfills the minimal requirements for a typewriter tool.

May 30 2018, 12:17 PM · Okular

May 29 2018

tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

If I use the new tool to typewrite onto a plain text file, I get opaque white background instead of transparent background. Transparency does work for PDF documents (i.e. rendered by poppler). In the former case the typewriter annotation is drawn in ui/pagepainter.cpp L.680. Can you checkout what's wrong there?

May 29 2018, 10:11 PM · Okular
tobiasdeiminger added a comment to D13203: Add Typewriter annotation tool in Okular.

I have committed the same to my separate branch: https://cgit.kde.org/okular.git/log/?h=gsoc2018_typewriter but don't know how it got landed! It needs to be reviewed first. Have I done something wrong?

May 29 2018, 9:38 PM · Okular

Apr 3 2018

tobiasdeiminger added a comment to D11051: Remembering side navigation panel state.

One thing that may fix it is changing

m_sidebar = new Sidebar( parentWidget );

to

m_sidebar = new Sidebar();

in part.cpp, this micht change the part/child relationships and get yourself of this problem. can you give it a quick try?

Apr 3 2018, 10:39 AM · Okular

Jan 13 2018

tobiasdeiminger added inline comments to D9852: Fix crash due to dangling pointer in MouseAnnotation.
Jan 13 2018, 9:57 AM · Okular

Jan 5 2018

tobiasdeiminger added a comment to F5620896: Make poppler scale text annotation icons to respect size in /Rect.

One can only change Name, Visible To, Subscribers in Edit File. But no file content. And I guess that's ok, I should not try to abuse the file app as a code review tool for external projects code.

Jan 5 2018, 10:43 PM
tobiasdeiminger added a comment to F5620896: Make poppler scale text annotation icons to respect size in /Rect.

The comments in the patch should be as follows. How can I edit the attached file?

// 1 x units in AP_* will be scaled with sx = (rect->x2 - rect->x1) / 24
// 1 y units in AP_* will be scaled with sy = (rect->y2 - rect->y1) / 24
Jan 5 2018, 9:17 AM
tobiasdeiminger updated the summary of D9615: Fix calculation of TextAnnotation size so that select/move rectangle fits exactly around icons regardless of PDF page size and DPI settings.
Jan 5 2018, 8:23 AM · Okular
tobiasdeiminger added a comment to F5620896: Make poppler scale text annotation icons to respect size in /Rect.

This is a demonstration how BUG 387639, BUG 388458 and D9615 can be solved by poppler. If applied, poppler draws text annotation icons according to what was set in Poppler::Annotation::setBoundary, or what's defined in /Rect (in the case of an external PDF writer). It works because the transformation matrix in Gfx::drawAnnot gets prepared so that 24 x units from the appearance stream will become width = x2 - x1 units from the /Rect. The patch should apply to current poppler master.

Jan 5 2018, 8:15 AM

Jan 3 2018

tobiasdeiminger updated the summary of D9615: Fix calculation of TextAnnotation size so that select/move rectangle fits exactly around icons regardless of PDF page size and DPI settings.
Jan 3 2018, 8:21 PM · Okular
tobiasdeiminger updated the summary of D9615: Fix calculation of TextAnnotation size so that select/move rectangle fits exactly around icons regardless of PDF page size and DPI settings.
Jan 3 2018, 4:38 PM · Okular

Jan 2 2018

tobiasdeiminger added a comment to D9615: Fix calculation of TextAnnotation size so that select/move rectangle fits exactly around icons regardless of PDF page size and DPI settings.

Remove unnecessary brackets.

Jan 2 2018, 10:28 PM · Okular
tobiasdeiminger updated the diff for D9615: Fix calculation of TextAnnotation size so that select/move rectangle fits exactly around icons regardless of PDF page size and DPI settings.
Jan 2 2018, 10:26 PM · Okular