Commit Graph

63 Commits

Author SHA1 Message Date
wp_xxyyzz
c5e93da15a tvplanit: Add holiday support to DayView.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5199 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-22 23:12:16 +00:00
wp_xxyyzz
dcfee2e807 tvplanit: Add hint support for contact grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5184 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-19 22:58:13 +00:00
wp_xxyyzz
824cbb6a59 tvplanit: Some refactoring of several date/time routines.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5171 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-17 15:48:39 +00:00
wp_xxyyzz
75ccd9a393 tvplanit: Add hint support for dayview. Use localized strings in event hints. Add HintMode (event hints or component hints).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5157 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-12 22:25:34 +00:00
wp_xxyyzz
1f82493afa tvplanit: Add brush pattern to resource group. Remove duplicate resourcestrings. Clearer context menus by adding divider lines.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5148 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-10 20:08:06 +00:00
wp_xxyyzz
7b4cfd3f6e tvplanit: Add ReadOnly flag to ResourceGroup to prevent editing of events in overlay mode.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5147 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-10 19:06:41 +00:00
wp_xxyyzz
e6b0f403d5 tvplanit: Improve assignment of resource group to resource.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5146 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-10 18:27:50 +00:00
wp_xxyyzz
f1348844bf tvplanit: Add option for showing/hiding overlayed events to dayview and weekview context menu.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5145 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-10 17:26:42 +00:00
wp_xxyyzz
0f1bfbf6a5 tvplanit: Activate drag and drop from DayView to WeekView.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5127 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-03 17:41:24 +00:00
wp_xxyyzz
0ea05db2ba tvplanit: Fix DayView getting into DragMode after double-click (Patch by DonAlfredo).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5105 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-26 15:45:53 +00:00
wp_xxyyzz
ea6895c8e3 tvplanit: Add drag&drop of events (patch by forum user DonAlfredo). Update maindemo. Fix memory leak in button width calculation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5103 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-26 13:33:45 +00:00
wp_xxyyzz
1276eb57b8 tvplanit: DPI-aware font sizes of planner controls.
Publish some missing inherited properties of VpCalendar
Move "GetTimeFormat" from FullDemo to unit vpmisc.
Remove some hints/warnings.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5078 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-08 18:29:24 +00:00
wp_xxyyzz
2d689d3568 tvplanit: Fix dayview icons not being printed (new property DayView.IconAttributes.ShowInPrint). Some refactoring in DayView (GutterWidth).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4985 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-16 12:34:46 +00:00
wp_xxyyzz
e85fc428d2 tvplanit: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4984 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-16 10:44:10 +00:00
wp_xxyyzz
d616eba746 tvplanit: Less hints and warnings. Cosmetic changes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4941 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-12 18:00:32 +00:00
wp_xxyyzz
6517dc0e2e tvplanit: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4940 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-12 09:26:14 +00:00
wp_xxyyzz
3c9f3f57e4 tvplanit: Fix Dayview crashing IDE when inserted to form
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4920 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-06 08:17:28 +00:00
wp_xxyyzz
0b35252d3a tvplanit: Refactor painting of ticks and time labels of DayView.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4918 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-05 22:21:02 +00:00
wp_xxyyzz
7e44228076 tvplanit: Extract procedure DrawBorders from DayViewPainter's RenderToCanvas method. Less hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4915 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-04 22:09:42 +00:00
wp_xxyyzz
ca3fd260ba tvplanit: Fix positioning of inplace-editor of all-day event in DayView.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4914 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-04 21:48:27 +00:00
wp_xxyyzz
422d8c5463 tvplanit: Improved painting of all-day events. Some related refactoring.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4912 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-04 20:30:36 +00:00
wp_xxyyzz
1159900b4e tvplanit: Fix text with font height 0 being too small in printout.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4898 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-02 22:46:05 +00:00
wp_xxyyzz
183e89afe2 tvplanit: Fix scrolling issue in DayView.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4896 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-02 15:44:34 +00:00
wp_xxyyzz
7e954aacab tvplanit: Fix Dayview not scrolling to the end of the day.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4890 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-01 22:21:07 +00:00
wp_xxyyzz
7cb2fd3d88 tvplanit: Fix DayView scrollbar error if Granularity is 60min.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4878 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-01 13:21:43 +00:00
wp_xxyyzz
3767e20c54 tvplanit: Use PointInRect function instead of huge "if" monsters
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4870 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-29 21:46:53 +00:00
wp_xxyyzz
a804344102 tvplanit: Fix enabled state of day view popup menu.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4855 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-28 16:50:32 +00:00
wp_xxyyzz
716c478549 tvplanit: Some clean-up in VpDayView
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4851 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-28 11:08:29 +00:00
wp_xxyyzz
564a84a7d6 tvplanit: More refactoring of event painting in TVpDayView
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4840 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-26 13:52:59 +00:00
wp_xxyyzz
4af15415ad tvplanit: More refactoring of event painting in TVpDayView
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4839 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-26 11:37:20 +00:00
wp_xxyyzz
48bdc3b5c6 tvplanit: Remove a few unused variables in DayViewPainter
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4838 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-26 08:14:09 +00:00
wp_xxyyzz
2b22eefdca tvplanit: Fix delete confirmation messages.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4831 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-24 21:55:47 +00:00
wp_xxyyzz
281124bc97 tvplanit: Fix alarm and recurrance icons in DayView.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4830 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-24 21:41:24 +00:00
wp_xxyyzz
4f2302a941 tvplanit: Fix DayView in-place editor reaching into adjacent column
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4826 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-24 19:10:59 +00:00
wp_xxyyzz
54dc447750 tvplanit: Add new property "AllowInplaceEditing" for DayView, WeekView and TaskList.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4814 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-23 23:16:34 +00:00
wp_xxyyzz
705a6878ac tvplanit: Refactor painting code of TVpDayView (new helper unit TVpDayViewPainter)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4804 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-22 14:43:43 +00:00
wp_xxyyzz
78e60575cc tvplanit: No more IDE crash (was caused by over-range error in dvLineMatrix of TDayView, procedures SetTimeIntervals, DrawCells)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4801 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-22 12:16:45 +00:00
wp_xxyyzz
7d184408a7 tvplanit: Remove all "uses messages" (implies "uses Windows")
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4798 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-22 07:59:17 +00:00
wp_xxyyzz
89e16097a4 tvplanit: Beginning to refactor the RenderToCanvas method of TVpDayview, local subprocedure DrawEvents (2000 lines monster!)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4797 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-21 20:45:28 +00:00
wp_xxyyzz
8116ba68c4 tvplanit: Cosmetic changes and some refactoring in unit VpPrtFmt
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4793 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-21 18:45:18 +00:00
wp_xxyyzz
2e89999e86 tvplanit: cosmetic changes, mostly in day view unit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4784 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-20 14:21:33 +00:00
wp_xxyyzz
cc260412e1 tvplanit: Refactor granularity-related code
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4782 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-20 11:00:59 +00:00
wp_xxyyzz
f4e4f7fb99 tvplanit: Refactor TVpDayView.SetTimeIntervals
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4781 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-20 10:21:06 +00:00
wp_xxyyzz
5d527e1d69 tvplanit: Cosmetic changes in DayView
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4779 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-19 23:40:28 +00:00
wp_xxyyzz
e9199cdad2 tvplanit: Activate translation of dayview speedbuttons,
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4778 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-19 22:41:36 +00:00
wp_xxyyzz
6dc495dea2 tvplanit: Deactivate drag-and-drop code in dayview unit by a define (DRAGDROP). This fixes the drag-and-drop mouse cursor appearing after editing an event in dayview.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4768 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-18 12:09:16 +00:00
wp_xxyyzz
6509b909e8 tvplanit: Fix dayview's inplace editor being destroyed (no issue at the moment, but could be - the other controls failed due to that).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4767 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-18 11:17:39 +00:00
wp_xxyyzz
e8c8fb2ed2 tvplanit: remove hard-coded font name "Tahoma" from DayView unit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4751 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-14 14:24:19 +00:00
wp_xxyyzz
6827b11c3a tvplanit: More round-off-error-tolerant version of TimeInRange function
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4750 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-14 14:20:23 +00:00
wp_xxyyzz
cdd2584be7 tvplanit: Activate mousewheel in VpCalendar
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4730 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-12 16:27:54 +00:00