#
3cb84528 |
|
09-Jul-2023 |
Trung Nguyen <trungnt282910@gmail.com> |
headers/os: Make headers generator-friendly Make Haiku headers a bit more friendly to binding generators by: - Giving some `enum`s names (especially those that appear in default arguments). - Converting an internal `inline` function into a macro so that the result could be evaluated in compile time. Change-Id: I770674ad8fa7b24ac30b6b447d52a4b4c2530b8a Reviewed-on: https://review.haiku-os.org/c/haiku/+/6716 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
b9d9c282 |
|
24-Aug-2019 |
Simon South <simon@simonsouth.net> |
input_server: Notify apps of new key map Define a new message, B_KEY_MAP_LOADED, that is broadcast to applications by the Input Server each time a key map is loaded. This allows apps that cache key-map data to know when their copy has become stale. Change InputServer::HandleGetSetKeyMap() so it returns an error in the event loading even the system (fallback) key map fails. Change-Id: Icc6c884f695ca59c687d83c680bb2fb467dd90cc Reviewed-on: https://review.haiku-os.org/c/haiku/+/1741 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
bc8427c5 |
|
04-May-2018 |
Hrishi Hiraskar <hrishihiraskar@gmail.com> |
Tracker: Allow add-ons to dynamically extend popup menu. An add-on may now add custom entries to the popup menu, in order to provide more than one action. Change-Id: Ib4726c0c1e70c59e3ba4d752df24b76cfee1c4a4
|
#
7f9368ca |
|
09-Dec-2015 |
looncraz <looncraz@looncraz.net> |
Set*UIColor, etc. The inseparable changes necessary to support live color updating across the system in a sane, safe, and performant manner. BView gains: HasSystemColors() HasDefaultColors() AdoptSystemColors() AdoptParentColors() AdoptViewColor(BView*) SetViewUIColor(color_which, float tint) SetHighUIColor(... SetLowUIColor(... ViewUIColor(float* tint) HighUIColor(... LowUIColor(... DelayedInvalidate() BWindow gains a simple helper method: IsOffscreenWindow() BMessage gains: AddColor() FindColor() GetColor() HasColor() * allegedly this API is deprecated, but I implemented it anyway ReplaceColor() SetColor() Previous private ColorTools methods are made public and moved into GraphicsDefs: mix_color, blend_color, disable_color These are fully compatible with BeOS dan0 R5.1 methods and are just code cleanup of BeOS example code under the OpenTracker license. In addition, four new colors are created: B_LINK_TEXT_COLOR B_LINK_HOVER_COLOR B_LINK_ACTIVE_COLOR B_LINK_VISITED_COLOR These changes are documented in their proper user documentation files. In addition, due to a history rewrite, B_FOLLOW_LEFT_TOP has been defined and used in lieu of B_FOLLOW_TOP | B_FOLLOW_LEFT and is included in this commit. On the app_server side, the following has changed: Add DelayedMessage - a system by which messages can be sent at a scheduled time, and can also be merged according to set rules. A single thread is used to service the message queue and multiple recipients can be set for each message. Desktop gains the ability to add message ports to a DelayedMessage so that said messages can target either all applications or all windows, as needed. Desktop maintains a BMessage which is used to queue up all pending color changes and the delayed messaging system is used to enact these changes after a short period of time has passed. This prevents abuse and allows the system to merge repeated set_ui_color events into one event for client applications, improving performance drastically. In addition, B_COLORS_UPDATED is sent to the BApplication, which forwards the message to each BWindow. This is done to improve performance over having the app_server independently informing each window. Decorator changes are live now, which required some reworking. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
|
#
a1eccae9 |
|
08-Nov-2015 |
Markus Himmel <markus@himmel-villmar.de> |
Make sure images containing BTranslators are not unloaded early When a translator is uninstalled, BTranslatorPrivate::_RemoveTranslators is called. This method used to unload the image containing the translator after calling Release() on it resulting in several problems: - If the translator was still busy, e.g. translating something while being installed, it crashed since the image was unloaded even though its refcount was larger than 0. - Applications using code from one of the translators (e.g. its config view) would crash when the translator is uninstalled (this is bug #12005). This problem is now fixed. The roster keeps track of all translators whose image it manages (even if the translator was already removed from the roster). It also keeps a refcount to all images. When a translator's refcount drops to zero and it belonged to a roster at some point, it does not delete itself, but notifies the roster that it is ready to destruct, which then removes it from the roster if the translator is still in it, destroys the translator, decrements the refcount of the image and if the new refcount is zero, unloads the image. All of this is done in a message handler, since if the translator called TranslatorDeleted like before, the unloaded image would be referenced when the stack is walked up. Finally, the DataTranslations preflet is required to Acquire() the translator whose config view it is showing, because otherwise its refcount could be reduced to 0 and the image unloaded. BTranslatorRoster now enables users to acquire a translator by ID. By the time the translator has to be released, it might not be part of the roster anymore though. Since BTranslatorRoster tries not to give out raw pointers to the translators it manages, users who acquire a translator through a roster now are given a BTranslatorReleaseDelegate, which allows for releasing the BTranslator exactly once and then self-destructs. Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
|
#
fdfc54b5 |
|
08-Nov-2015 |
Markus Himmel <markus@himmel-villmar.de> |
Remove unnecessary whitespace in AppDefs.h Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
|
#
5c9672ed |
|
17-Jun-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add watching support for installation location package changes Can be requested/stopped via BPackageRoster::{Start,Stop}Watching(). The notification message has the what code B_PACKAGE_UPDATE and contains fields "event", "location", and "change count".
|
#
8318af01 |
|
03-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Added a basic tool tip API, and implementation. * The BView API can probably be regarded as good enough; the implementation might need to be improved over time (also, some things as archivability aren't fully implemented yet). The ToolTip.h header should get public once finalized. * Added new B_MOUSE_IDLE message that is sent to a BView after a certain time has passed (BToolTipManager::ShowDelay()). * Added small test app (ToolTipTest) that shows what is already working. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32078 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ffcc37a0 |
|
14-Apr-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Added and implemented B_INVALIDATE as available on Dano; to invalidate only a certain part of the view, you can add a BRect "be:area" to that message - very handy. * Cleaned up AppDefs.h a bit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20683 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
|
#
783f7f20 |
|
29-Apr-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented support for node monitoring - you can now be notified when new translators are installed via BTranslatorRoster::StartWatching(). * Fixed GetTranslatorData() - some hooks are only optional (this puts the JPEG, GIF, and some other translators back into the game). * Made BTranslatorRoster::Default() thread-safe. * Improved documentation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17267 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
09dec1db |
|
21-Feb-2006 |
Jérôme Duval <korli@users.berlios.de> |
cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16489 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
13cdd482 |
|
24-Feb-2004 |
Axel Dörfler <axeld@pinc-software.de> |
Added B_REDO constant (as found in Dano/Zeta). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6732 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6d654013 |
|
18-Oct-2003 |
DarkWyrm <darkwyrm@gmail.com> |
Added a couple of private, internal message defs git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5086 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52a38012 |
|
08-Jul-2002 |
ejakowatz <ejakowatz@nowhere.fake> |
It is accomplished ... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5c9672edebef5990fe9fc81fa917287448ac1ac4 |
|
17-Jun-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add watching support for installation location package changes Can be requested/stopped via BPackageRoster::{Start,Stop}Watching(). The notification message has the what code B_PACKAGE_UPDATE and contains fields "event", "location", and "change count".
|
#
8318af01b99f0c1c6622b7bf33db02794b7eaa20 |
|
03-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Added a basic tool tip API, and implementation. * The BView API can probably be regarded as good enough; the implementation might need to be improved over time (also, some things as archivability aren't fully implemented yet). The ToolTip.h header should get public once finalized. * Added new B_MOUSE_IDLE message that is sent to a BView after a certain time has passed (BToolTipManager::ShowDelay()). * Added small test app (ToolTipTest) that shows what is already working. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32078 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ffcc37a0aac307a6b91c9f41c36d3452d7dcc483 |
|
14-Apr-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Added and implemented B_INVALIDATE as available on Dano; to invalidate only a certain part of the view, you can add a BRect "be:area" to that message - very handy. * Cleaned up AppDefs.h a bit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20683 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
|
#
783f7f20bda751a26ddaf65bd690676a43f8234e |
|
29-Apr-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented support for node monitoring - you can now be notified when new translators are installed via BTranslatorRoster::StartWatching(). * Fixed GetTranslatorData() - some hooks are only optional (this puts the JPEG, GIF, and some other translators back into the game). * Made BTranslatorRoster::Default() thread-safe. * Improved documentation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17267 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
09dec1db1b77ab5af983f047bcd6818861c170e0 |
|
21-Feb-2006 |
Jérôme Duval <korli@users.berlios.de> |
cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16489 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
13cdd48215f14eaa56a7b805c1ab7e35321d114f |
|
24-Feb-2004 |
Axel Dörfler <axeld@pinc-software.de> |
Added B_REDO constant (as found in Dano/Zeta). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6732 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6d6540131a1168bb38b190fd200bcf6a825af88b |
|
18-Oct-2003 |
DarkWyrm <darkwyrm@gmail.com> |
Added a couple of private, internal message defs git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5086 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52a380120846174213ccce9c4aab0dda17c72083 |
|
08-Jul-2002 |
ejakowatz <ejakowatz@nowhere.fake> |
It is accomplished ... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
|