#
9931e8ee |
|
09-Feb-2024 |
nep <nep-git@packageloss.eu> |
rgb_color: Add new APIs: Contrast(), IsLight(), IsDark() - Remove perceptual_brightness - Change implementation of rgb_color::Brightness() to the previous BPrivate::perceptual_brightness() - Introduce convenience methods Contrast(rgb_color), IsLight() and IsDark() Change-Id: Id677d4a32ce43d73bffecf9baf8cffaafb01a16d Reviewed-on: https://review.haiku-os.org/c/haiku/+/7399 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
8446d3b9 |
|
13-Dec-2023 |
John Scipione <jscipione@gmail.com> |
Tracker: Miscellaneous cleanup Move DraggableContainerIcon out of ContainerWindow.cpp into new. Move CompareLabels to Utilities.cpp Rename fContainerWindowFlags to fOpenFlags. These are the flags set by OpenContainerWindow to save and restore state and should not be confused with the windowFlags that are passed to BWindow. There are two sets of flags, which I'm calling openFlags and windowFlags. Rename fUseLayouts to fUsesLayout and useLayouts to useLayout. Put all the constructor created flags at the top. "window" variable name is ok, we don't need to say "containerWindow". Rename Addons to AddOns everywhere with a capital O. Rename BuildAddOnMenu() to BuildAddOnsMenu() with an s. Rename AttributeMenu...() methods to AttributesMenu...() with an s. Rename SetUp...() methods to Setup...() with a lowercase u. Replace a few instances of fPoseView with PoseView() inline in BContainerWindow and BDeskWindow. A few more minor fixes in BDeskWindow. Replace BPoint(0, 0) with B_ORIGIN in Pose.h Change-Id: If30803753b63b19e35f14c0f0c4e08111d0d0980 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7240 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
cf83394d |
|
22-Nov-2023 |
John Scipione <jscipione@gmail.com> |
Tracker: Put duplicate checks into convenience methods ... and a few minor feature updates. Create a CanEditName method on PoseView because we were using subtly different checks in different places to see if allowed to edit the name or not. Tint background color of the Edit name text box on read-only to indicate that the file name cannot be edited (only copied). Create ReadOnlyTint() method in Utilities and use it here and in PoseView to set the background color. Eliminate BackTint() method from PoseView which served a similar purpose. Add CanMoveToTrashOrDuplicate() convenience method. Move To Trash, Delete and Duplicate options use same check. Context menu of selection in file panel gets Duplicate option, window context menu never did so don't try to enable it there. Change-Id: I7a82d00ea10f22a7885c2e898a809e1abe9a6b30 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7122 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
2b6ccde0 |
|
25-Apr-2023 |
John Scipione <jscipione@gmail.com> |
Tracker: Disable edit menu items on ro volumes ... such as virtual directories or read-only media. Also applies to open/save panels. Menu items disabled on read-only volumes: * New > * Duplicate * Move to Trash * Move To > * Cut * Paste Other reasons a menu item is disabled: * Duplicate, Move To Trash, Cut, Copy, Move to >, Copy to >, Create link > and Identify require a selection. * Paste requires something in your clipboard. * Edit name requires a single item is selected. Edit name is permitted on a read-only volume so that you may copy the name. However the name is not editable, you may only select and copy. Pop system folder warning dialog on Edit name commit instead, this way you won't see the dialog if you just want to copy the name. Move "Create link here" option last in the right- click drag menu. Disable "Move here" if source or dest is read-only, rest if dest is read-only. Ignore Paste to virtual directory, (even more) but permit Edit name. Allow drag-and-drop to virtual directory but alert and disable all right-click drag menu items like other read-only directories. Tint window backgrounds on all read-only windows darker, not just on virtual and query folders. Automatically switch the background color as you navigate in and out of read-only folders. Fix highlight color on column resize when background color is not white. Fix "reverse video" effect so that the highlight color is the inverse of the background color. On Desktop however, highlight color is always black or white. Do not alter focus in save dialogs after initial focus on the file name because focus on the pose view is required for cut/copy/paste to work. Make Edit Name work in file open/save dialogs and make Cut/Copy/Paste work while editing file name. Make Select all work in Edit name. Duplicate code cleanup: NameAttributeText::CommitEditedTextFlavor() and HeaderView::FinishEditingTitle() call common EditModelName() function in FSUtils. RealNameAttributeText inherits from NameAttributeText and calls its inherited CommitEditedTextFlavor() method. The alert text is defined in just one place in FSUtils ShouldEditRefName() instead of three. Consequently file name changed in the info window can now be undone. Change-Id: I3a78960057b8fb42d1f71af2ec3c808754c9b314 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6357 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
3efde1bf |
|
25-Aug-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
Tracker: Use BControlLook::ComposeIconSize. One computation was functionally equivalent to the new method, other places were not scaling icons at all. Fixes #13177.
|
#
5192c3bf |
|
25-Apr-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
Tracker: Move thumbnail-manipulation code to its own file. Preparatory work for refactoring thumbnail generation to not use so many resources (threads, ports, etc.)
|
#
c6b6adc4 |
|
25-Apr-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
Tracker: Replace custom LooperAutoLocker with AutoLocker<BLooper>.
|
#
cd053a38 |
|
20-Jan-2022 |
John Scipione <jscipione@gmail.com> |
Tracker: Fix image thumbnails hrev55756 fixed regressions but also broke thumbnails. Tell Model to look for an thumbnail icon in the node in FinishSettingUpType() if eligible. Create ShouldGenerateThumbnail() convinience method in Utilities.h Change-Id: I454156374ec539f5bb09a61f24b16ebb6a7a95a1 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4887 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
7f819534 |
|
05-Aug-2021 |
John Scipione <jscipione@gmail.com> |
Tracker: Add thumbnail support Define thumbnail attributes in Attributes.h: Media:Thumbnail to store the thumbnail, Media:Thumbnail:CreationTime to see if thumbs need to be regenerated. Store 128x128 thumbnail in attribute, for icon sizes smaller than 128x128 down-scale the 128x128 thumbnail. Use B_FILTER_BITMAP_BILINEAR to down-scale the image using the bilinear scaling algorithm which creates nicer looking thumbnails than the default scaling algorithm. Store thumbnails as WebP images which compress smaller than PNGs and fit in the inode better at 128x128. Check the file's modification time in GetFileIconFromAttr() and compare it to the thumbnail creation time. If the file has not been modified since the last time we generated thumbnails return the thumbnail from the attribute, otherwise fetch a new thumbnail with GetThumbnailIcon(). Add "Generate image thumbnails" Tracker setting. Default is turned off for now. To generate image thumbnails you must first turn this setting on in Tracker Windows preferences. Spawn a get_thumbnail() thread to generate thumbnails and retrieve them later on from the window thread to fill out into the icon. This should improve responsiveness of generating thumbnails from a folder with a lot of images. The generator thread will write the thumbnail data to an attribute if on writable BFS volume. If not on writable BFS volume, the generator thread will send the data back to the original thread through a port by calling write_port(). When the thread is finished creating the thumbnail it sends a message back to the Tracker application thread to update the pose which instructs the window thread to look for an thumbnail. It either finds a thumbnail in an attribute, or picks up the thumbnail data that has been sent through write_port() using read_port(). This works on both read-write and read-only BFS volumes but it still depends on the presence of a BEOS:TYPE parameter to have been written to the volume before it became read-only. Thumbnail generation does not work on other read-only volumes for example an ISO-9660 CD, but it does work on read-only BFS volumes for example the BeOS R5 CD. Move BPrivate::CheckNodeIconHintPrivate() from BNodeInfo to Tracker Model CheckNodeIconHint(). Create Model::CheckAppIconHint() and look for a vector icon or mini and large icon in that method. Check that the base type is directory, volume, trash, desktop, or if executable call CheckAppIconHint(). Add 1 to temp_name to fix the following warning: src/kits/tracker/FSUtils.cpp:2437:12: note: 'snprintf' output 3 or more bytes (assuming 267) into a destination of size 266 Rename temp_name to tempName following our style guidelines. Use strlcpy() and strlcat() instead of strcpy() to safely copy the string. This fixes thumbnail generation on 64-bit Haiku. Change-Id: I7f927a5a1f8cf65e4b1aa1e0eb55bbfae87fd969 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3163 Reviewed-by: John Scipione <jscipione@gmail.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
a55e9f52 |
|
05-Nov-2018 |
Axel Dörfler <axeld@pinc-software.de> |
Tracker: NavMenu icons scale with font size * Moved icon size computation into separate utility function.
|
#
9f6dbb5f |
|
05-Jun-2017 |
Augustin Cavalier <waddlesplash@gmail.com> |
Fix the build following the 64-bit time_t switch.
|
#
caf0a129 |
|
11-Apr-2016 |
John Scipione <jscipione@gmail.com> |
Tracker: Draw IconMenuItem in closed state Add an Icon() and SetIcon() method. Override SetMarked() to set the parent menu field icon. Don't move the label right if icon is NULL. Make the first menu item an IconMenuItem with a NULL icon. This allows the icon to draw in the closed menu state. icon gets updated even if you select an item in a submenu
|
#
c5b4dc40 |
|
09-Dec-2015 |
looncraz <looncraz@looncraz.net> |
Tracker: Use Set*UIColor, improved font awareness. InfoWindow now uses the font size to determine the window size and placement of elements. Also uses system colors, including link colors. Permissions view not font sensitive yet. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com> Patch 0039 from looncraz, unmodified.
|
#
2f60dea5 |
|
29-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Throw exception on assert failure ... in situations where a NULL pointer dereference was vital to the functioning of the method we use a stronger assert that throws an exception on failure. This is accomplished by a new method in Utilities.cpp, ThrowOnAssert(). None of these conditions should ever be true, if they are it means that the code is written improperly and would have resulted in a NULL dereference and undefined behavior (most likely a crash) before. Most instances of ThrowOnAssert() either replace an ASSERT followed by a dereference or an early return that covered the error. Also remove _ThrowOnErrorWithMessage() which wasn't being used.
|
#
54e2dd72 |
|
28-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: style fixes No functional changes intended.
|
#
1e228168 |
|
18-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Initialize view and low colors CID610137 and CID610138
|
#
190fda60 |
|
18-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Check that LockLooper() succeeds CID602486
|
#
565cd805 |
|
18-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: whitespace fix, spaces to tab
|
#
bc1739a5 |
|
17-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: A few more style fixes to Utilities * icon_size size => icon_size which (I've settled on which) * fOrigBitmap => fOriginalBitmap * resizeMask/resizeFlags => resizingMode (header and cpp match) * error => result * explicit NULL checks for pointers * multi-line conditional ifs get {}'s * rename result to more descriptive name when not status_t
|
#
ae7d51b2 |
|
02-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Style fixes to IconCache and Utilities
|
#
a4c3bbd3 |
|
20-Jun-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: style fixes to Utilities
|
#
9437e677 |
|
09-Jun-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Style fixes
|
#
898f1082 |
|
01-Feb-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Add SecondaryMouseButtonDown method Create this utility method in Utilities.cpp and use it elsewhere tell if the secondary mouse button is pressed or if it is emulated with a control-click.
|
#
6c6fcaf9 |
|
20-Dec-2012 |
Alex Smith <alex@alex-smith.me.uk> |
Some build fixes for DEBUG=1.
|
#
ea001e58 |
|
28-Jul-2012 |
John Scipione <jscipione@gmail.com> |
Round 2 of style changes to Tracker * focused on 80-char limit fixes. * also some whitespace and case statement indentation fixes
|
#
b05aa8b5 |
|
27-Jul-2012 |
John Scipione <jscipione@gmail.com> |
Style changes in Tracker, no functional change. Manual whitespace cleanup Change instances of const char * to const char* Convert /* */ C style comments to // C++ style comments
|
#
41836758 |
|
02-Mar-2012 |
Rene Gollent <anevilyak@gmail.com> |
Move black/white color constant definitions to header. Previously, there were two instances of the actual variables, named in ControlLook.cpp and Utilities.cpp. This caused clashes on gcc4 builds, leading to various crashes during initialization. Instead we now declare them as static constants in the header itself as is done for various other interface color constants elsewhere. Fixes ticket #8358.
|
#
e98a8505 |
|
29-Sep-2011 |
Axel Dörfler <axeld@pinc-software.de> |
* Minor cleanup. * Removed non-Haiku compatibility code - it's just no longer needed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42780 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6f477364 |
|
21-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Make BLocaleRoster::GetLocalizedFileName() take a const entry_ref& rather than a non-const entry_ref&. Remove private GetLocalizedFileName() from libtracker and make Tracker and Deskbar use the one in BLocaleRoster. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41075 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ed7ee7a4 |
|
11-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Localization support for filesystem entries in Tracker and Deskbar (leaf menu). (It appears to work, but is likely incomplete and quite possibly incorrect.) Fix issue with RosterData::Refresh() resulting in a B_LOCALE_CHANGED broadcast, and Deskbar looping. Add a global boolean gLocalizedNamePreferred to avoid calling BLocaleRoster::Default()->IsFilesystemTranslationPreferred() too often from Model instances. Following Tracker code style in libtracker, so as to not mix in too much clean-up. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40922 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4d15b486 |
|
04-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Reordering for readability. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40813 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fca835f1 |
|
04-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Style fixes. Thanks, Axel! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40809 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ec3ead23 |
|
04-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Style fixes. Doxygen comment. Use standard strchr function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40803 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f5c0a997 |
|
03-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Support for showing localized app entries in Deskbar. Just the app entries so far, and not yet the items in the leaf menu. Please review. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40796 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
886c6276 |
|
12-Sep-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixed debug build (format string/argument mismatches). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38619 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cee04e80 |
|
08-Feb-2010 |
Artur Wyszynski <aljen-mlists@o2.pl> |
Fixed various errors/warnings reported by cppcheck: * memory leaks * resource leaks * added const's to getters * removed a few reundant conditions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35433 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b3e4ce54 |
|
31-Jan-2010 |
Michael Lotz <mmlr@mlotz.ch> |
Use the multibyte aware string functions for typeahead search and filtering so that special characters can be used as well (umlauts for example). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35375 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a63c6183 |
|
04-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* The InfoWindow's name text view is now using DisallowFilenameKeys() as well. * DisallowFilenameKeys() no longer forbids the ':', as there is no reason to do so. * Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33894 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aa22e8db |
|
18-Oct-2008 |
Michael Lotz <mmlr@mlotz.ch> |
Changed the score calculation for type ahead in the Tracker. Previously if there was at least one character matching at the start of any file it would have gotten a score >= 1. This rendered the substring matching completely useless as soon as this happened, because it would always get a score < 1 depending on the position of the occurance. Now substring matching is the first (and without word mode, the only) score to get. Since the score depends on the position of the match, this doesn't change anything for exact matches at the beginning, but it does allow for substring matches even if there is a file starting with the same letter as the search string. Also use strcasestr() instead of strstr() to make the search case insensitive. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28233 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
49ad25b3 |
|
16-Oct-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* The type ahead mechanism did not work correctly in list view mode: instead of taking the contents of the columns, it would always use the file name instead. * That uncovered another bug, though: WidgetText::Text() tried to cast everything to StringAttributeText, but GenericAttributeText is actually used for most columns. * Therefore, GenericAttributeText is now a subclass from StringAttributeText. * Extended the type ahead to take other columns into account, and made it also find strings in the middle (like a filter) as a second choice. * Whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28180 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6e927a5f |
|
30-Oct-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
malloc.h ain't no standard header. Use stdlib.h instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22776 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f6e4cbb9 |
|
15-Oct-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote BeBuild.h which had "a few" consequences (got rid of all those class definitions). * Minor cleanup here and there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22577 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eeb608e1 |
|
26-Jun-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* StringFromStream() did not work correctly for empty strings (messed up the stream position). * StringFromStream() called BString::LockBuffer() with "length", but touched "length + 1" bytes. * Prepared for the new "display as" FileTypes feature. * The "DefaultQueryTemplate" folder now adds the MIME type of the folder to the attribute menu for simplified editing (before, you had to move a file with a matching file type into that folder to be able to add the attributes you likely wanted to see). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21509 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bb36f69f |
|
20-Jun-2007 |
Jérôme Duval <korli@users.berlios.de> |
gPeriodicUpdatePoses is already declared extern in the header git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21474 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
687e327b |
|
19-Jun-2007 |
Michael Lotz <mmlr@mlotz.ch> |
Reworked the handling of periodically updated poses (currently only ones with a volume space bar): * Addad global list where poses that need periodic updates can be registered with a callback * Use this mechanism for poses with a volume space bar * Create only one BVolume when the BPose is created for a volume, instead of every time the free space is calculated * On Pulse() the global list is used to update all of the registered periodic update poses * As the poses know their volume, it is no longer necessary to use a BVolumeRoster to loop through each volume on each Pulse() * Removed the now superfluous SendNotices() mechanism * Removed corresponding watching / handling of these notices in BPoseView The BPoseView did a linear search for each volume pose on each Pulse() before. What's more it did this once for each mounted volume as it did get one individual notice for each of them. To get these volumes a BVolumeRoster was used to loop through the volumes, but then the BPose did still create a new BVolume to actually calculate the free space! I'm surprised that it did not suck away more performance with this method... Anyway, this should bring down BVolume construction and update overhead down to a minimum and hopefully fix ticket #1247. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21462 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0d9c65d5 |
|
03-Jun-2007 |
Stephan Aßmus <superstippi@gmx.de> |
* applied patch by Jonas Sundström, the draggable icon in the Find window will be drawn with alpha channel git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21302 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eaac0739 |
|
19-Jan-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Fixed build under R5/Dano that was broken since Stippi added vector icon support. * Separated Haiku's icon stuff a bit better, so that Tracker can still be built without having Haiku headers around. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19871 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bae87c91 |
|
06-Nov-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Added a new type for the vector icon format 'VICN' or B_VECTOR_ICON_TYPE. It's hopefully now used everywhere instead of B_RAW_TYPE where appropriate. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19219 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52caf663 |
|
18-Oct-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Fixed compilation under R5 and Dano. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19077 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7fb6186f |
|
29-Aug-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* integration of vector icons with the registrar and the mime data base * additional versions of SetIcon[ForType] and GetIcon[ForType] in BMimeType and BAppFileInfo, which handle flat vector icon data * changes in Tracker to support scalable icons (currently broken for non-vector icons and needs cleanup) and drawing icons correctly with alpha channel (large parts of this work done by Michael Lotz) If someone feels like looking over the changes, that would be much appreciated! :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18699 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9ecf9d1c |
|
26-Aug-2006 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Merge from layout management branch. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
29c171b1 |
|
27-Jun-2006 |
Stephan Aßmus <superstippi@gmx.de> |
reverted my "build fix" since it actually breaks the build on R5 ... the problem is local to my machine... sorry about that! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17937 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
75acb8cb |
|
27-Jun-2006 |
Stephan Aßmus <superstippi@gmx.de> |
synced with rev 1.12 from OT rep, fixed build on R5 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17931 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cd94fdda |
|
28-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Tracker wrote icons with the wrong type at several places. * Also replaced all B_COLOR_8_BIT with the B_CMAP8 constant. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16909 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a615ec8f |
|
30-Dec-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Imported OpenTracker-current. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15764 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6d01b66d |
|
13-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
GCC 4 fixes by Ingo Weinhold. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14893 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
02be5353 |
|
22-May-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Added libtracker.so to the repository and the build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12772 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2f60dea53ae5e08baeae2c4e41c89a8d2e74aaa6 |
|
29-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Throw exception on assert failure ... in situations where a NULL pointer dereference was vital to the functioning of the method we use a stronger assert that throws an exception on failure. This is accomplished by a new method in Utilities.cpp, ThrowOnAssert(). None of these conditions should ever be true, if they are it means that the code is written improperly and would have resulted in a NULL dereference and undefined behavior (most likely a crash) before. Most instances of ThrowOnAssert() either replace an ASSERT followed by a dereference or an early return that covered the error. Also remove _ThrowOnErrorWithMessage() which wasn't being used.
|
#
54e2dd7272db551cab02cc678bd45bc4131dd867 |
|
28-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: style fixes No functional changes intended.
|
#
1e228168eccc69050fbca173b851e40622adf70c |
|
18-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Initialize view and low colors CID610137 and CID610138
|
#
190fda60a64e907e0784948a02d3737d714474fb |
|
18-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Check that LockLooper() succeeds CID602486
|
#
565cd805b445db9d6a926ddd33249d4ac8afc736 |
|
18-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: whitespace fix, spaces to tab
|
#
bc1739a5c56a2e8ab105ef2998cc4768a198a07f |
|
17-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: A few more style fixes to Utilities * icon_size size => icon_size which (I've settled on which) * fOrigBitmap => fOriginalBitmap * resizeMask/resizeFlags => resizingMode (header and cpp match) * error => result * explicit NULL checks for pointers * multi-line conditional ifs get {}'s * rename result to more descriptive name when not status_t
|
#
ae7d51b28a8826a1f8330f28dead633d98cc42bd |
|
02-Jul-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Style fixes to IconCache and Utilities
|
#
a4c3bbd3f53b119820305adceeb69f6a061c9be9 |
|
20-Jun-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: style fixes to Utilities
|
#
9437e677ba3d5f813929944ae2b09fc37feb8d2d |
|
09-Jun-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Style fixes
|
#
898f10825072bb17badf64bae8d7334e63a6a683 |
|
01-Feb-2014 |
John Scipione <jscipione@gmail.com> |
Tracker: Add SecondaryMouseButtonDown method Create this utility method in Utilities.cpp and use it elsewhere tell if the secondary mouse button is pressed or if it is emulated with a control-click.
|
#
6c6fcaf95bd0900cec88e13d58795f5241850037 |
|
20-Dec-2012 |
Alex Smith <alex@alex-smith.me.uk> |
Some build fixes for DEBUG=1.
|
#
ea001e585a588e40404945a1201821da893d2e09 |
|
28-Jul-2012 |
John Scipione <jscipione@gmail.com> |
Round 2 of style changes to Tracker * focused on 80-char limit fixes. * also some whitespace and case statement indentation fixes
|
#
b05aa8b5b16e5b4f420a35c37805c6387df98737 |
|
27-Jul-2012 |
John Scipione <jscipione@gmail.com> |
Style changes in Tracker, no functional change. Manual whitespace cleanup Change instances of const char * to const char* Convert /* */ C style comments to // C++ style comments
|
#
418367589556790e6fb2b2a9cadf62b1408a87c9 |
|
02-Mar-2012 |
Rene Gollent <anevilyak@gmail.com> |
Move black/white color constant definitions to header. Previously, there were two instances of the actual variables, named in ControlLook.cpp and Utilities.cpp. This caused clashes on gcc4 builds, leading to various crashes during initialization. Instead we now declare them as static constants in the header itself as is done for various other interface color constants elsewhere. Fixes ticket #8358.
|
#
e98a8505044adaeaddade6987a5185f66c7ed7ae |
|
29-Sep-2011 |
Axel Dörfler <axeld@pinc-software.de> |
* Minor cleanup. * Removed non-Haiku compatibility code - it's just no longer needed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42780 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6f477364cc55e3d6d26880c79cada179d9f93f76 |
|
21-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Make BLocaleRoster::GetLocalizedFileName() take a const entry_ref& rather than a non-const entry_ref&. Remove private GetLocalizedFileName() from libtracker and make Tracker and Deskbar use the one in BLocaleRoster. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41075 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ed7ee7a43256baac60e2345f42fc28897cf5585e |
|
11-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Localization support for filesystem entries in Tracker and Deskbar (leaf menu). (It appears to work, but is likely incomplete and quite possibly incorrect.) Fix issue with RosterData::Refresh() resulting in a B_LOCALE_CHANGED broadcast, and Deskbar looping. Add a global boolean gLocalizedNamePreferred to avoid calling BLocaleRoster::Default()->IsFilesystemTranslationPreferred() too often from Model instances. Following Tracker code style in libtracker, so as to not mix in too much clean-up. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40922 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4d15b486478458509961cc3633e933b3d3712f5b |
|
04-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Reordering for readability. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40813 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fca835f13437da500ed9c69d32371a97a6470b2d |
|
04-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Style fixes. Thanks, Axel! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40809 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ec3ead230b6073fb08d331c63de00a8e8dd2fb20 |
|
04-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Style fixes. Doxygen comment. Use standard strchr function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40803 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f5c0a9970a3acbabb2289a20fdedcc9d1c7b6b7a |
|
03-Mar-2011 |
Jonas Sundström <jonas@kirilla.com> |
Support for showing localized app entries in Deskbar. Just the app entries so far, and not yet the items in the leaf menu. Please review. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40796 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
886c627650b0f2522e8a64dd96371cc45a867330 |
|
12-Sep-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixed debug build (format string/argument mismatches). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38619 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cee04e8074ec61fd8c6dac3539c5b821c3618888 |
|
08-Feb-2010 |
Artur Wyszynski <aljen-mlists@o2.pl> |
Fixed various errors/warnings reported by cppcheck: * memory leaks * resource leaks * added const's to getters * removed a few reundant conditions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35433 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b3e4ce5422563f8d157a779811c19a452ba102c4 |
|
31-Jan-2010 |
Michael Lotz <mmlr@mlotz.ch> |
Use the multibyte aware string functions for typeahead search and filtering so that special characters can be used as well (umlauts for example). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35375 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a63c61839e6afd460b6cb39f35087748b321134a |
|
04-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* The InfoWindow's name text view is now using DisallowFilenameKeys() as well. * DisallowFilenameKeys() no longer forbids the ':', as there is no reason to do so. * Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33894 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aa22e8db2e4edee928ace2f016a170d52d14cb39 |
|
18-Oct-2008 |
Michael Lotz <mmlr@mlotz.ch> |
Changed the score calculation for type ahead in the Tracker. Previously if there was at least one character matching at the start of any file it would have gotten a score >= 1. This rendered the substring matching completely useless as soon as this happened, because it would always get a score < 1 depending on the position of the occurance. Now substring matching is the first (and without word mode, the only) score to get. Since the score depends on the position of the match, this doesn't change anything for exact matches at the beginning, but it does allow for substring matches even if there is a file starting with the same letter as the search string. Also use strcasestr() instead of strstr() to make the search case insensitive. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28233 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
49ad25b3922a6354639b9fe6325c7c6aa1895e41 |
|
16-Oct-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* The type ahead mechanism did not work correctly in list view mode: instead of taking the contents of the columns, it would always use the file name instead. * That uncovered another bug, though: WidgetText::Text() tried to cast everything to StringAttributeText, but GenericAttributeText is actually used for most columns. * Therefore, GenericAttributeText is now a subclass from StringAttributeText. * Extended the type ahead to take other columns into account, and made it also find strings in the middle (like a filter) as a second choice. * Whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28180 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6e927a5fc080cb934e7584454f472cacf4c3e361 |
|
30-Oct-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
malloc.h ain't no standard header. Use stdlib.h instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22776 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f6e4cbb95290a74b33d012600438b84742b0e572 |
|
15-Oct-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote BeBuild.h which had "a few" consequences (got rid of all those class definitions). * Minor cleanup here and there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22577 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eeb608e1c7a4655b1e15f3333b9b3f7ef5a83795 |
|
26-Jun-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* StringFromStream() did not work correctly for empty strings (messed up the stream position). * StringFromStream() called BString::LockBuffer() with "length", but touched "length + 1" bytes. * Prepared for the new "display as" FileTypes feature. * The "DefaultQueryTemplate" folder now adds the MIME type of the folder to the attribute menu for simplified editing (before, you had to move a file with a matching file type into that folder to be able to add the attributes you likely wanted to see). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21509 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bb36f69fd0382eaff3fbbd11b1644049e6debe56 |
|
20-Jun-2007 |
Jérôme Duval <korli@users.berlios.de> |
gPeriodicUpdatePoses is already declared extern in the header git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21474 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
687e327bace5d8abca3e75ce74a8f532fac5c151 |
|
19-Jun-2007 |
Michael Lotz <mmlr@mlotz.ch> |
Reworked the handling of periodically updated poses (currently only ones with a volume space bar): * Addad global list where poses that need periodic updates can be registered with a callback * Use this mechanism for poses with a volume space bar * Create only one BVolume when the BPose is created for a volume, instead of every time the free space is calculated * On Pulse() the global list is used to update all of the registered periodic update poses * As the poses know their volume, it is no longer necessary to use a BVolumeRoster to loop through each volume on each Pulse() * Removed the now superfluous SendNotices() mechanism * Removed corresponding watching / handling of these notices in BPoseView The BPoseView did a linear search for each volume pose on each Pulse() before. What's more it did this once for each mounted volume as it did get one individual notice for each of them. To get these volumes a BVolumeRoster was used to loop through the volumes, but then the BPose did still create a new BVolume to actually calculate the free space! I'm surprised that it did not suck away more performance with this method... Anyway, this should bring down BVolume construction and update overhead down to a minimum and hopefully fix ticket #1247. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21462 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0d9c65d5587f2bb986d94c3ee48d382aa4eb38ec |
|
03-Jun-2007 |
Stephan Aßmus <superstippi@gmx.de> |
* applied patch by Jonas Sundström, the draggable icon in the Find window will be drawn with alpha channel git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21302 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eaac07392a47bde37ecebe60b878f4029a0b30b4 |
|
19-Jan-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Fixed build under R5/Dano that was broken since Stippi added vector icon support. * Separated Haiku's icon stuff a bit better, so that Tracker can still be built without having Haiku headers around. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19871 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bae87c9140b843a16dd71b5ed9cf467f44b57b98 |
|
06-Nov-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Added a new type for the vector icon format 'VICN' or B_VECTOR_ICON_TYPE. It's hopefully now used everywhere instead of B_RAW_TYPE where appropriate. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19219 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52caf6633fa6fd8098c648a349cb9f8167fd4ee7 |
|
18-Oct-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Fixed compilation under R5 and Dano. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19077 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7fb6186f3cb93a14ea0f96a82bdfc3d18f3ad56e |
|
29-Aug-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* integration of vector icons with the registrar and the mime data base * additional versions of SetIcon[ForType] and GetIcon[ForType] in BMimeType and BAppFileInfo, which handle flat vector icon data * changes in Tracker to support scalable icons (currently broken for non-vector icons and needs cleanup) and drawing icons correctly with alpha channel (large parts of this work done by Michael Lotz) If someone feels like looking over the changes, that would be much appreciated! :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18699 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9ecf9d1c1d4888d341a6eac72112c72d1ae3a4cb |
|
26-Aug-2006 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Merge from layout management branch. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
29c171b18f47fdb546f81901e149a546661e4dc9 |
|
27-Jun-2006 |
Stephan Aßmus <superstippi@gmx.de> |
reverted my "build fix" since it actually breaks the build on R5 ... the problem is local to my machine... sorry about that! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17937 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
75acb8cbf8ba8d71d78534c9b2d210cbe6900b71 |
|
27-Jun-2006 |
Stephan Aßmus <superstippi@gmx.de> |
synced with rev 1.12 from OT rep, fixed build on R5 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17931 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cd94fddab267dad9683764eb2606994ae38479c0 |
|
28-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Tracker wrote icons with the wrong type at several places. * Also replaced all B_COLOR_8_BIT with the B_CMAP8 constant. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16909 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a615ec8f86406c14607c656cf90492bc58bd73d0 |
|
30-Dec-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Imported OpenTracker-current. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15764 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6d01b66d300c2841dba033705f120a7f6e709696 |
|
13-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
GCC 4 fixes by Ingo Weinhold. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14893 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
02be5353fd41ea40007a382e13f007eaf6b5a3a0 |
|
22-May-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Added libtracker.so to the repository and the build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12772 a95241bf-73f2-0310-859d-f6bbb57e9c96
|