derenotes.file module

デレステ譜面ファイルを管理するモジュール。

デレステ譜面ファイルの操作を行うウィジットとデレステ譜面データのデレステ楽曲情報を表示するウィジットを扱う。

class NaviBoxLayout(**kwargs)

ベースクラス: BoxLayout

ナビゲーションドロワー(ポップアップのコンテント)のウィジット

パラメータ:

kwargs (Any)

class FileView(**kwargs)

ベースクラス: BoxLayout

「♪♪」ボタンとデレステ譜面データの楽曲情報を表示するウィジット。

「♪♪」からナビゲーションドロワー風ファイルメニューを展開する。 デレステ譜面データの楽曲情報を表示する。

変数:

chart (song.Chart) -- デレステ譜面データ。

構成 title:

デレステ楽曲のタイトルを表示するラベル。

構成 category:

デレステ楽曲のカテゴリを表示するラベル。

構成 type:

デレステ楽曲のタイプを表示するラベル。

構成 level:

デレステ楽曲のレベルを表示するラベル。

chart

ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.

Parameters:
defaultvalue: object type

Specifies the default value of the property.

rebind: bool, defaults to False

Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.

That is the standard behavior is that if there's a kv rule text: self.a.b.c.d, where a, b, and c are properties with rebind False and d is a StringProperty. Then when the rule is applied, text becomes bound only to d. If a, b, or c change, text still remains bound to d. Furthermore, if any of them were None when the rule was initially evaluated, e.g. b was None; then text is bound to b and will not become bound to d even when b is changed to not be None.

By setting rebind to True, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, whenever b changes or becomes not None if it was None before, text is evaluated again and becomes rebound to d. The overall result is that text is now bound to all the properties among a, b, or c that have rebind set to True.

**kwargs: a list of keyword arguments
baseclass

If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).

警告

To mark the property as changed, you must reassign a new python object.

バージョン 1.9.0 で変更: rebind has been introduced.

バージョン 1.7.0 で変更: baseclass parameter added.

reset()

楽曲情報表示を初期状態に戻す。

戻り値の型:

None

setup()

楽曲情報表示をデレステ譜面データに基づいて更新する。

戻り値の型:

None

dismiss()

ナビゲーションドロワー風ファイルメニューから呼び出された popup を閉じる。

戻り値の型:

None

navigation()

NavigationDrawer みたいなフィルメニューのモーダルビュー(ポップアップ)を開く。

戻り値の型:

None

handler(filehandlebutton)

FileHandleButton ハンドル。

呼び出した filehandlebutton に応じてファイル操作を行う。

パラメータ:

filehandlebutton (Widget) -- 呼び出したウィジット。

戻り値の型:

None

pop_new()

新規作成 ダイアログを呼び出す。

戻り値の型:

None

new(path, filename, name, category, type, level)

新たにデレステ譜面データを作成する。

パラメータ:
  • path (str) -- 選択したデレステ動画ファイルのフォルダ名。

  • filename (str) -- 選択したデレステ動画ファイルのファイル名。

  • name (str) -- デレステ楽曲のタイトル。

  • category (str) -- デレステ楽曲のカテゴリ。

  • type (str) -- デレステ楽曲のタイプ。

  • level (str) -- デレステ楽曲のレベル。

戻り値の型:

None

pop_open()

開く ダイアログを呼び出す。

戻り値の型:

None

open(path, filename)

選択したデレステ譜面ファイルを開く。

パラメータ:
  • path (str) -- 選択したデレステ譜面ファイルのフォルダ名。

  • filename (str) -- 選択したデレステ譜面ファイルのファイル名。

戻り値の型:

None

save(new_filename=None)

デレステ譜面ファイルを保存する。

デレステ譜面ファイルを上書き保存する。 ファイルがない場合は、 名前を付けて保存ダイアログ を呼び出す。 new_filename が与えられた場合は、新たに名前を付けて保存する。

パラメータ:

new_filename (str) -- 新たに名前を付けて保存する際のファイル名。初期値は、 None

戻り値の型:

None

pop_save_with_name()

名前を付けて保存 ダイアログを呼び出す。

戻り値の型:

None

close()

デレステ譜面データを破棄する。

戻り値の型:

None

class LoadChartDialog(**kwargs)

ベースクラス: FloatLayout

デレステ譜面ファイルを 開く ダイアログ。

構成 FileChooser filechooser:

ファイル選択を行うウィジット。

構成 BoxLayout fileinfo:

楽曲情報表示するウィジット。

構成 Button load_button:

開く ボタン。

パラメータ:

kwargs (Any)

cancel

ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.

Parameters:
defaultvalue: object type

Specifies the default value of the property.

rebind: bool, defaults to False

Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.

That is the standard behavior is that if there's a kv rule text: self.a.b.c.d, where a, b, and c are properties with rebind False and d is a StringProperty. Then when the rule is applied, text becomes bound only to d. If a, b, or c change, text still remains bound to d. Furthermore, if any of them were None when the rule was initially evaluated, e.g. b was None; then text is bound to b and will not become bound to d even when b is changed to not be None.

By setting rebind to True, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, whenever b changes or becomes not None if it was None before, text is evaluated again and becomes rebound to d. The overall result is that text is now bound to all the properties among a, b, or c that have rebind set to True.

**kwargs: a list of keyword arguments
baseclass

If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).

警告

To mark the property as changed, you must reassign a new python object.

バージョン 1.9.0 で変更: rebind has been introduced.

バージョン 1.7.0 で変更: baseclass parameter added.

load

ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.

Parameters:
defaultvalue: object type

Specifies the default value of the property.

rebind: bool, defaults to False

Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.

That is the standard behavior is that if there's a kv rule text: self.a.b.c.d, where a, b, and c are properties with rebind False and d is a StringProperty. Then when the rule is applied, text becomes bound only to d. If a, b, or c change, text still remains bound to d. Furthermore, if any of them were None when the rule was initially evaluated, e.g. b was None; then text is bound to b and will not become bound to d even when b is changed to not be None.

By setting rebind to True, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, whenever b changes or becomes not None if it was None before, text is evaluated again and becomes rebound to d. The overall result is that text is now bound to all the properties among a, b, or c that have rebind set to True.

**kwargs: a list of keyword arguments
baseclass

If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).

警告

To mark the property as changed, you must reassign a new python object.

バージョン 1.9.0 で変更: rebind has been introduced.

バージョン 1.7.0 で変更: baseclass parameter added.

view(path, filename)

選択しているデレステ譜面ファイル情報の表示。

パラメータ:
  • path (str) -- 選択してるデレステ譜面ファイのフォルダ名。

  • filename (str) -- 選択しているデレステ譜面ファイルのファイルのパス名

戻り値の型:

None

class NewChartDialog(**kwargs)

ベースクラス: FloatLayout

デレステ譜面ファイルの 新規作成 ダイアログ。

構成 FileChooser filechooser:

デレステ動画ファイルを選択するウィジット。

構成 FrameView video_frame:

選択したデレステ動画ファイルのプレビューウィジット。

構成 SongBoxLayout fileinfo:

新規作成するデレステ譜面ファイルの楽曲情報を入力するウィジット。

構成 Button load_button:

新規作成 ボタン。

パラメータ:

kwargs (Any)

cancel

ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.

Parameters:
defaultvalue: object type

Specifies the default value of the property.

rebind: bool, defaults to False

Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.

That is the standard behavior is that if there's a kv rule text: self.a.b.c.d, where a, b, and c are properties with rebind False and d is a StringProperty. Then when the rule is applied, text becomes bound only to d. If a, b, or c change, text still remains bound to d. Furthermore, if any of them were None when the rule was initially evaluated, e.g. b was None; then text is bound to b and will not become bound to d even when b is changed to not be None.

By setting rebind to True, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, whenever b changes or becomes not None if it was None before, text is evaluated again and becomes rebound to d. The overall result is that text is now bound to all the properties among a, b, or c that have rebind set to True.

**kwargs: a list of keyword arguments
baseclass

If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).

警告

To mark the property as changed, you must reassign a new python object.

バージョン 1.9.0 で変更: rebind has been introduced.

バージョン 1.7.0 で変更: baseclass parameter added.

load

ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.

Parameters:
defaultvalue: object type

Specifies the default value of the property.

rebind: bool, defaults to False

Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.

That is the standard behavior is that if there's a kv rule text: self.a.b.c.d, where a, b, and c are properties with rebind False and d is a StringProperty. Then when the rule is applied, text becomes bound only to d. If a, b, or c change, text still remains bound to d. Furthermore, if any of them were None when the rule was initially evaluated, e.g. b was None; then text is bound to b and will not become bound to d even when b is changed to not be None.

By setting rebind to True, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, whenever b changes or becomes not None if it was None before, text is evaluated again and becomes rebound to d. The overall result is that text is now bound to all the properties among a, b, or c that have rebind set to True.

**kwargs: a list of keyword arguments
baseclass

If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).

警告

To mark the property as changed, you must reassign a new python object.

バージョン 1.9.0 で変更: rebind has been introduced.

バージョン 1.7.0 で変更: baseclass parameter added.

view()

選択しているデレステ動画ファイルの情報を表示する。

戻り値の型:

None

class SaveChartWithNameDialog(fileview, **kwargs)

ベースクラス: FloatLayout

デレステ譜面ファイルに 名前を付けて保存 ダイアログ。

パラメータ:
  • fileview (FileView) -- 呼び出し元の FileView のインスタンス

  • kwargs (Any)

load

ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.

Parameters:
defaultvalue: object type

Specifies the default value of the property.

rebind: bool, defaults to False

Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.

That is the standard behavior is that if there's a kv rule text: self.a.b.c.d, where a, b, and c are properties with rebind False and d is a StringProperty. Then when the rule is applied, text becomes bound only to d. If a, b, or c change, text still remains bound to d. Furthermore, if any of them were None when the rule was initially evaluated, e.g. b was None; then text is bound to b and will not become bound to d even when b is changed to not be None.

By setting rebind to True, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, whenever b changes or becomes not None if it was None before, text is evaluated again and becomes rebound to d. The overall result is that text is now bound to all the properties among a, b, or c that have rebind set to True.

**kwargs: a list of keyword arguments
baseclass

If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).

警告

To mark the property as changed, you must reassign a new python object.

バージョン 1.9.0 で変更: rebind has been introduced.

バージョン 1.7.0 で変更: baseclass parameter added.

cancel

ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.

Parameters:
defaultvalue: object type

Specifies the default value of the property.

rebind: bool, defaults to False

Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.

That is the standard behavior is that if there's a kv rule text: self.a.b.c.d, where a, b, and c are properties with rebind False and d is a StringProperty. Then when the rule is applied, text becomes bound only to d. If a, b, or c change, text still remains bound to d. Furthermore, if any of them were None when the rule was initially evaluated, e.g. b was None; then text is bound to b and will not become bound to d even when b is changed to not be None.

By setting rebind to True, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, whenever b changes or becomes not None if it was None before, text is evaluated again and becomes rebound to d. The overall result is that text is now bound to all the properties among a, b, or c that have rebind set to True.

**kwargs: a list of keyword arguments
baseclass

If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).

警告

To mark the property as changed, you must reassign a new python object.

バージョン 1.9.0 で変更: rebind has been introduced.

バージョン 1.7.0 で変更: baseclass parameter added.