Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple application window #6

Merged
merged 12 commits into from Mar 5, 2016
Merged

Simple application window #6

merged 12 commits into from Mar 5, 2016

Conversation

zmughal
Copy link
Member

@zmughal zmughal commented Jan 31, 2016

Create a simple application for viewing PDF pages as images.

Meeting log: https://project-renard.github.io/doc/development/meeting-log/posts/2016/01/30/using-glade-to-build-curie-gui/

This creates an application with a menu and toolbar using a vertical
GtkBox and adds the docking manager to a position in the middle of the
GtkBox.

The layout looks like the following:

  +------------+
  |    Menu    |
  +------------+
  |   Toolbar  |
  +------------+
  |  [Docking] |
  +------------+
  | Status bar |
  +------------+
Fill this area with a green colour.
@zmughal
Copy link
Member Author

zmughal commented Jan 31, 2016

Progress so far:

curie-green-drawing-area

This draws the peppers.png image to the Cairo context in the top-left
corner.
@zmughal
Copy link
Member Author

zmughal commented Jan 31, 2016

Progress so far:
curie-peppers-drawing-area

Buttons for navigating to the:
 - First page
 - Previous page
 - Next page
 - Last page
Uses `pdfinfo` to get the number of PDF pages and `mudraw` to get the
current page as a PNG file.

The next and previous pages can be accessed via the buttons and there
are buttons to jump to the first and last pages.
@zmughal
Copy link
Member Author

zmughal commented Feb 8, 2016

Using mudraw to render PDF:

curie-simple-mudraw-pdf-render

zmughal and others added 2 commits February 10, 2016 21:23
Added text entry using Glade. Setup the activate signal to use the
callback to set the page number. When the page number is changed,
the number in the entry field is changed to match the current page.
StayerX and others added 5 commits March 3, 2016 21:37
Added text entry for setting and viewing page number.
Set the main window title to the PDF filename
There is still an issue with size of the scrolling window because we do
not have the exact dimensions of the PDF page.
This tells the outer scrolling frame how far to scroll in both
directions.
@zmughal
Copy link
Member Author

zmughal commented Mar 5, 2016

Now merging all onto master.

zmughal added a commit that referenced this pull request Mar 5, 2016
@zmughal zmughal merged commit 96ad0a6 into master Mar 5, 2016
@zmughal zmughal deleted the simple-gui branch March 9, 2016 10:10
@zmughal zmughal modified the milestone: curie v0.001 Apr 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants