# phiola v2.7 GUI

include_language {
	# <LANG> "lang_<LANG>.conf"
	default "lang_en.conf"
}

menu mfile {
	item $MFInfo {
		action A_FILE_INFO
		hotkey "I"
	}
	item $MFShowDir {
		action A_FILE_SHOWDIR
	}
	item $MFRename {
		action A_FILE_RENAME
		hotkey "Shift+F6"
	}
	item $MFDelete {
		action A_FILE_DEL
		hotkey "Shift+Delete"
	}
	item - {
	}
	item $MHSettings {
		action A_SETTINGS_SHOW
	}
	item $MFExit {
		action A_QUIT
		hotkey "Ctrl+Q"
	}
}

menu mlist {
	item $MLNew {
		action A_LIST_NEW
		hotkey "Ctrl+N"
	}
	item $MLClose {
		action A_LIST_CLOSE
		hotkey "Ctrl+W"
	}
	item - {
	}
	item $MLAddFile {
		action A_LIST_ADD_FILE
		hotkey "Insert"
	}
	item $MLAdd {
		action A_LIST_ADD
		hotkey "Ctrl+U"
	}
	item $MLAddToNextList {
		action A_LIST_ADDTONEXT
	}
	item $MLFilter {
		action A_LIST_FILTER
		hotkey "Ctrl+F"
	}
	item $MLSave {
		action A_LIST_SAVE
		hotkey "Ctrl+S"
	}
	item $MLMetaRead {
		action A_LIST_META_READ
	}
	item - {
	}
	item $MLRemove {
		action A_LIST_REMOVE
		hotkey "Delete"
	}
	item $MLRemoveNonExisting {
		action A_LIST_REMOVE_NONEXIST
	}
	item $MLClear {
		action A_LIST_CLEAR
	}
	item - {
	}
	item $MLSortFileName {
		action A_LIST_SORT
	}
	item $MLSortFileSize {
		action A_LIST_SORT_FILESIZE
	}
	item $MLSortFileDate {
		action A_LIST_SORT_FILEDATE
	}
	item $MLSortTagArtist {
		action A_LIST_SORT_TAG_ARTIST
	}
	item $MLSortTagDate {
		action A_LIST_SORT_TAG_DATE
	}
	item $MLShuffle {
		action A_LIST_SHUFFLE
	}
	item $MLScrollToCurrent {
		action A_LIST_SCROLL_TO_CUR
	}
	check_item $MLAutoSelect {
		action A_LIST_AUTOSELECT
	}
}

menu mplay {
	item $MPPlayPause {
		action A_PLAYPAUSE
		hotkey "Space"
	}
	item $MPStop {
		action A_STOP
		hotkey "S"
	}
	item $MPNext {
		action A_NEXT
		hotkey "N"
	}
	item $MPPrevious {
		action A_PREV
		hotkey "P"
	}
	item - {
	}
	item $MPSeekForward {
		action A_STEP_FWD
		hotkey "Alt+Right"
	}
	item $MPSeekBack {
		action A_STEP_BACK
		hotkey "Alt+Left"
	}
	item $MPLeapForward {
		action A_LEAP_FWD
		hotkey "Ctrl+Right"
	}
	item $MPLeapBack {
		action A_LEAP_BACK
		hotkey "Ctrl+Left"
	}
	item $MPGoTo {
		action A_GOTO_SHOW
		hotkey "Ctrl+G"
	}
	item $MPSetMarker {
		action A_MARKER_SET
		hotkey "Shift+G"
	}
	item $MPJumpToMarker {
		action A_MARKER_JUMP
		hotkey "G"
	}
	item - {
	}
	check_item $MPRepeat {
		action A_REPEAT_TOGGLE
	}
	check_item $MPRandom {
		action A_RANDOM_TOGGLE
	}
	item - {
	}
	item $MPVolumeUp {
		action A_VOLUP
		hotkey "Ctrl+Up"
	}
	item $MPVolumeDown {
		action A_VOLDOWN
		hotkey "Ctrl+Down"
	}
}

menu mrecord {
	item $MRShowRecording {
		action A_RECORD_SHOW
		hotkey "Ctrl+Shift+R"
	}
	item $MRStartStopRec {
		action A_RECORD_START_STOP
		hotkey "Ctrl+R"
	}
}

menu mconvert {
	item $MCConvert {
		action A_CONVERT_SHOW
		hotkey "Ctrl+T"
	}
	item $MCSetStartPos {
		action A_CONVERT_POS_START
		hotkey "["
	}
	item $MCSetEndPos {
		action A_CONVERT_POS_END
		hotkey "]"
	}
}

menu mhelp {
	item $MHAbout {
		action A_ABOUT_SHOW
	}
}

menu mpopup {
	item $MFInfo {
		action A_FILE_INFO
	}
	item $MFShowDir {
		action A_FILE_SHOWDIR
	}
	item $MFDelete {
		action A_FILE_DEL
	}
	item $MLRemove {
		action A_LIST_REMOVE
	}
}

dialog dlg {
}

window wmain {
	title		$MNPhiola
	position	100 100 600 600
	icon {
		resource 2
	}

	mainmenu mm {
		item $MMFile {
			submenu mfile
		}
		item $MMList {
			submenu mlist
		}
		item $MMPlayback {
			submenu mplay
		}
		item $MMRecord {
			submenu mrecord
		}
		item $MMConvert {
			submenu mconvert
		}
		item $MMHelp {
			submenu mhelp
		}
	}

	button bpause {
		size 40 40
		tooltip "Play/Pause"
		action A_PLAYPAUSE
		style horizontal
		icon {
			resource 3
		}
	}

	button bstop {
		size 40 40
		style horizontal
		tooltip "Stop"
		action A_STOP
		icon {
			resource 4
		}
	}

	button bprev {
		size 40 40
		style horizontal
		tooltip "Previous"
		action A_PREV
		icon {
			resource 5
		}
	}

	button bnext {
		size 40 40
		style horizontal
		tooltip "Next"
		action A_NEXT
		icon {
			resource 6
		}
	}

	label lpos {
		size 150 30
		style horizontal
		font {
			name	Arial
			height	16
			style	bold
		}
	}

	trackbar tvol {
		size 120 20
		style no_ticks both
		range 125
		value 100
		page_size 5
		onscrolling A_VOL
	}

	trackbar tpos {
		size 300 20
		resize cx
		style no_ticks both
		range 0
		page_size 15
		onscroll A_SEEK
	}

	tab tabs {
		size 300 20
		resize cx
		onchange A_LIST_CHANGE
	}

	listview vlist {
		size 360 175
		resize cx cy
		style explorer_theme grid_lines multi_select
		double_click A_PLAY
		popup_menu mpopup

		column "#" {
			width 35
			align right
		}
		column $LCArtist {
		}
		column $LCTitle {
			width 200
		}
		column $LCDuration {
			width 50
			align right
		}
		column $LCInfo {
		}
		column $LCDate {
		}
		column $LCAlbum {
		}
		column $LCFilename {
		}
	}

	paned pntop {
		child tvol {
			move x
		}
	}

	statusbar stbar {
		parts -1
	}
}

menu mminfo_file {
	check_item $FIMFKeepDate {
		action A_INFO_KEEPDATE
	}
	item $FIMFWriteTagsToFile {
		action A_INFO_WRITE
	}
}

menu mminfo_addtag {
	item $TAArtist {
		action A_INFO_ADD_ARTIST
	}
	item $TATitle {
		action A_INFO_ADD_TITLE
	}
}

window winfo {
	position	300 100 300 500
	popupfor	wmain
	mainmenu mm {
		item $FIMFile {
			submenu mminfo_file
		}
		item $FIMAddTag {
			submenu mminfo_addtag
		}
	}

	listview vinfo {
		size 100 100
		resize cx cy
		style edit_labels explorer_theme grid_lines

		column $FIName {
		}
		column $FIValue {
		}

		lclick A_INFO_EDIT
	}
}

window wrename {
	title		$RNRenameTitle
	position	300 300 400 100
	popupfor	wmain

	editbox turl {
	}

	button brename {
		text $RNRename
		action A_RENAME_RENAME
	}
}

window wgoto {
	title		$GTGoTo
	position	300 300 100 120
	popupfor	wmain

	editbox etime {
	}

	button bgo {
		text $GTGo
		action A_GOTO
	}
}

window wlistadd {
	title		$LAListAdd
	position	300 300 400 100
	popupfor	wmain

	label lname {
		text $LAName
	}

	editbox turi {
	}

	button badd {
		text $LAAdd
		action A_LISTADD_ADD
	}
}

window wlistfilter {
	title		$LFListFilter
	position	300 300 400 100
	popupfor	wmain
	on_close	A_LISTFILTER_CLOSE

	editbox tfilter {
		onchange A_LISTFILTER_SET
	}
}

window wrecord {
	position	300 100 400 400
	title		$RCRecord
	popupfor	wmain

	label ldev {
		text $RCDevice
	}
	combobox cbdev {
	}

	label ldir {
		text $CVOutDir
	}
	editbox edir {
	}

	label lname {
		text $CVOutName
	}
	editbox ename {
	}

	label lext {
		text $CVOutExt
	}
	combobox cbext {
	}

	label lchan {
		text $RCChannels
	}
	combobox cbchan {
	}

	label l_rate {
		text $RCSampleRate
	}
	editbox e_rate {
	}

	label laacq {
		text $CVAACQ
	}
	editbox eaacq {
	}

	label lvorbisq {
		text $CVVorbisQ
	}
	editbox evorbisq {
	}

	label lopusq {
		text $CVOpusQ
	}
	editbox eopusq {
	}

	label lmp3q {
		text $CVMP3Q
	}
	editbox emp3q {
	}

	label luntil {
		text $RCUntil
	}
	editbox euntil {
	}

	button bstart {
		text $RCStart
		action A_RECORD_START_STOP
	}
}

window wconvert {
	position	300 100 400 450
	title		$CVConvert
	popupfor	wmain

	label ldir {
		text $CVOutDir
	}
	editbox edir {
	}

	label lname {
		text $CVOutName
	}
	editbox ename {
	}

	label lext {
		text $CVOutExt
	}
	combobox cbext {
	}

	button bbrowse {
		text $CVOutChoose
		action A_CONVERT_BROWSE
	}

	label lfrom {
		text $CVFrom
	}
	editbox efrom {
	}

	label luntil {
		text $CVUntil
	}
	editbox euntil {
	}

	label ltags {
		text $CVTags
	}
	editbox etags {
	}

	checkbox cbcopy {
		text $CVCopy
	}

	label laacq {
		text $CVAACQ
	}
	editbox eaacq {
	}

	label lvorbisq {
		text $CVVorbisQ
	}
	editbox evorbisq {
	}

	label lopusq {
		text $CVOpusQ
	}
	editbox eopusq {
	}

	label lmp3q {
		text $CVMP3Q
	}
	editbox emp3q {
	}

	checkbox cbkeepdate {
		text $CVKeepDate
	}

	checkbox cboverwrite {
		text $CVOverwriteFile
	}

	button bstart {
		text $CVStart
		action A_CONVERT_START
	}
}

window wabout {
	title		$ABAbout
	position	300 300 425 175
	popupfor	wmain

	image ico {
		size 128 128
		icon {
			resource 2
			size 128 128
		}
	}

	label labout {
		position 130 15 300 80
	}

	label lurl {
		position 130 100 300 25
		font {
			name	Arial
			height	10
			style	underline
		}
		cursor hand
		color blue
		onclick A_ABOUT_HOMEPAGE
	}
}

window wlog {
	title		$LGLog
	position	300 300 400 200
	popupfor	wmain

	text tlog {
		resize cx cy
		font {
			name "Courier New"
			height 8
		}
	}
}

window wsettings {
	title		$STSettings
	position	300 100 600 200
	popupfor	wmain

	checkbox cbdarktheme {
		size 300 20
		text $STDarkTheme
	}

	label ldev {
		text $STPlayDev
	}
	combobox cbdev {
	}

	label lseek_by {
		text $STSeekBy
	}
	editbox eseek_by {
	}

	label lleap_by {
		text $STLeapBy
	}
	editbox eleap_by {
	}

	label lauto_skip {
		text $STAutoSkip
	}
	editbox eauto_skip {
	}

	checkbox cbrg_norm {
		text $STRGNorm
	}
	checkbox cbauto_norm {
		text $STAutoNorm
	}

	checkbox cbeqlz {
		text $STEQ
	}
	editbox eeqlz {
	}
}
