|
@@ -21,10 +21,34 @@ class CoverEditorDialog : DialogFragment() {
|
|
|
|
|
|
var onSave: View.OnClickListener? = null
|
|
var onSave: View.OnClickListener? = null
|
|
var onCancel: View.OnClickListener? = null
|
|
var onCancel: View.OnClickListener? = null
|
|
- var storyName = frontCoverEditorView_coverEditorDialog.storyName
|
|
|
|
- var author = frontCoverEditorView_coverEditorDialog.author
|
|
|
|
- var frontCoverColor = frontCoverEditorView_coverEditorDialog.selectedColor
|
|
|
|
- var backCoverColor = backCoverEditorView_coverEditorDialog.selectedColor
|
|
|
|
|
|
+ var storyName: String
|
|
|
|
+ get () {
|
|
|
|
+ return frontCoverEditorView_coverEditorDialog.storyName
|
|
|
|
+ }
|
|
|
|
+ set(value) {
|
|
|
|
+ frontCoverEditorView_coverEditorDialog.storyName = value
|
|
|
|
+ }
|
|
|
|
+ var author: String
|
|
|
|
+ get() {
|
|
|
|
+ return frontCoverEditorView_coverEditorDialog.author
|
|
|
|
+ }
|
|
|
|
+ set(value) {
|
|
|
|
+ frontCoverEditorView_coverEditorDialog.author = value
|
|
|
|
+ }
|
|
|
|
+ var frontCoverColor: CoverColor
|
|
|
|
+ get() {
|
|
|
|
+ return frontCoverEditorView_coverEditorDialog.selectedColor
|
|
|
|
+ }
|
|
|
|
+ set(value) {
|
|
|
|
+ frontCoverEditorView_coverEditorDialog.selectedColor = value
|
|
|
|
+ }
|
|
|
|
+ var backCoverColor: CoverColor
|
|
|
|
+ get() {
|
|
|
|
+ return backCoverEditorView_coverEditorDialog.selectedColor
|
|
|
|
+ }
|
|
|
|
+ set(value) {
|
|
|
|
+ backCoverEditorView_coverEditorDialog.selectedColor = value
|
|
|
|
+ }
|
|
|
|
|
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
|
return inflater.inflate(R.layout.dialog_cover_editor, container, false).apply {
|
|
return inflater.inflate(R.layout.dialog_cover_editor, container, false).apply {
|