-
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.
Rename ComboEntry to TextPane (#139)
- Loading branch information
Showing
12 changed files
with
34 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/com/github/ryonakano/konbucase"> | ||
<file preprocess="xml-stripblanks">ui/combo-entry.ui</file> | ||
<file preprocess="xml-stripblanks">ui/text-pane.ui</file> | ||
<file preprocess="xml-stripblanks">ui/main-window.ui</file> | ||
</gresource> | ||
</gresources> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
data/konbucase.desktop.in | ||
data/konbucase.metainfo.xml.in | ||
data/resources/ui/combo-entry.blp | ||
data/resources/ui/main-window.blp | ||
src/Model/ComboEntryModel.vala | ||
data/resources/ui/text-pane.blp | ||
src/Model/TextPaneModel.vala |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* SPDX-FileCopyrightText: 2020-2024 Ryo Nakano <[email protected]> | ||
*/ | ||
|
||
public class ComboEntryModel : Object { | ||
public class TextPaneModel : Object { | ||
public Define.TextType text_type { get; construct; } | ||
public Define.CaseType case_type { get; set; } | ||
public string case_description { get; set; } | ||
|
@@ -36,7 +36,7 @@ public class ComboEntryModel : Object { | |
{ N_("The first character of the first word in the sentence is in uppercase") }, // Define.CaseType.SENTENCE | ||
}; | ||
|
||
public ComboEntryModel (Define.TextType text_type) { | ||
public TextPaneModel (Define.TextType text_type) { | ||
Object ( | ||
text_type: text_type | ||
); | ||
|
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 |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
* SPDX-FileCopyrightText: 2020-2024 Ryo Nakano <[email protected]> | ||
*/ | ||
|
||
[GtkTemplate (ui = "/com/github/ryonakano/konbucase/ui/combo-entry.ui")] | ||
public class ComboEntry : Gtk.Box { | ||
[GtkTemplate (ui = "/com/github/ryonakano/konbucase/ui/text-pane.ui")] | ||
public class TextPane : Gtk.Box { | ||
public signal void dropdown_changed (); | ||
public signal void copy_button_clicked (); | ||
|
||
public ComboEntryModel model { get; set construct; } | ||
public TextPaneModel model { get; set construct; } | ||
public string description { get; construct; } | ||
public bool editable { get; construct; } | ||
|
||
|
@@ -19,7 +19,7 @@ public class ComboEntry : Gtk.Box { | |
[GtkChild] | ||
private unowned GtkSource.View source_view; | ||
|
||
public ComboEntry (ComboEntryModel model, string description, bool editable) { | ||
public TextPane (TextPaneModel model, string description, bool editable) { | ||
Object ( | ||
model: model, | ||
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