ahmadosama (Ahmad Osama)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Sunday

  • Clear sailing ahead.

User Details

User Since
Feb 14 2018, 11:21 AM (322 w, 1 d)
Availability
Available

Recent Activity

May 2 2019

ahmadosama updated the summary of D20961: [KJS] Allow calling function from KJSObject by adding a call function to its api.
May 2 2019, 12:20 PM · Frameworks
ahmadosama updated the diff for D20961: [KJS] Allow calling function from KJSObject by adding a call function to its api.
  • Passing default empty paramters to the call function
May 2 2019, 12:15 PM · Frameworks
ahmadosama added a comment to D20961: [KJS] Allow calling function from KJSObject by adding a call function to its api.

I updated the the description of the patch now, sorry about that.

May 2 2019, 11:52 AM · Frameworks
ahmadosama updated the summary of D20961: [KJS] Allow calling function from KJSObject by adding a call function to its api.
May 2 2019, 11:50 AM · Frameworks
ahmadosama retitled D20961: [KJS] Allow calling function from KJSObject by adding a call function to its api from Allow calling function from KJObject by adding a call function to its api to [KJS] Allow calling function from KJObject by adding a call function to its api.
May 2 2019, 11:43 AM · Frameworks
ahmadosama requested review of D20961: [KJS] Allow calling function from KJSObject by adding a call function to its api.
May 2 2019, 11:42 AM · Frameworks

Oct 26 2018

ahmadosama updated the diff for D16285: Remember printing option and print range in the print dialog.
  • Changing variables, function names and comments to be more meaningful
Oct 26 2018, 6:44 PM · Okular

Oct 21 2018

ahmadosama added a comment to D16285: Remember printing option and print range in the print dialog.

If you're not going to save the data, why are you adding it to the docinfo xml?

If this is only for remembering the options while okular is open i don't even think it makes sense storing it into document at all and should just be stored in Part as something like a QMap<Document,PrinterOptions>

I am adding the data to the docinfo xml to remember those data when the file is reopened even after closing Okular the printing data would be remembered for the same file.

But you just said "I reset the printing options when closing the document".

So I'm confused.

Is the plan to remember options between different Okular executions or is it no?

Oct 21 2018, 8:24 PM · Okular
ahmadosama added a comment to D16285: Remember printing option and print range in the print dialog.

@yurchor
I have reformatted the code to be consistent, sorry for this.

Oct 21 2018, 6:53 PM · Okular
ahmadosama updated the diff for D16285: Remember printing option and print range in the print dialog.
  • Reformat other parts of the code
Oct 21 2018, 6:43 PM · Okular
ahmadosama updated the diff for D16285: Remember printing option and print range in the print dialog.
  • Reformatting the code to be consistent with other parts
Oct 21 2018, 6:40 PM · Okular
ahmadosama added a comment to D16285: Remember printing option and print range in the print dialog.

If you're not going to save the data, why are you adding it to the docinfo xml?

If this is only for remembering the options while okular is open i don't even think it makes sense storing it into document at all and should just be stored in Part as something like a QMap<Document,PrinterOptions>

Oct 21 2018, 6:30 PM · Okular
ahmadosama added a comment to D16285: Remember printing option and print range in the print dialog.

This new information is saved/remembered per-document and not globally, right?

Oct 21 2018, 5:43 PM · Okular
ahmadosama updated the diff for D16285: Remember printing option and print range in the print dialog.
  • Resetting the printing option to the default options when closing document
Oct 21 2018, 5:38 PM · Okular

Oct 17 2018

ahmadosama added a reviewer for D16285: Remember printing option and print range in the print dialog: Okular.
Oct 17 2018, 9:44 PM · Okular
ahmadosama requested review of D16285: Remember printing option and print range in the print dialog.
Oct 17 2018, 9:39 PM · Okular

Aug 12 2018

ahmadosama added a comment to D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.

I updated the parttest.cpp, the tocreload.pdf file in the data directory reproduced this bug so I used it for the unit test.

Aug 12 2018, 9:24 PM · Okular
ahmadosama updated the diff for D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.
  • Adding a unit test to check that document doesnot go back to contents view after saving
Aug 12 2018, 9:21 PM · Okular
ahmadosama updated the diff for D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.
Aug 12 2018, 9:17 PM · Okular

Aug 11 2018

ahmadosama updated the summary of D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.
Aug 11 2018, 10:21 AM · Okular
ahmadosama added a reviewer for D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view: Okular.
Aug 11 2018, 9:49 AM · Okular
ahmadosama updated the summary of D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.
Aug 11 2018, 9:48 AM · Okular
ahmadosama updated the summary of D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.
Aug 11 2018, 9:47 AM · Okular
ahmadosama updated the summary of D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.
Aug 11 2018, 9:46 AM · Okular
ahmadosama requested review of D14740: Fix problem of saving pdf switches from thumbnail view in sidebar to contents view.
Aug 11 2018, 9:41 AM · Okular

Apr 18 2018

ahmadosama added a comment to D10932: [Okular] Option to reset forms.

I agree with what you have said, and I was thinking about some of it.
Closing the feature will not upset me, I have learned a lot from working on it.
I hope that I could make better contributions to Okular later.

Apr 18 2018, 7:29 AM · Okular
ahmadosama added a comment to D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.

I will investigate more to find out why m_rects and m_highlights need different transformation matrices.

Apr 18 2018, 7:10 AM · Okular

Apr 11 2018

ahmadosama updated the diff for D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.

I used Okular::buildRotationMatrix to rotate the highlights, the rotation angle is specified in the rotateAt function

Apr 11 2018, 8:40 AM · Okular

Apr 10 2018

ahmadosama added a comment to D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.

As far as I know rotating m_page->m_rects should rotate annotations on the page, the annotations seem to work well when rotating them.

Apr 10 2018, 7:50 PM · Okular
ahmadosama added a comment to D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.
Apr 10 2018, 4:51 PM · Okular

Apr 7 2018

ahmadosama added a comment to D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.

I tried rotating using ( const QTransform matrix = rotationMatrix() ) but it only works when rotating a page from its original orientation, this is why I modified the RotationJob::rotationMatrix in a way similar to Okular::buildRotationMatrix to allow rotating from different orientations.

Apr 7 2018, 8:21 AM · Okular

Apr 4 2018

ahmadosama updated the diff for D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.

I added the boolean parameter to either translate or not.

Apr 4 2018, 12:26 PM · Okular
ahmadosama added a comment to D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.

Oh yes this may break it, I am thinking of adding another Boolean parameter to the RotationJob::rotationMatrix function with a default value of false to either translate or not
The function can be:
RotationJob::rotationMatrix( Rotation from, Rotation to, bool translate = false )

Apr 4 2018, 12:13 PM · Okular

Apr 3 2018

ahmadosama updated the diff for D10932: [Okular] Option to reset forms.

Removing white spaces.

Apr 3 2018, 10:31 AM · Okular
ahmadosama added a reviewer for D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page: Okular.
Apr 3 2018, 10:04 AM · Okular
ahmadosama requested review of D11901: [Okular] Bug 387282: Highlighting of search results lost when rotating page.
Apr 3 2018, 10:03 AM · Okular

Mar 17 2018

ahmadosama updated the diff for D10932: [Okular] Option to reset forms.

I have done the required changes.
I created the EditWidgetsCommand class to undo/redo the reset action of all widgets by a single click, also I moved the core implementation of the reset function to the Document class, and I updated the reset auto test to include the undo/redo and the test is working fine on the created tests.

Mar 17 2018, 6:55 PM · Okular

Mar 15 2018

ahmadosama added inline comments to D10932: [Okular] Option to reset forms.
Mar 15 2018, 8:00 PM · Okular

Mar 14 2018

ahmadosama added a comment to D10932: [Okular] Option to reset forms.

Regarding the undo/redo stacks, the undo/redo command will not undo the whole reset, it will undo widgets somehow randomly.
RadioButtons in the same page will be in the same undo command, as for TextLineEdit each single widget will be added separately to the undo/redo stack.

Mar 14 2018, 4:43 PM · Okular
ahmadosama added inline comments to D10932: [Okular] Option to reset forms.
Mar 14 2018, 4:34 PM · Okular
ahmadosama updated subscribers of D10504: Bug 288042 - Option to reset forms.

yes I am going to cancel this revision.

Mar 14 2018, 3:08 PM · Okular

Mar 13 2018

ahmadosama updated the diff for D10932: [Okular] Option to reset forms.

I added an auto-test for this option, the test is working fine on all the created test cases.

Mar 13 2018, 12:57 PM · Okular
ahmadosama updated the test plan for D10932: [Okular] Option to reset forms.
Mar 13 2018, 12:55 PM · Okular

Mar 11 2018

ahmadosama updated the diff for D10932: [Okular] Option to reset forms.
Mar 11 2018, 10:09 PM · Okular
ahmadosama updated the diff for D10932: [Okular] Option to reset forms.
Mar 11 2018, 5:50 PM · Okular

Mar 8 2018

ahmadosama added a reviewer for D10932: [Okular] Option to reset forms: Okular.
Mar 8 2018, 9:43 PM · Okular

Mar 5 2018

ahmadosama updated the diff for D10932: [Okular] Option to reset forms.

I mistakenly replaced the code with the auto test.
I edited the patch now.

Mar 5 2018, 2:00 PM · Okular
ahmadosama added a comment to D10932: [Okular] Option to reset forms.
Mar 5 2018, 1:17 PM · Okular

Mar 4 2018

ahmadosama updated the diff for D10932: [Okular] Option to reset forms.

I have created an auto test but it is not working, in the test class I created a page view class that takes a document pointer in its constructor then it calls the reset function in the pageview class.

Mar 4 2018, 7:03 PM · Okular

Feb 28 2018

ahmadosama added a comment to D10504: Bug 288042 - Option to reset forms.

I implemented the reset option using Okular::FormFields inspired by the comments here:
https://git.reviewboard.kde.org/r/130057/

Feb 28 2018, 10:03 PM · Okular
ahmadosama requested review of D10932: [Okular] Option to reset forms.
Feb 28 2018, 9:56 PM · Okular

Feb 20 2018

ahmadosama added a comment to D10504: Bug 288042 - Option to reset forms.

I have not created an auto test before, I am currently going through current auto tests to understand how it works, then I will try creating an auto test for this bug.

Feb 20 2018, 12:46 PM · Okular

Feb 17 2018

ahmadosama updated the diff for D10504: Bug 288042 - Option to reset forms.

Removing unnecessary comments, add clear widget function for other widgets.

Feb 17 2018, 9:06 PM · Okular

Feb 14 2018

ahmadosama requested review of D10504: Bug 288042 - Option to reset forms.
Feb 14 2018, 12:24 PM · Okular