History log of /haiku/src/apps/deskbar/CalendarMenuWindow.cpp
Revision Date Author Comments
# e9fa1deb 18-Nov-2019 John Scipione <jscipione@gmail.com>

Deskbar: Don't allow calendar window to be manipulated

By setting B_NOT_MOVABLE and B_NOT_RESIZABLE flags the calendar window
can't be moved or resized by holding ctrl + alt + left/right mouse button.

Change-Id: If7f280ab6595b32a6c9521051540ffba0c76d211
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1965
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 1cd61330 02-May-2012 John Scipione <jscipione@gmail.com>

Style fixes including reordering #include's in Deskbar

* Reorder includes according to the Style Guide.
* Whitespace changes, mostly making sure there are 2 newlines
between things and making sure there is 1 newline at the end of
each file.
* Make end of header files all in the style of
#endif\t/* _HEADER_GAURD_H_ */
* The one change that is not purely style is to #include <Path.h>
in DeskbarUtils.h instead of DeskbarUtils.cpp because it is used
to define entry_ref for the AddRefsToDeskbarMenu() prototype.


# 6846765f 07-Sep-2011 Oliver Tappe <zooey@hirschkaefer.de>

Work on #7947 (CalendarView not respecting locale's start of week)
* support all weekdays as start of week, not only Sunday and Monday
(at least Saturday is used for real, too)
* introduce BWeekday as enumeration of weekdays (currently in Locale.h,
may be moved somewhere else later)
* change CalendarView to use BDate as its model, not individual values
for day, month and year, such that no more date computation is done
in CalendarView itself
* some more style cleanups in CalendarView along the way
* add monthwise paging to CalendarView
* adjusted Deskbar and Time preflet accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42720 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6041c9cd 27-Aug-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by jscipione : make sure deskbar calendar is always above deskbar. Thanks!
Fixes #7855.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42696 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0da447f9 05-Apr-2011 Axel Dörfler <axeld@pinc-software.de>

* There is no good reason to use a tiny font size here that doesn't even render
as well with our default font.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41186 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 70e2a184 01-Apr-2011 Axel Dörfler <axeld@pinc-software.de>

* Followed korli's suggestion and use the existing BDate API instead, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41161 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 12d7d464 31-Mar-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed "Month +/-" not working on the 31th.
* Renamed _UpdateUI() to _UpdateDate().
* Added copyright year when Karsten wrote that code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41156 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c5622397 05-Mar-2011 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

Even more style clean up patches by John Scipione from bug 7052.
(I modified BeMenu.h to have consistent style for pointer variables.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40817 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25dc253d 22-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Merged weak-symbols branch.
* Fixed trivial merge conflict in src/system/libroot/posix/locale/nl_langinfo.cpp
* Fixed gcc 2 compilation of src/system/glue/init_term_dyn.c.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b7f60965 30-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

* removed all BLocale-related getters from BLocaleRoster - they're available
in BLocale (which is accessible via be_locale)
* adjusted all users accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25fd5c7b 12-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Update some apps/add-ons/preflets for impending changes to the layout API, specifically the layout builders. Also do a bit of style and layout cleanup in some places. This is part of #6407. Everything I've updated should look and function the same as it did before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38064 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c3a3034 04-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Move the locale-related stuff away from BCountry to BLocale.
* Remove the be_locale global object and go through the be_locale_roster instead
* Rework the storage of data for the be_locale_roster, since BLocale already holds a BCountry and a BLanguage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37907 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 38ac8def 01-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Largish cleanup sweep concerning the Locale Kit (sorry it got so big):
* refactored private/mutable stuff out of LocaleRoster into MutableLocaleRoster
* moved management of Locale/Time settings file and broadcasting of any changes
out of preflets and into MutableLocaleRoster
* added proper sorting to the listviews of the Locale preflet
* the Time preflet no longer overlaps long timezone names into the actual time
* several fixes with respect to leaking ICU objects, esp. in BCountry
* the locale roster no longer passes out references to its own BCountry object,
but uses copies, instead - this makes locking superfluous, as the clients'
BCountry objects can no longer be changed by the setting a new default
country in the locale roster
* removed pretty useless POSIX-style symbol fetching from BCountry - if we
need that at all, it should live in the dedicated formatter classes
* adjusted readonlybootprompt, dstcheck and Deskbar to the changed Locale API
* refactored existing Time-formatter into TimeUnitFormat and DurationFormat
(the latter of which is now used by AboutSystem)
* added stubs for Date, DateTime and Time formatters
* lots of coding style fixes throughout the Locale Kit and the Locale and Time
preflets
This will probably break most external apps making use of the Locale Kit - it
does break WebPositive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37831 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f097f109 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

fix the build. Thanks again to luroh for watching me!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37350 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cd31c8c 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Uncomment useful code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37349 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2f0eb7b1 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Introduce a new method in BCountry to get the first day of week (monday or sunday)
* Localize date in deskbar properly, and use the new API to show the calendar. The "show european date" checkbox is now gone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37344 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a070cf53 06-Mar-2010 Stephan Aßmus <superstippi@gmx.de>

* Indentation update in DateTime.h
* Extended BTime, BDate and BDateTime with archiving functionality.
* Adjusted code which uses these classes, since including DateTime.h
already imports the classes from the BPrivate namespace.
* Moved DateTime.h into Support Kit. It is still in the BPrivate namespace,
as I am uncertain what to do with time_type and diff_type. I'd favor
moving the constants into the classes itself. Possibly removing the B_
prefix from them. Feedback welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35772 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dcfdc837 28-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* This should fix the calendar menu when using the click-to-focus mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33804 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 733ca9bd 21-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the font size depend on the be_plain_font size, instead of a hard coded
one.
* Some coding style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33698 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71bd3ba5 30-Sep-2009 Jonas Sundström <jonas@kirilla.com>

Removing ifdefs and code for non-Haiku build targets. Partial clean-up. Enforcing the 80-char limit, renaming constants, newline at end of file.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33377 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 290c9039 29-Sep-2009 Jonas Sundström <jonas@kirilla.com>

Partial clean-up. Asterisks and k-prefix constants.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33366 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c984125a 30-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* not zoomable, minimizable
no hide shortcut, this will hide deskbar too



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27242 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f9abddf 29-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* Reuse calendar from shared to have a bitmore advanced panel
while holding down the mouse over the date area in Deskbar.

One probably needs to clean and rebuild Deskbar to get it...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27236 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1cd61330ecd8257551d58f204332d00145c855ec 02-May-2012 John Scipione <jscipione@gmail.com>

Style fixes including reordering #include's in Deskbar

* Reorder includes according to the Style Guide.
* Whitespace changes, mostly making sure there are 2 newlines
between things and making sure there is 1 newline at the end of
each file.
* Make end of header files all in the style of
#endif\t/* _HEADER_GAURD_H_ */
* The one change that is not purely style is to #include <Path.h>
in DeskbarUtils.h instead of DeskbarUtils.cpp because it is used
to define entry_ref for the AddRefsToDeskbarMenu() prototype.


# 6846765fbf83f501df7ab9b10811971cbb5375a3 07-Sep-2011 Oliver Tappe <zooey@hirschkaefer.de>

Work on #7947 (CalendarView not respecting locale's start of week)
* support all weekdays as start of week, not only Sunday and Monday
(at least Saturday is used for real, too)
* introduce BWeekday as enumeration of weekdays (currently in Locale.h,
may be moved somewhere else later)
* change CalendarView to use BDate as its model, not individual values
for day, month and year, such that no more date computation is done
in CalendarView itself
* some more style cleanups in CalendarView along the way
* add monthwise paging to CalendarView
* adjusted Deskbar and Time preflet accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42720 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6041c9cd565f8e8598720b51863e346d1b5bb8b3 27-Aug-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by jscipione : make sure deskbar calendar is always above deskbar. Thanks!
Fixes #7855.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42696 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0da447f91719363bc3b56711eb872da8afb68f76 05-Apr-2011 Axel Dörfler <axeld@pinc-software.de>

* There is no good reason to use a tiny font size here that doesn't even render
as well with our default font.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41186 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 70e2a184d2de0b5feeca35c05161436b0ef506ca 01-Apr-2011 Axel Dörfler <axeld@pinc-software.de>

* Followed korli's suggestion and use the existing BDate API instead, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41161 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 12d7d464bca2b349d0bbdf2b95c814843853c2ff 31-Mar-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed "Month +/-" not working on the 31th.
* Renamed _UpdateUI() to _UpdateDate().
* Added copyright year when Karsten wrote that code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41156 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c562239723e3bf04fdd3c049306c91ee5cf17df9 05-Mar-2011 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

Even more style clean up patches by John Scipione from bug 7052.
(I modified BeMenu.h to have consistent style for pointer variables.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40817 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25dc253d6ab28ce204fa4de2d3e7a27d167fc817 22-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Merged weak-symbols branch.
* Fixed trivial merge conflict in src/system/libroot/posix/locale/nl_langinfo.cpp
* Fixed gcc 2 compilation of src/system/glue/init_term_dyn.c.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b7f609650b9864f5f93ee235c1a095970f9df525 30-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

* removed all BLocale-related getters from BLocaleRoster - they're available
in BLocale (which is accessible via be_locale)
* adjusted all users accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25fd5c7b3558df58baee955efafec15fd2ceadae 12-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Update some apps/add-ons/preflets for impending changes to the layout API, specifically the layout builders. Also do a bit of style and layout cleanup in some places. This is part of #6407. Everything I've updated should look and function the same as it did before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38064 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c3a30348613821de032e50f1633e47dc732651f 04-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Move the locale-related stuff away from BCountry to BLocale.
* Remove the be_locale global object and go through the be_locale_roster instead
* Rework the storage of data for the be_locale_roster, since BLocale already holds a BCountry and a BLanguage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37907 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 38ac8def5a72de58d6ae4e82d8c4a6be1021e67e 01-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Largish cleanup sweep concerning the Locale Kit (sorry it got so big):
* refactored private/mutable stuff out of LocaleRoster into MutableLocaleRoster
* moved management of Locale/Time settings file and broadcasting of any changes
out of preflets and into MutableLocaleRoster
* added proper sorting to the listviews of the Locale preflet
* the Time preflet no longer overlaps long timezone names into the actual time
* several fixes with respect to leaking ICU objects, esp. in BCountry
* the locale roster no longer passes out references to its own BCountry object,
but uses copies, instead - this makes locking superfluous, as the clients'
BCountry objects can no longer be changed by the setting a new default
country in the locale roster
* removed pretty useless POSIX-style symbol fetching from BCountry - if we
need that at all, it should live in the dedicated formatter classes
* adjusted readonlybootprompt, dstcheck and Deskbar to the changed Locale API
* refactored existing Time-formatter into TimeUnitFormat and DurationFormat
(the latter of which is now used by AboutSystem)
* added stubs for Date, DateTime and Time formatters
* lots of coding style fixes throughout the Locale Kit and the Locale and Time
preflets
This will probably break most external apps making use of the Locale Kit - it
does break WebPositive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37831 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f097f10900338e21b3b37abb85de1f49b84e0e9b 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

fix the build. Thanks again to luroh for watching me!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37350 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cd31c8c1b646952f3ff1e197391a3fa96b4d7e0 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Uncomment useful code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37349 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2f0eb7b11e9cdb428b2da5bfaac25c9998b02e03 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Introduce a new method in BCountry to get the first day of week (monday or sunday)
* Localize date in deskbar properly, and use the new API to show the calendar. The "show european date" checkbox is now gone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37344 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a070cf5306662fec199ccf79c0e9872fbcd0fc75 06-Mar-2010 Stephan Aßmus <superstippi@gmx.de>

* Indentation update in DateTime.h
* Extended BTime, BDate and BDateTime with archiving functionality.
* Adjusted code which uses these classes, since including DateTime.h
already imports the classes from the BPrivate namespace.
* Moved DateTime.h into Support Kit. It is still in the BPrivate namespace,
as I am uncertain what to do with time_type and diff_type. I'd favor
moving the constants into the classes itself. Possibly removing the B_
prefix from them. Feedback welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35772 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dcfdc8374a874aff9382735e137e9daf277a0fc2 28-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* This should fix the calendar menu when using the click-to-focus mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33804 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 733ca9bd9378c83e85f7ad4dab0ff4013737076f 21-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the font size depend on the be_plain_font size, instead of a hard coded
one.
* Some coding style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33698 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71bd3ba59c06b130115c3ddd44457d8f9dd78997 30-Sep-2009 Jonas Sundström <jonas@kirilla.com>

Removing ifdefs and code for non-Haiku build targets. Partial clean-up. Enforcing the 80-char limit, renaming constants, newline at end of file.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33377 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 290c903985a449fa86c501366b6fcddf7f55b46a 29-Sep-2009 Jonas Sundström <jonas@kirilla.com>

Partial clean-up. Asterisks and k-prefix constants.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33366 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c984125a2dbe35794918482421149d2f4c860ab2 30-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* not zoomable, minimizable
no hide shortcut, this will hide deskbar too



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27242 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f9abddf33132d2e4c340b21cd5e8579f13113cc 29-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* Reuse calendar from shared to have a bitmore advanced panel
while holding down the mouse over the date area in Deskbar.

One probably needs to clean and rebuild Deskbar to get it...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27236 a95241bf-73f2-0310-859d-f6bbb57e9c96