2008-01-07 Boyd Timothy * NEWS: Updated for 0.9.3 release. 2008-01-07 Boyd Timothy * Tomboy/Search.cs: Added selected_notebook on the SearchNotes method so that the search count is accurate and notes not belonging to a notebook can be skipped. * Tomboy/RecentChanges.cs: Adjusted the status text so it will show "Total: {0} note/s" or "Matches: {0} note/s" depending on whether there's a current search or not. This helps with simplicity and also allows the count for searching with a notebook selected to have proper counts. * Tomboy/RemoteControl.cs: Pass null in for selected_noteboook when calling SearchNotes. * Tomboy/Notebooks/Notebook.cs: Use the new Note.ContainsTag () for Notebook.ContainsNote () instead of iterating through all a note's tags. This changes this operation to O(1) time. 2008-01-07 Boyd Timothy * Tomboy/Note.cs: Added a boolean to track when we're deleting a note. Use this boolean in the Save () method from preventing any other condition from causing a save once Delete () has been called. 2008-01-07 Sandy Armstrong * Tomboy/ActionManager.cs: Add ActionManager.GetPlaceholderChildren method, which retrieves the widgets for all child elements under the specified placeholder XML element in the UIManager XML. * Tomboy/Tray.cs: Fix reordering of menu items placed in the TrayNewNotePlaceholder element in the UIManager XML. Fixes bug #507798. Does not account for menu items added under other placeholders, or menu items added in other fashions (so it doesn't work with the Tasks addin which adds items programatically). 2008-01-07 Sandy Armstrong * Tomboy/Tomboy.cs: If dbus is disabled, execute command line options *after* initializing the ActionManager and ApplicationAddins. Opening the search UI before this is done causes Tomboy to hit null reference exceptions while acessing the ActionManager, and crash. 2008-01-07 Sandy Armstrong * Tomboy/Utils.cs: Commenting out use of Gtk.Button.ImagePosition, which is new to GTK+ 2.10. We were just setting it to the default value, anyway. 2008-01-07 Sandy Armstrong * Tomboy/NoteManager.cs: Don't need "Tagging In Tomboy" note anymore, though maybe "Notebooks In Tomboy" would be useful. 2008-01-06 Sandy Armstrong * Tomboy/PreferencesDialog.cs: Fix compilation error when gtk+ < 2.10. 2008-01-05 Boyd Timothy * data/images/Makefile.am: Added the two new tomboy-new-notebook-*.png files into the list so they'll be included in EXTRA_DIST. Fixes `make distcheck`. 2008-01-05 Sandy Armstrong * Tomboy/Notebooks/NotebookNoteAddin.cs: Move toolButton initialization from Initalize method to OnNoteOpened method, since accessing Note.Window causes the buffer to be created (for each note on startup!). 2008-01-05 Sandy Armstrong * Tomboy/Tray.cs: Fix path in ActionManager.GetWidget call for the "Create New Note" menu item. Fixes the recent notes menu, except that Notebook menu item placement isn't dynamic (always at bottom, yuck). 2008-01-05 Chris Scobell * Tomboy/Notebooks/NotebookNoteAddin.cs: Set the Homogeneous property of the notebook toolbar button to be false so that the size of the text in the label does not affect the size of all the other toolbar buttons. 2008-01-04 Boyd Timothy * Tomboy/TagManager.cs: Add a static string for a template system tag. * Tomboy/RecentChanges.cs: Filter out template notes from the list of notes. Still need to update the status bar at the bottom of the window to also reflect template notes. * Tomboy/Tray.cs: Prevent template notes from appearing in the main menu. * Tomboy/NoteWindow.cs: Expose the Delete button so that other modules can disable it (in this case, a notebook template note shouldn't be able to be deleted). * Tomboy/Notebooks/NotebookManager.cs: Don't give the user an option to delete the template note when deleting a notebook, they will be deleted. * Tomboy/Notebooks/Notebook.cs: Tag the notebook's template note with the system template tag. * Tomboy/Notebooks/NotebookNoteAddin.cs: Disable the Notebook and Delete Toolbar Buttons when the note is a template note. * Tomboy/NoteManager.cs: Tag the default template note with the system template tag. * Tomboy/Note.cs: Added ContainsTag (Tag):bool so that other modules can quickly (O(1) operation) check whether a note has the specified tag (the system template tag in this case). 2008-01-04 Boyd Timothy * configure.in: Define CSC_DEFINES="-d:GTK_2_10" when the system has Gtk+ 2.10 or newer so that we can safely use the Gtk.LinkButton and use Gtk.Button when building on older platforms. * Tomboy/PreferencesDialog.cs: Conditionally use Gtk.LinkButton. * Tomboy/Utils.cs: Add a convenience AddButton () method to allow a non-stock button with custom pixbuf. Also allow a custom pixbuf to be used for the main dialog image. * Tomboy/Notebooks/CreateNotebookDialog.cs: Don't use Gtk.MessageType.Other since that doesn't build on older versions of Gtk. Instead, specify a custom pixbuf in the constructor so the dialog looks nicer. * Tomboy/Makefile.am: Compile in tomboy-new-notebook.png and tomboy-new-notebook-dialog.png icons as resources. * data/images/tomboy-new-notebook-22.png: Stubbing this out so it's easier for an artist to provide proper icons later. * data/images/tomboy-new-notebook-48.png: Ditto. * data/images/Makefile.am: Install the tomboy-new-notebook icons in their proper locations. 2008-01-03 Boyd Timothy We're planning to implement a tasks interface in the future. This will allow developers to write relatively simple task add-ins to create tasks in a separate task management system (like EDS). Until then, the current Tasks Add-in is pretty unstable and shouldn't be released as such. This commit comments it out from being built/packaged. * Tomboy/configure.in: Removed Tomboy/Addins/Tasks/Makefile. * Tomboy/Addins/Makefile.am: Removed Tasks from SUBDIRS. 2008-01-03 Boyd Timothy * Tomboy/NoteWindow.cs: Fixed the accelerators for the Search and Link buttons (prevents weird Gtk-WARNING messages too). 2008-01-03 Boyd Timothy Modified our Gtk.Toolbar usage to not use the deprecated Append () calls anymore. Also add a Notebook tool item in the NoteWindow: * Tomboy/Utils.cs: Extend Gtk.ToggleToolButton instead of Gtk.ToggleButton to implement the ToolMenuButton class. Removed the seemingly unnecessary vert/horiz/is_important code. * Tomboy/RecentChanges: Ellipsize the name of the notebooks in the notebooks column. * Tomboy/NoteWindow.cs: Modified the toolbar to use the non-deprecated methods. * Tomboy/Notebooks/NotebookNoteAddin.cs: Use a ToolMenuButton to expose a Notebook button in the NoteWindow that will show the name of the notebook the note is in. The user can also quickly change which notebook the note is in by clicking the button and selecting a new notebook from the submenu. This replaces the "Place in notebook" item that was previously in the "Tools" menu. * Tomboy/NoteAddin.cs: Allow add-ins to add a new Gtk.ToolItem to the NoteWindow. These will be placed after the Delete button. 2008-01-03 Sandy Armstrong * Tomboy/Notebooks/NotebookManager.cs: Check that previous notebook isn't null when moving a note to a different notebook. Patch courtesy of Daiguren Hyōrinmaru. 2007-12-26 Jakub Steiner * data/images/tomboy-notebook-22: replace the placeholder with an actual notebook icon. 2007-12-24 Sandy Armstrong * Tomboy/RecentChanges.cs: "All notes" notebook has same context menu as real notebooks (but Delete is disabled). Also, double-clicking it opens the default template note. * Tomboy/Notebooks/Notebook.cs: Override AllNoteNotebook.GetTemplateNote to get/create the default template note. * Tomboy/Notebooks/NotebookApplicationAddin.cs: Add NotebooksTreeNoRowContextMenu to allow creating a new notebook by right-clicking on the empty space in the notebooks treeview. 2007-12-22 Boyd Timothy * Tomboy/RecentChanges.cs: Update search results immediately when a note is added/removed to/from a notebook by watching the NotebookManager events. * Tomboy/Notebooks/NotebookManager.cs: Emit an event whenever a notebook leaves or is placed into a notebook. 2007-12-22 Boyd Timothy Introduce drag and drop so users can drag a note into a notebook in the Search All Notes Window: * Tomboy.mdp: Added NotebooksTreeView.cs. * Tomboy/RecentChanges.cs: Use NotebooksTreeView so drag and drop will work. * Tomboy/Notebooks/NotebookManager.cs: Added MoveNoteToNotebook (). * Tomboy/Notebooks/NotebooksTreeView.cs: New TreeView used to set up drag and drop. * Tomboy/Notebooks/NotebookMenuItem.cs: Moved the move to notebook functionality out of this file and into NotebookManager.MoveToNotebook (). 2007-12-22 Boyd Timothy * Tomboy.mdp: Removed NotebookPreferenceTabAddin.cs. * Tomboy/RecentChanges.cs: Removed the add/remove notebooks buttons that were under the TreeView and moved the functionality into the File/Edit and context menu. * Tomboy/Tomboy.addin.xml: Removed the NotebookPreferenceTabAddin. * Tomboy/Notebooks/NotebookManager.cs: Renamed RemoveNotebook items to DeleteNotebook*. * Tomboy/Notebooks/NotebookApplicationAddin.cs: Added code so the Open Notebook Template Note and Delete Notebook actions will be available. * Tomboy/Notebooks/NotebookPreferenceTabAddin.cs: Deleted this file/feature now that users can manipulate notebooks from the Search All Notes window. * data/UIManagerLayout.xml: Added a placeholder surrounding the DeleteNoteAction so that the DeleteNotebookAction could be placed directly underneath it. 2007-12-21 Boyd Timothy * Tomboy/Notebooks/NotebookNoteAddin.cs: Adjusted a GetString call so the comment appears on the direct previous line so it gets picked up by L10N tools. 2007-12-21 Boyd Timothy * Tomboy/RecentChanges.cs: Add add/remove buttons so users can add/remove notebooks directly in this window. Stubbed-out tomboy-all-notes.png and tomboy-notebook.png. Added event handlers for all the notebook list interaction including when you activate a row, it will open the template note. * Tomboy/Notebooks/NotebookManager.cs: Add PromptRemoveNotebook() so any code can ask the user to remove a notebook. Moved the AllNotesNotebook class into Notebook.cs. * Tomboy/Notebooks/Notebook.cs: Added AllNotesNotebook class to this file. * Tomboy/Notebooks/NotebookApplicationAddin.cs: Don't open the template note directly after creating a notebook. * Tomboy/Notebooks/NotebookPreferenceTabAddin.cs: Use end-style in HButtonBox. * Tomboy/Makefile.am: Add tomboy-all-notes-22.png and tomboy-notebook-22.png as resources. * data/images/Makefile.am: Install tomboy-all-notes-22.png and tomboy-notebook-22.png. * data/images/tomboy-all-notes-22.png: Stubbed an icon (needs some artist help!). * data/images/tomboy-notebook-22.png: Ditto. 2007-12-20 Boyd Timothy * Tomboy/RecentChanges.cs: Use NotebooksWithAllNotesItem from NotebookManager to allow the "All Notebooks" item to be at the top of the notebooks TreeView. Make sure no tags are added to selected_tags when "All Notebooks" is selected. * Tomboy/Notebooks/NotebookManager.cs: Add in an AllNotesNotebook and filter it out in most cases. Provide this for the Search All Notes window so that it can automatically be part of the TreeView without extra fiddling. * Tomboy/Notebooks/Notebook.cs: Add 'virtual' keyword onto the properties so this class can be overridden by the AllNotesNotebook class. 2007-12-20 Boyd Timothy Removing the tagging UI again in favor of notebooking: * Tomboy/RecentChanges.cs: Removed the tagging TreeView and stubbed in a TreeView for displaying the Notebooks. Added handlers so that selecting a notebook filters the list of notes to the ones only in the selected notebook. TODO: still need to add in code to add a "All Notes" item that appears at the top of the list (use Ctrl+Click for now to deselect all notebooks). * Tomboy/NoteWindow.cs: Removing the NoteTagBar from NoteWindow. If we come up with a good way to implement tags, we can put it back in (again). * Tomboy/Notebooks/NotebookNewNoteMenuItem.cs: Make the Notebooks submenu show something like: New "Meetings" Note. 2007-12-20 Boyd Timothy * Tomboy/Notebooks/NotebookPreferenceTabAddin.cs: Fixed a typo in the remove confirmation dialog. "note" -> "not". 2007-12-20 Boyd Timothy * Tomboy/Notebooks/NotebookManager.cs: Added PromptCreateNewNotebook () here so creating a notebook can be used from multiple areas in Tomboy. * Tomboy/Notebooks/NotebookApplicationAddin.cs: Renamed the "New Notebook Note" menu item to be just "Notebooks". Added a "New Notebook..." menu item to the Notebooks menu list with a separator. * Tomboy/Notebooks/NotebookPreferenceTabAddin.cs: Moved the code to prompt the user for a new notebook name to NotebookManager.cs. 2007-12-20 Boyd Timothy * Tomboy/Notebooks/NotebookPrefrenceTabAddin.cs: Use Window.Present () when opening a notebook's template note so it gets forced to the front if it's already open. 2007-12-20 Boyd Timothy * Tomboy/Notebooks/NotebookManager.cs: Added the following new convenience methods: GetNotebookFromNote(), GetNotebookFromTag(), IsNotebookTag(). * Tomboy/Notebooks/NotebookMenuItem.cs: Adjust code so a "No notebook" menu item can be used which removes all notebook tags from a note. * Tomboy/Notebooks/NotebookNoteAddin.cs: Add a "No notebook" menu item at the top of the "Place in notebook" submenu. 2007-12-20 Boyd Timothy * Tomboy/Notebooks/NotebookNoteAddin.cs: Added a note for translators about the word, "Place". 2007-12-20 Boyd Timothy * Tomboy.mdp: Added Tomboy/PreferenceTabAddin.cs and Tomboy/Notebooks/NotebookPreferenceTabAddin.cs. * Tomboy/PreferencesDialog.cs: Add in tabs from all the PreferenceTabAddins. Removed the "Notebooks" tab since it now exists in its own file as an add-in. * Tomboy/AddinManager.cs: Added GetPreferenceTabAddins (). * Tomboy/Tomboy.addin.xml: Define a new PreferenceTabAddin extension point and add NotebookPreferenceTabAddin. * Tomboy/Notebooks/NotebookPreferenceTabAddin.cs: This is all the code that used to be in PreferencesDialog.cs. * Tomboy/Makefile.am: Added PreferencesTabAddin.cs. * Tomboy/PreferenceTabAddin.cs: A new extension point that allows us to add tabs in the preferences dialog using Mono.Addins. 2007-12-20 Chris Scobell * Tomboy/Notebooks/CreateNotebookDialog.cs: Move the pango markup into a separate string to make the translators jobs easier. 2007-12-20 Chris Scobell * Tomboy/Notebooks/CreateNotebookDialog.cs: Prevent the user from continuing when they have entered the name of an already exiting Notebook and display an error message if so. * Tomboy/Notebooks/NotebookManager.cs: Add a method "NotebookExists" to check if a notebook exists with a given name. 2007-12-19 Boyd Timothy * Tomboy/Notebooks/NotebookApplicationAddin.cs: Adding this file too. Forgot it earlier. It's responsible for adding a "New Notebook Note" menu item to the tray icon and also to the File menu in the Search All Notes window. 2007-12-19 Boyd Timothy * Tomboy/NoteWindow.cs: Check for system tag before displaying it in the tag bar. 2007-12-19 Boyd Timothy * Tomboy.mdp: Added all the new Tomboy/Notebooks/*.cs files. * Tomboy.mds: Guess monodevelop now wants the "./" removed when specifying Tomboy.mdp. * Tomboy/PreferencesDialog.cs: Added a Notebooks page to allow the user to define notebooks and open their template notes. * Tomboy/Utils.cs: Modified HIGMessageDialog to provide an ExtraWidget property so that we don't have to rewrite so much code when doing simple dialog boxes. * Tomboy/TagManager.cs: Fix the AllTags property to really return system tags like the comment says so we can access system tags. * Tomboy/Tray.cs: Reference the TrayNewNote UI action with the correct path so the accelerator works properly. * Tomboy/Tomboy.addin.xml: Add references for the built-in Notebook add-ins. * Tomboy/Notebooks/*.cs: The new built-in addin to support notebooks in Tomboy. * Tomboy/NoteManager.cs: Expose GetNoteTemplateContent () so that initial notebook templates can share the same text as is used during a NoteManager.Create (). * Tomboy/Makefile.am: Compile Tomboy/Notebooks/*.cs. * data/UIManagerLayout.csml: Added some around the new note menuitems so that the Notebook addin has more control of where its menu item gets placed. 2007-12-18 Boyd Timothy * Tomboy/PreferencesDialog.cs: Use a Gtk.LinkButton for the Open New Note Template button. 2007-12-18 Boyd Timothy * Tomboy/PreferencesDialog.cs: Added a section on the editing page for "New Note Template". * Tomboy/NoteManager.cs: Added GetOrCreateTemplateNote() to allow the new note template note to be created/accessed. Also modified CreateNewNote() to use the content of the new note template if it exists. 2007-12-18 Boyd Timothy * Tomboy/NoteWindow.cs: Restored the FindBar at the bottom of the note so the find functionality stays the same as previously stable-released versions. Also adjusted whitespace issues. 2007-12-18 Boyd Timothy * Tomboy/TagManager.cs: Added methods for getting and creating system tags directly. * Tomboy/RecentChanges.cs: Use IsProperty and IsSystem directly from Tag instead of parsing for "system:". * Tomboy/Tag.cs: Add static SYSTEM_TAG_PREFIX = "system:" so the string doesn't have to be hardcoded everywhere. Also adjusted the constructor to not have to parse for "system:" twice. * Tomboy/Addins/NoteOfTheDay/NoteOfTheDay.cs: Use TagManager.GetOrCreateSystemTag() instead of hardcoding "system:". 2007-12-17 Boyd Timothy * configure.in: Bump version to 0.9.3.