Activity Not Available
8
I Use This!

Commits : Listings

Analyzed 4 months ago. based on code collected 4 months ago.
Jun 10, 2015 — Jun 10, 2016
Commit Message Contributor Files Modified Lines Added Lines Removed Code Location Date
Refactor: Make MainWindow hold a reference to the current scheme Previously, the current scheme was not really held in a central place -- the scheme display box was sort of the central definition of current scheme, but it was sort of spread out between several widgets. This re-factoring makes the MainWindow hold the current Scheme. There has been a new signal 'changed' added to the Scheme class so that observers can be notified when the scheme changes. The SchemeBox class has been refactored so that it will update its display whenever the current scheme changes. The mainwindow takes care of updating all of the auxiliary widgets such as ColorButton, SchemeSelector, etc. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Experiment with a slightly more compact scheme cell renderer E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
When user selects a favorite scheme, switch to that scheme, not just the color Changed the bookmarks widget to get the currently-selected scheme instead of the currently-selected scheme, and switch to that scheme type and color. There are a few regressions here -- particularly, if you select a scheme in the favorites list and then modify the type or the color in the main scheme area, it won't become de-selected since that was causing me problems. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Scheme: Constify some getters E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Draw CellRendererSwatch using cairo instead of GDK E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Save favorite schemes instead of just favorite colors. The list of favorites in Project now is based on Schemes instead of Colors. In addition, there has been a new cellrenderer added that will display the entire scheme in the favorites treeview instead of just the primary color. Also fixed an error in parsing the project file where the color name didn't get parsed correctly. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Max export more generic by allowing user to select export format Currently there is only one format offered: Gimp palette, but eventually there may be others as well. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
'export' option is only available if the current project has favorites E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Fix Gimp palette export Now I can save the current project's favorite colors as a gimp palette file again. This was broken when I decided that the BookmarksList widget shouldn't be saving or loading any files. I handle this currently by adding a helper function Project::as_palette() that copies the project's favorite colors into a Palette object, which has defined an output stream operator to create a gimp palette file In the process, I added a utility dialog class for displaying errors in a popup dialog E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Make "Save" the default action in the Quit confirmation dialog E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Share code between NewProject dialog and ProjectProperties dialog New 'widget' named ProjectDetails which just shows a table with the name and description of the project E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Start the File Open dialog in the directory of the current project If the current project has not been saved or there is no current project, then default the file open dialog to the user's home directory. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Hook up the favorites list to display favorites from the current project I did this in a rather hacky way -- each Project object has a treemodel object for storing its list of favorite colors. I don't really like this -- ideally i'd use a more well-suited container such as std::vector<> that's easier to deal with outside of a treeview context. But then I'd need to write a custom TreeModel class and I'm not ready to do that just yet. There's a lot to do here yet, but it does seem to show the favorites for the currently selected project and also save them to file as well. It still doesn't seem to save the custom color names and stuff like that. When you add / remove / re-order stuff in a favorites list associated with a project, however, it doesn't mark that project as 'dirty', so it doesn't yet show a quit confirmation dialog if you try to quit without saving after you've modified the favorites list. I also had to change the BookmarkList class to allow swapping out different TreeModels when new projects are loaded. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Consolidate all of the handling for updating project info in one spot Do all of the updating of the title bar, etc. in the `on_project_set()` signal handler instead of doing some in close_project(), etc. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
At startup, if no project is loaded, create a new empty project Instead of showing "[No Project]" in the window title and not having a current project at all at startup, create a new empty project so that the user can start adding things to this new project and have it be saved. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Set Window subtitles when no project is loaded and when the project has no name When there is no project loaded, it displays [No Project] in the window title When the current project has no name, it displays [Unnamed Project] in the window title E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Handle changes to the project and indicate 'dirty' state in window title Whenever a project changes (e.g. the name or description at this point), it emits a 'changed' signal. We now handle this signal and update the titlebar of the main window to indicate whether the project has unsaved changes or not. To make this possible, I had to change some of the 'has_changes' handling in the Project class and change how I initialize some properties when parsing from a file. We now save two copies of each project property. one is the last saved value, and one is the current value. in the Parser, instead of setting the data fields directly, I added protected interfaces init_* which takes care of setting both the saved and the current values to the same values so that the parser class isn't responsible for dealing with that kind of detail. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Changed the description field in the properties dialog to a multi-line TextView There are some issues with dialog window resizing when you type text into the TextView that need to be addressed yet. E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Add a project properties dialog This dialog shows the name and description of the current project (which you can also edit in this dialog) While developing this dialog, I noticed that there were some problems with the the project being marked 'dirty' when it shouldn't have been, which resulted in quit confirmation dialogs popping up when they weren't supposed to. This was caused by the ProjectParser class which sets information about a project using the same public interfaces as others use. The result is that when you set e.g. the name of the project it marks it as dirty even though it's just the name that was parsed from the file. Because of this, I now set the data directly instead of using the public interfaces. Perhaps it would be better to add some private-ish interfaces, but this works for now... E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago
Remove unnecessary forward-declaration E172ba3486ac3014022ca828d0f8d675?&s=32&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon32 More... over 9 years ago