Das Timetracking-Tool kann die gearbeiteten Zeiten von Gitea auslesen und in eine CSV-Datei verwandeln.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
827 B
41 lines
827 B
// 20 december 2015
|
|
|
|
package ui
|
|
|
|
// #include "ui.h"
|
|
import "C"
|
|
|
|
// TODO
|
|
func MsgBoxError(w *Window, title string, description string) {
|
|
ctitle := C.CString(title)
|
|
defer freestr(ctitle)
|
|
cdescription := C.CString(description)
|
|
defer freestr(cdescription)
|
|
C.uiMsgBoxError(w.w, ctitle, cdescription)
|
|
}
|
|
|
|
func OpenFile(w *Window) string {
|
|
cname := C.uiOpenFile(w.w)
|
|
if cname == nil {
|
|
return ""
|
|
}
|
|
defer C.uiFreeText(cname)
|
|
return C.GoString(cname)
|
|
}
|
|
|
|
func SaveFile(w *Window) string {
|
|
cname := C.uiSaveFile(w.w)
|
|
if cname == nil {
|
|
return ""
|
|
}
|
|
defer C.uiFreeText(cname)
|
|
return C.GoString(cname)
|
|
}
|
|
|
|
func MsgBox(w *Window, title string, description string) {
|
|
ctitle := C.CString(title)
|
|
defer freestr(ctitle)
|
|
cdescription := C.CString(description)
|
|
defer freestr(cdescription)
|
|
C.uiMsgBox(w.w, ctitle, cdescription)
|
|
}
|
|
|