46188 Commits

Author SHA1 Message Date
John Scipione
01f35d103f Style fixes to TeamMenu 2013-04-14 13:24:32 -04:00
John Scipione
8f0935ac21 Whoops, hide if minimode hrev45495 2013-04-14 12:20:22 -04:00
Ingo Weinhold
e6216e372a Implement getting a BInstallationLocationInfo
* Rename PackageDaemonDefs.h to DaemonDefs.h.
* Replace the MESSAGE_GET_PACKAGES by the new
  B_MESSAGE_GET_INSTALLATION_LOCATION_INFO, which not only returns the
  packages, but also other information about the installation location.
* daemon: Volume: Implement a change count which is bumped whenever
  packages are activated/deactivated/added/removed. Cache the reply
  for a location info request, using the change count to check whether
  it is still up-to-date.
* Add private BDaemonClient for communication with the daemon.
* BRoster:
  - Add GetInstallationLocationInfo() using BDaemonClient.
  - Reimplement GetActivePackages(), using
    GetInstallationLocationInfo().
2013-04-14 17:06:26 +02:00
Ingo Weinhold
d7d9497e31 Add BInstallationLocationInfo 2013-04-14 17:06:26 +02:00
Ingo Weinhold
b2d96da589 BPackageInfoSet::Iterator: Fix NULL pointer dereference
Since the BPackageInfoSet's map is created lazily, it can be NULL when
an Iterator is constructed.
2013-04-14 17:06:25 +02:00
Ingo Weinhold
8a4ebe2c46 Make BPackageInfo archivable 2013-04-14 17:06:25 +02:00
Matt Madia
b2c9c184b5 Added GitHub as a possible source search location. Fixes #9623. hrev45494 2013-04-14 08:40:10 -04:00
John Scipione
a5172b4415 Fix bug where application menu items were wrong size
...in horizontal mode, also make CheckItemSizes more efficient
hrev45493
2013-04-14 02:49:37 -04:00
John Scipione
251ece3c74 Style fixes in BarView.h 2013-04-14 02:49:37 -04:00
John Scipione
777fffe8f7 Build the fBarMenu object in the BarView constructor
... then resize it and move it to the desired size and location on update.

* Create an fBarApp pointer and use it, this is easier than having to keep casting to TBarApp.
2013-04-14 02:49:37 -04:00
John Scipione
541decfaab Remove this code from FullState. Use default sMinimumWindowWidth 2013-04-14 02:49:36 -04:00
John Scipione
4ae3e5421d Fix a bug where the Deskbar menu was incorrectly sized in horizontal mode
Actually, the Deskbar menu was sized correctly but the separator item was not,
so, I've replaced the separator item with a new TSeparatorItem class that is derived
from BSeparatorItem but does it's own drawing. This neatly avoids the bug since
the TSeperatorItem doesn't need to be resized explicitly.

Also, there were some instances of AddSeperatorItem (with an e) that I renamed to
AddSeparatorItem (with an a). I also eliminated includes in the header which means
I added them in some cpp files where they were needed.
2013-04-14 02:49:36 -04:00
John Scipione
e83b2f0b9c Create a SetMaxItemWidth() method and set it in horizontal mode on update 2013-04-14 02:49:35 -04:00
John Scipione
03f7c11ece Rename SetWidthHeight to SetContentSize 2013-04-14 02:49:35 -04:00
John Scipione
bec7990562 Remove yet another unneeded include 2013-04-14 02:49:34 -04:00
John Scipione
5d6f247bb3 Reverse loop to eliminate checking count each iteration 2013-04-14 02:49:34 -04:00
John Scipione
9439677a9c Check if icon size is the same, if so, don't resize 2013-04-14 02:49:34 -04:00
John Scipione
ee78e4de9f Convert state variable from a uint32 to an int32 2013-04-14 02:49:32 -04:00
John Scipione
2de4b0463f Remove unneeded includes from BarView 2013-04-14 02:49:30 -04:00
John Scipione
b54536b20d Don't need to check if Lock() succeeded here, I don't anywhere else. 2013-04-14 02:49:30 -04:00
John Scipione
fe624b3937 Style fixes only
Most indentation and newlines with a few comment updates
2013-04-14 02:49:29 -04:00
John Scipione
10a5b6946c Remove unneeded includes 2013-04-14 02:49:29 -04:00
Alexander von Gluck IV
1f4fe8a48a MusicCollection: Fix build
* Include Debug.h for printf
hrev45492
2013-04-14 06:00:53 +00:00
Rene Gollent
f21f5c7cee Fix build. hrev45491 2013-04-13 17:46:48 -04:00
Rene Gollent
692d2db52a Notify user if the we fail to parse the type. hrev45490 2013-04-13 17:25:52 -04:00
Rene Gollent
8598af7ec9 Rework parsing a bit to handle some cases better.
Disable array parsing for now until creating array types works correctly.
2013-04-13 17:25:51 -04:00
Ingo Weinhold
bbb2dc237a Add BReferenceable to libbe_build
Unbreaks the build on non-Haiku build platforms
2013-04-13 14:39:35 +02:00
Stefano Ceccherini
501201761b In case the BMenu is inside a BMenuField, override the items width to
span over the BMenuField's width. Note that if the BMenu is already
wider, we don't shrink it, at least for now.
Fixes #5015.
hrev45489
2013-04-13 10:31:20 +02:00
Niels Sascha Reedijk
c57854947d Update translations from Pootle hrev45488 2013-04-13 06:27:53 +02:00
Rene Gollent
2dc96a685d Add support for specifying array delimiters.
- Extend CppLanguage::ParseTypeExpression() to also grok array
specifiers. This theoretically lets one now typecast to array types
as well as pointer types, though things don't entirely work as expected
yet.
hrev45487
2013-04-12 23:35:42 -04:00
Rene Gollent
d18be78af7 Implement DwarfType::CreateDerivedArrayType().
Will be used for array typecasting.
2013-04-12 23:35:41 -04:00
Rene Gollent
8db1d0fc06 Add function for creating derived array types. 2013-04-12 23:28:49 -04:00
Rene Gollent
b607f92d4e Improve tracing. 2013-04-12 23:28:48 -04:00
Rene Gollent
2298b5fc23 Resolve TODO.
- Added GetSystemInfo() to DebuggerInterface. Use that from
  DebugReportGenerator instead of calling get_system_info()/utsname()
  directly since otherwise we'd get the information for the wrong system
  in the eventual case when we have remote debugging support.
2013-04-12 23:28:48 -04:00
Rene Gollent
5a1b505fa1 Add model class for representing system information. 2013-04-12 23:28:47 -04:00
Rene Gollent
d04cbc3f3c Add missing const. 2013-04-12 23:28:46 -04:00
Ingo Weinhold
711a2a6eea BPackageInfoSet: Add copy constructor, assignment operator
* Implement copy-on-write support.
* Add copy constructor and assignment operator.
* Remove Init(). Initialize lazily instead. Since AddInfo() can fail
  and we check initialization anyway, there's no point in having an
  explicit Init(). Given that there was only one invocation of Init()
  in the package kit and its users, it was very likely missing in some
  places.
* Fix a few places where we ignored that the PackageMap actually
  contains lists of PackageInfo objects.
2013-04-13 02:08:43 +02:00
Ingo Weinhold
82ce8682f2 Add missing build header Referenceable.h 2013-04-13 02:04:00 +02:00
Stefano Ceccherini
3ef837fd40 If a submenu was opened, the parent menu tracking loop would continue calling
_HitTestItems() even if the user didn't move the mouse.
hrev45486
2013-04-12 23:07:47 +02:00
Ingo Weinhold
0d50fa87ec pkgman: Add beginnings of the "install" command
So far it only solves the dependencies and prints the result. No
problem handling, no actual installation.
2013-04-12 15:29:50 +02:00
Ingo Weinhold
0d8ed3f2a8 BSolver::Install(): Add optional unmatched specifier return param 2013-04-12 14:21:54 +02:00
Ingo Weinhold
71293f8b03 BSolverPackageSpecifier: Fix string constructor 2013-04-12 14:21:08 +02:00
Ingo Weinhold
334a5a566c BSolverRepository: Change priority from uint8 to int32
This allows us to specifies priorities below and above the user
definable range.
2013-04-12 13:42:27 +02:00
Ingo Weinhold
115eae7371 LibsolvSolver::Install(): Fix broken B_PACKAGE case 2013-04-12 12:27:32 +02:00
Rene Gollent
a53db18937 Fix #9663.
When clearing the filter state, don't disable filtering entirely if we
have a ref filter present. Otherwise, it won't be invoked again
until the next time a typeahead filter is engaged.
hrev45485
2013-04-12 00:05:27 -04:00
Ingo Weinhold
38e528bbc1 pkgman: C++-ify the command handling
There's now a Command class that must be derived and registered with
a CommandManager, all simplified by a REGISTER_COMMAND macro. That gets
rid of the print_command_usage_and_exit() function copy for every
command, moves the short usage texts to the command implementations,
and avoids any repetition of the command name. When implementing a new
command only a new source file needs to be created, nothing else needs
to be touched.
2013-04-12 01:48:53 +02:00
Ingo Weinhold
01758ed332 Rework SolverPackageSpecifier
* It no longer consists of a BPackageResolvableExpression and a
  repository. Instead it can now either refer to a package directly or
  consist of a search string.
* SolverPackageSpecifierList: Add AppendSpecifier() convenience
  versions.
* Adjust LibsolvSolver and pkgman accordingly.
2013-04-12 00:21:49 +02:00
Rene Gollent
04b78a402d Fix #9659.
BUnicodeChar::ToUTF8() had the same regression as ::FromUTF8() as far as
not advancing the input string pointer, which broke building
case-insensitive queries.
hrev45484
2013-04-11 18:03:56 -04:00
Ingo Weinhold
663e351cb4 BSolver/pkgman: Support for searching in provides
* BSolver/LibsolvSolver:
  * Add B_FIND_IN_NAME and make searching in the names explicit.
  * Add B_FIND_IN_PROVIDES to search the packages' provides list.
* pkgman: Also search in provides.
2013-04-11 23:36:12 +02:00
Siarzhuk Zharski
07d1d01afc Fix resize freeze on full-width chars in Terminal history
In the Terminal data model every full width character occupies two cells
in the data buffers. The second cell of such characters is not drawn and
used mainly to differentiate between full width and half width
characters.
Proposed fix zeroes the attributes of the second cell in the
HistoryBuffer::GetTerminalLineAt() that prevents the potential endless
loops in the BasicTerminalBuffer::_ResizeRedraw(). Those loops were
result of the random attributes in full width character's second cells.
hrev45483
2013-04-11 22:23:22 +02:00