Mercurial Hosting > junotu
changeset 83:8759379a27a4
TabCalendarBoard: Minor progress
author | Fox |
---|---|
date | Sun, 22 Jan 2023 05:35:59 +0100 |
parents | e476baaaab2c |
children | 0be27b125634 |
files | src/junotu/Card.java src/junotu/TabCalendarBoard.java |
diffstat | 2 files changed, 16 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/junotu/Card.java Wed Jan 18 04:16:50 2023 +0100 +++ b/src/junotu/Card.java Sun Jan 22 05:35:59 2023 +0100 @@ -23,6 +23,9 @@ public static final String TAG_BOARD_COLUMN_CARDS = TAG_CORE_PREFIX+"board_column_cards"; public static final String TAG_BOARD_COLUMN_CARD = TAG_CORE_PREFIX+"board_column_card"; + public static final String TAG_CALENDAR_BOARD = TAG_CORE_PREFIX+"calendar_board"; + public static final String TAG_CALENDAR_BOARD_OPTION_ONLY_FILLED = TAG_CORE_PREFIX+"calendar_board_hide_empty_days"; + public static final String VALUE_BOARD_COLUMN_CARD_ONLY = "only"; public static final String HIDE_TAGS[] = {
--- a/src/junotu/TabCalendarBoard.java Wed Jan 18 04:16:50 2023 +0100 +++ b/src/junotu/TabCalendarBoard.java Sun Jan 22 05:35:59 2023 +0100 @@ -478,6 +478,8 @@ Box columns; JScrollPane scroll; + boolean optionOnlyFilledColumns; + JButton back; public TabCalendarBoard() @@ -497,14 +499,15 @@ back.addActionListener(this); - back.setToolTipText("Go back to where the card was accessed from."); + back.setToolTipText("Go back to where the calendar board was accessed from."); } public void boardEdit() { + // TODO: Find or create calendar board card. if( identifier == -1 ) { - // TODO: Find or create calendar board card. + } } @@ -518,9 +521,15 @@ throw new RuntimeException(); } - // TODO: Proper tags. card.titleSet( "JUnotu calendar board" ); - card.tagValueSetOnly( Card.TAG_BOARD, null ); + card.tagValueSetOnly( Card.TAG_CALENDAR_BOARD, null ); + + // TODO: Maybe card should have convenience functions for reading and writing options? + if( optionOnlyFilledColumns ) { + card.tagValueSetOnly( Card.TAG_CALENDAR_BOARD_OPTION_ONLY_FILLED, null ); + } else { + card.tagRemove( Card.TAG_CALENDAR_BOARD_OPTION_ONLY_FILLED ); + } Main.database.cardUpdate(card); Main.refreshSearches();