Chapter 55. mrulib
The mrulib provides a viable Most Recently Used (MRU) capability for storing the information in a config file (conflib) and managing a submenu of items.
MRUList
Description
Type Tags
None
Object Value
Objects of type MRUList have no value, and it is an error to try to get or set this value.
MRUList.new()
Description
Prototype
MRUList
.new
(
MRUList
,
string me
,
string sectionname
,
wxmenu inifilename
,
integer rootmenu
,
integer maxmenuentries
)
maxentriestotal
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
sectionname | None | string | |
inifilename | None | string | |
rootmenu | None | wxmenu | |
maxmenuentries | 8 | integer | |
maxentriestotal | 99 | integer |
Properties
Property | Type | Description |
---|---|---|
_ | type(*) | |
__ | type(*) | |
_private | MRUListprivate | |
additem | function | |
count | function | |
finditem | function | |
get | function | |
getlistreference | function | |
inifilename | string | |
maxentriestotal | integer | |
maxmenuentries | integer | |
new | function | |
onselect | event | |
readconfig | function | |
removeitem | function | |
rootmenu | wxmenu | |
sectionname | string | |
setlistreference | function | |
showdialog | function | |
type | type | |
updatemenu | function | |
writeconfig | function |
Methods
additem()
Description
Prototype
MRUListvar
.additem
(
MRUList
,
string me
)
value
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
value | None | string |
count()
Description
Prototype
MRUListvar
.count
(
MRUList
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList |
finditem()
Description
Prototype
MRUListvar
.finditem
(
MRUList
,
string me
)
value
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
value | None | string |
get()
Description
Prototype
MRUListvar
.get
(
MRUList
,
integer me
,
integer index
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
index | None | integer | |
error | None | integer |
getlistreference()
Description
Prototype
MRUListvar
.getlistreference
(
MRUList
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList |
readconfig()
Description
Prototype
MRUListvar
.readconfig
(
MRUList
,
integer me
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
error | None | integer |
removeitem()
Description
Prototype
MRUListvar
.removeitem
(
MRUList
,
integer me
,
integer index
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
index | None | integer | |
error | None | integer |
setlistreference()
Description
Prototype
MRUListvar
.setlistreference
(
MRUList
,
dlist me
)
entries
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
entries | None | dlist |
showdialog()
Description
Prototype
MRUListvar
.showdialog
(
MRUList
,
type(wxdialogparent) me
,
string parent
)
captiontext
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
parent | None | type(wxdialogparent) | |
captiontext | None | string |
updatemenu()
Description
Prototype
MRUListvar
.updatemenu
(
MRUList
,
integer me
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
error | None | integer |
writeconfig()
Description
Prototype
MRUListvar
.writeconfig
(
MRUList
,
integer me
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | MRUList | |
error | None | integer |