summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-08-26Fix the behavior of OFF_LEVEL in the logging code.Daniel Burrows1-4/+3
Setting a category to OFF was supposed to mean that nothing in that category was logged. Instead, it logs everything, and logging a message at OFF disables it (which is ... sort of useless). Fixed the behavior, and the tests, to behave correctly. Setting a log category's level to OFF suppresses all its messages now.
2010-08-26Improve the log messages from the GTK+ changelog code.Daniel Burrows1-1/+49
2010-08-25Fix the TRACE log level.Daniel Burrows1-2/+5
The code to parse log levels was relying on the fact that log_level used to be a smart pointer type, so testing it as a Boolean would return true if and only if it had been assigned. Unfortunately, now it's an enum in which TRACE is 0. So the code was always suffering from the belief that the log level was undefined. Switched the parse code to use boost::optional to distinguish between 0 and "not present".
2010-08-06Write a routine to subtract timevals.Daniel Burrows2-0/+23
2010-07-26Fix a typoed slot name in the packages_tab code.Daniel Burrows1-1/+1
Shouldn't this have been a compile-time error?
2010-07-26Spelling & grammar fixes to identifiers & doccomments.Daniel Burrows2-4/+5
2010-07-26Merge commit '116146da81026b6acb748a12e37d31edea74f1c8'Daniel Burrows2-2/+125
2010-07-26Create a log category for the top-level Qt startup.Daniel Burrows3-1/+36
This is also used as a slightly hacky way to make sure that the apt errors go *somewhere*; eventually they should appear in the UI somewhere.
2010-07-26Fix apt initialization by properly hooking up consume_errors().Daniel Burrows1-0/+15
2010-07-26Merge commit '833d98eea7d687975c000b4a60f6bb2594ac0513'Daniel Burrows2-0/+13
2010-07-26Fix VPATH builds of moc output by giving paths relative to $(srcdir).Daniel Burrows1-1/+1
2010-07-26Fix an incorrect build order in src/generic/.Daniel Burrows1-1/+11
"util" has to be built before "apt"; fixed this and added a note about it. Also, split the subdirectories onto separate lines in order to be nicer to the VCS.
2010-07-22Implementation of Packages Tab lookPiotr Galiszewski2-2/+125
2010-07-22initalize apt on program startingPiotr Galiszewski2-0/+13
2010-07-21Tweak (hopefully improve) the package pool doccomments.Daniel Burrows1-10/+33
2010-07-21Replace an apparently accidental (but harmless) use of operator, with a ↵Daniel Burrows1-2/+2
semicolon.
2010-07-21Standardize indentation.Daniel Burrows1-10/+10
2010-07-21Derive package_pool_impl from sigc::trackable to avoid any surprises.Daniel Burrows1-1/+2
This is mostly irrelevant since package_pool_impl should never be deleted.
2010-07-21Merge remote branch 'aptitude-qt/001.1-package'Daniel Burrows3-0/+263
2010-07-21Merge commit 'aptitude-qt/001.1-package^'Daniel Burrows5-1/+705
2010-07-21Indentation fix.Daniel Burrows1-8/+8
2010-07-21Introduce package_pool classPiotr Galiszewski3-0/+263
2010-07-21Introduce package and version classesPiotr Galiszewski5-1/+705
2010-07-20Add tabs_manager class and fix tab_deletion_request signal logicPiotr Galiszewski7-68/+490
2010-07-19Fix indentation and spacing.Daniel Burrows2-20/+19
2010-07-19Improve a TODO.Daniel Burrows1-2/+2
2010-07-19Improve language in a bunch of doccomments.Daniel Burrows3-60/+68
2010-07-19Merge commit 'b7c0e95463426381865ac9902d73260e4ad284ff'Daniel Burrows8-6/+744
2010-07-15Indentation fix.Daniel Burrows1-1/+1
2010-07-15Add tab_widget, main_window and stub implemenation of status_widgetPiotr Galiszewski8-6/+744
2010-07-15Add tab class and stubs of other main program's tabsPiotr Galiszewski13-1/+599
2010-07-14add new target *.mocc used for files containing signals and slots ↵Piotr Galiszewski1-0/+4
definitions in cc files
2010-07-13Add build rules for aptitude-QtPiotr Galiszewski6-10/+167
- add tests for Qt libraries to configure.ac - create "enable-qt" option for activating building of Qt frontend - add required Makefile.am - create a stab of frontend initialization and all required code to generic classes - rename gui variable in main.cc to use_gtk_gui and new_gui variable accordingly
2010-07-10Make display_and_advance work even when the output isn't a terminal.Daniel Burrows2-9/+15
Also documented this new behavior and wrote a unit test for it.
2010-07-10Force the current progress to be updated after a new file starts to download.Daniel Burrows1-0/+2
Without this, the progress indicator would sometimes disappear for a tick.
2010-07-10Make download_status_display part of the command-line code.Daniel Burrows12-135/+163
It's really just a hack to break the command-line implementation up in a way that's more amenable to unit-testing; it doesn't belong in the generic view interface.
2010-07-10Use the new acquire_download_progress object to display command-line ↵Daniel Burrows11-429/+87
downloads and delete acqprogress.
2010-07-10Write a controller for the download progress view based on Acquire.Daniel Burrows4-2/+384
This code does the appropriate digging to extract structured download information from Acquire and pass it to the view.
2010-07-10Add a routine on download_progress that's invoked when a file is skipped ↵Daniel Burrows2-0/+46
because it's already downloaded.
2010-07-10Add a complete() routine to the download progress view that's invoked when ↵Daniel Burrows2-1/+27
the whole download process is complete. Necessary to fully expose the events generated by download_signal_log.
2010-07-10Flesh out the implementation of the download progress display and its tests.Daniel_Burrows@alumni.brown.edu7-51/+638
2010-07-10Split the teletype mock's constructors into default/nice/strict variants too.Daniel Burrows2-8/+49
2010-07-10Make transient_message a Mock and use its strict variant.Daniel Burrows1-1/+9
2010-07-10Make combining_terminal_output implement the same interface as Mock.Daniel Burrows2-5/+39
I can't use Mock directly because this class already inherits from Mock, so there would be confusion about which static members to expose (well, I could resolve it, but that's about as much trouble as implementing the interface directly).
2010-07-10Use Mock to implement terminal_with_combined_output.Daniel Burrows2-8/+3
2010-07-10Make the terminal_metrics mock a Mock instance and use its strict variant ↵Daniel Burrows2-8/+4
everywhere.
2010-07-10Make the terminal_locale mock a Mock instance and use its strict variant in ↵Daniel Burrows2-8/+4
the tests.
2010-07-10Make the terminal input class a Mock instance.Daniel Burrows2-8/+4
2010-07-10Make the terminal_output mock a Mock instance.Daniel Burrows2-8/+6
2010-07-10Add a utility class that makes it easy to use strict/nice mocks.Daniel Burrows3-2/+95
The idea is to formalize the friending/named constructor patterns used in the existing mocks, and extend them to support creating nice and strict mocks in addition to the default ones. I have deliberately changed the default mock constructor from create() to create_default(); I want it to be explicit which variant is being used, and I also want existing code to fail so I can update it. Strict mocks should really be the default in most cases.