summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-12-13Add a ?term-prefix matcher that matches against textual extensions of a ↵Daniel Burrows8-35/+270
string, add parser support for using it on trailing bare strings, and make incremental search in the cwidget UI use it. (Closes: #506651)
2008-12-13Delete get_terms() and find_obscured_terms().Daniel Burrows1-284/+0
Originally, I thought these would be useful in the analysis that's used to generate the Xapian search. However, I ended up not using them, and they don't have a good definition with the prefix-search stuff that's coming up, so I've just removed them for now.
2008-12-09Implement support for the global apt Undo stack.Daniel Burrows2-0/+13
2008-12-09Control the sensitivity of the Undo command based on the current tab's ↵Daniel Burrows2-0/+26
settings, and dispatch Undo commands to the current tab.
2008-12-09Add hooks in the tab manager and tab code to dispatch events related to the ↵Daniel Burrows2-0/+40
Undo command.
2008-12-09Add a signal on undo lists that announces when the undo list has changed.Daniel Burrows2-0/+16
This will be useful for updating the states of GUI buttons / menu items.
2008-12-08Update the contents of the Package menu depending on which tab is active.Daniel Burrows8-20/+116
The design I settled on relies on the TabsManager to signal when the currently active view's Package menu changes and on the main window to rebuild the Package menu. Something similar will be done with Undo when I have time to address the issues around that menu.
2008-12-08Move the PackagesAction enumeration to a newly created "constants.h" header.Daniel Burrows3-18/+56
The main impetus here is that tab.h will need PackagesAction, but gui.h needs tab.h.
2008-12-08Don't add the Dashboard tab until the main window is fully constructed.Daniel Burrows1-2/+3
I'm working on some code that will require having a constructed and accessible main window available when new tabs are added (to update the menu bar appropriately).
2008-12-06Create a Package menu with no actions when the program starts up.Daniel Burrows1-0/+2
2008-12-06Don't include any entries in the Package menu in the Glade file.Daniel Burrows1-113/+1
For some reason, GTK+ gets unhappy when we remove these in order to repopulate the menu.
2008-12-06Only display one menu entry for changing the automatic state.Daniel Burrows1-7/+12
2008-12-06Tag the entries in the package action menu for translation.Daniel Burrows1-11/+11
2008-12-06Add basic support for changing the automatic states of packages.Daniel Burrows5-7/+49
2008-12-06Use a proper ref_ptr to store the entity referenced by an InfoTabButtons ↵Daniel Burrows1-14/+12
object, and store it as a PkgEntity. The use of a bare reference was a holdover to decrease the number of lines changed by the last patch. But since we have a proper object and not just a sigc++ binding thunk, it's safe to use a ref_ptr to store the encapsulated entity. Also, storing a PkgEntity instead of an Entity eliminates a lot of unnecessary dyn_downcasting.
2008-12-06Create a class that collects the buttons displayed in the package ↵Daniel Burrows1-80/+66
description area. This makes memory management of the buttons cleaner; it will also make it possible to add new buttons (we were at the limit of how many arguments could be bound via libsigc++).
2008-12-06Don't say that clicking will toggle auto-ness (I think it's better to put ↵Daniel Burrows1-4/+4
that in the package action menu).
2008-12-06Add an entity-view column that displays whether a package is automatically ↵Daniel Burrows3-1/+59
installed.
2008-12-06Use the "yes" icon (a green sphere) for installed packages.Daniel Burrows1-1/+1
We were using what's technically a "hard disk" icon, but looks like an envelope to me; either way, I never was able to associate it with "this is installed and OK!" The green sphere does that better for me.
2008-12-06Apply user changes in two stages to more accurately reflect them.Daniel Burrows6-16/+41
Specifically, autoresolution of dependencies is deferred until after all the package states chosen by the user have been updated. This means that, for instance, packages that the user selects won't be marked as autoinstalled even if another selected package requires them, and the selected packages will be used to fulfill alternatives rather than installing other packages.
2008-12-04Add undos for the action groups generated when running actions on a bunch of ↵Daniel Burrows1-8/+14
entities at once. We can't test this because of the lack of an "undo" operation at present.
2008-12-03Add a simple way of checking whether a tab is active.Daniel Burrows2-0/+23
2008-12-03Move fill_package_menu to gui.h so it can be used by more than just the ↵Daniel Burrows4-94/+100
entity view.
2008-12-03Remove some debugging output I missed earlier.Daniel Burrows1-2/+0
2008-12-03Rebuild the Package menu whenever the set of selected packages changes.Daniel Burrows1-1/+4
2008-12-03Rename package_menu_handler to the more descriptive and generic ↵Daniel Burrows2-3/+7
build_package_menu.
2008-12-03Remove some debugging code.Daniel Burrows1-9/+0
2008-12-03Add a local variable to collect some verbose dereferences.Daniel Burrows1-2/+3
2008-12-03Replace get_menu() with fill_menu(), which always fills an existing menu.Daniel Burrows2-27/+28
get_menu() was essentially serving both purposes; fill_menu is the least common denominator of the two.
2008-12-01Clear the package menu before repopulating it.Obey Arthur Liu1-0/+1
2008-11-30Implemented a basic duplicate of the contextual popup menu in the menubar.Obey Arthur Liu5-5/+65
This is a reversal from my previous commit. I still have to figure out how to remove old entries from a menubar. Also there are cases where the focused package has changed but it is not detected correctly.
2008-11-25Fixed a typoJens Seidel1-1/+1
2008-11-25Fixed wrong ngettext usage. Closes: #505675Jens Seidel1-6/+6
2008-11-21Add a dropdown box to package lists that limits how many packages are shown.Daniel Burrows6-20/+267
This is partly a replacement for the top-level trees in the old aptitude; it seems like people find it handy to have a few simple searches that they can quickly combine with anything else. Eventually there should be a way for the user to interactively add, edit and remove entries.
2008-11-18Don't destroy the dpkg terminal tab when it's closed; just hide it.Daniel Burrows1-7/+2
This has the unfortunate side effect that showing the tab again just adds it to the visible list and doesn't make it the currently selected tab. One thing at a time, though...
2008-11-18Allow tags to be hidden, not destroyed, when the "close" button is clicked.Daniel Burrows2-5/+23
This took a lot longer than it should have, mostly due to my own stupidity in missing the GtkNotebook::remove_page() binding in TabsManager::TabsManager().
2008-11-16When dpkg is finished, remove the progress bar and tell the user.Daniel Burrows1-1/+12
Maybe the "done applying changes" message should be bolded and/or in a larger font? Or maybe centered so it doesn't show up in a different place from the messages in the progress bar?
2008-11-16Refactor the dpkg terminal creation code.Daniel Burrows3-235/+221
This straightens out some of the back-and-forth calls and replaces them with more straightforward creation/connection/execution semantics.
2008-11-16Rename the DpkgTerminal tab type to DpkgTerminalTabType.Daniel Burrows2-2/+2
I'm about to introduce a class named DpkgTerminal, and this avoids name clashes.
2008-11-16Initial implementation of support for the dpkg status pipe.Daniel Burrows5-40/+601
Some of the code is a little gross and will be refactored, but it all seems to work. Currently the conffile prompt is shown in a tab, but it might be better to use a dialog instead.
2008-11-16Clear out the message buffer after we finish parsing a message, so we don't ↵Daniel Burrows1-0/+1
corrupt later messages with the first one.
2008-11-16Fix some parsing bugs that would run off the end of input buffers and crash ↵Daniel Burrows1-8/+8
the program.
2008-11-16Finish fleshing out the dpkg status parsing interface, and fill in the ↵Daniel Burrows2-5/+285
implementation. The implementation is mostly based on reverse-engineering the message syntax from the synaptic source code, since I can't find up-to-date documentation on it. The one hole in the parser is that it will do the wrong thing if a conffile filename contains a single quote, but so will synaptic and I don't know how dpkg escapes the inner quote (backslashes maybe?).
2008-11-16Merge with Arthur's tree.Daniel Burrows3-0/+191
2008-11-15Add prototypes and structures for a parser that can attach to the dpkg ↵Daniel Burrows3-0/+191
status pipe.
2008-11-12Link unimplemented items from the File menu to the not-implemented message ↵Obey Arthur Liu1-0/+28
function.
2008-11-12Implement and export a "Not implemented, yet" popup message function.Obey Arthur Liu2-0/+13
2008-11-12Add the --gui and --no-gui options to the aptitude -h help message.Obey Arthur Liu1-0/+2
2008-11-11Add aptitude.glade to the list of things included in the source archive.Daniel Burrows1-0/+2
2008-11-11Add refcounted_wrapper.h to the list of sources.Daniel Burrows1-0/+1