-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from autumn-sonata/storage-better-models
Storage better models
- Loading branch information
Showing
72 changed files
with
2,645 additions
and
1,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package seedu.address.model; | ||
|
||
/** | ||
* Enum to denote the binary bit flag of access and print permission of | ||
* attributes and DisplayItems. | ||
*/ | ||
public final class AccessDisplayFlags { | ||
// flags for storage and display permissions | ||
public static final int DISPLAY_OK = 1; | ||
public static final int MENU_OK = 1 << 1; | ||
public static final int GROUP = 1 << 2; | ||
public static final int TASK = 1 << 3; | ||
public static final int PERSON = 1 << 4; | ||
public static final int ACCESS_OK = 0b11100; | ||
public static final int HIDE_TYPE = 1 << 5; | ||
public static final int DEFAULT = 0b111111; | ||
|
||
// flags for style and formatting of labels | ||
public static final int BOLD = 1; | ||
public static final int ITALIC = 1 << 1; | ||
public static final int UNDERLINE = 1 << 2; | ||
public static final int STRIKETHROUGH = 1 << 3; | ||
public static final int DROPSHADOW = 1 << 4; | ||
|
||
// where there is a conflict, left > center > right | ||
public static final int LEFT_JUSTIFY = 1 << 5; | ||
public static final int CENTER_JUSTIFY = 1 << 6; | ||
public static final int RIGHT_JUSTIFY = 1 << 7; | ||
|
||
// where there is a conflict, normal > big > small | ||
// big font will show as normal when in menu view ! | ||
public static final int FONT_SIZE_NORMAL = 1 << 8; | ||
public static final int FONT_SIZE_BIG = 1 << 9; | ||
public static final int FONT_SIZE_SMALL = 1 << 10; | ||
|
||
// public static final int DEFAULT_STYLE = 0b00100100000; | ||
public static final int DEFAULT_STYLE = 0b00100100000; | ||
public static final int HEADER_STYLE = 0b01001010101; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.