-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put description into dropdown (#182)
- Loading branch information
Showing
5 changed files
with
120 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
* SPDX-FileCopyrightText: 2020-2024 Ryo Nakano <[email protected]> | ||
*/ | ||
|
||
public class CaseListItemModel : Object { | ||
public Define.CaseType case_type { get; construct; } | ||
public string name { get; construct; } | ||
public string description { get; construct; } | ||
|
||
public CaseListItemModel (Define.CaseType case_type, string name, string description) { | ||
Object ( | ||
case_type: case_type, | ||
name: name, | ||
description: description | ||
); | ||
} | ||
} |
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,30 @@ | ||
/* | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
* SPDX-FileCopyrightText: 2020-2024 Ryo Nakano <[email protected]> | ||
*/ | ||
|
||
public class DropDownRow : Gtk.Box { | ||
public Gtk.Label title { get; set; } | ||
public Gtk.Label description { get; set; } | ||
|
||
public DropDownRow () { | ||
} | ||
|
||
construct { | ||
orientation = Gtk.Orientation.VERTICAL; | ||
spacing = 2; | ||
|
||
title = new Gtk.Label (null) { | ||
halign = Gtk.Align.START | ||
}; | ||
title.add_css_class ("heading"); | ||
|
||
description = new Gtk.Label (null) { | ||
halign = Gtk.Align.START | ||
}; | ||
description.add_css_class ("dim-label"); | ||
|
||
append (title); | ||
append (description); | ||
} | ||
} |
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