added shortcut ctrl+e for exporting a texture
This commit is contained in:
parent
36c4805061
commit
b1052fa894
@ -37,8 +37,9 @@ class RootController : Controller() {
|
|||||||
|
|
||||||
private lateinit var con: Connection
|
private lateinit var con: Connection
|
||||||
|
|
||||||
private lateinit var selectedTexture: Texture
|
|
||||||
private var lastExportDir: String = System.getProperty("user.home")
|
private var lastExportDir: String = System.getProperty("user.home")
|
||||||
|
lateinit var selectedTexture: Texture
|
||||||
|
fun isSelectedTextureInitialized() = ::selectedTexture.isInitialized
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* calculate the resolution, get today's date -> upload to server
|
* calculate the resolution, get today's date -> upload to server
|
||||||
|
@ -86,6 +86,10 @@ class MainView : View("TextureSync") {
|
|||||||
shortcut("Ctrl+I") {
|
shortcut("Ctrl+I") {
|
||||||
mvc.btnImportAction()
|
mvc.btnImportAction()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shortcut("Ctrl+E") {
|
||||||
|
mvc.scExport()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -60,6 +60,7 @@ class MainViewController : Controller() {
|
|||||||
folderView.children.clear()
|
folderView.children.clear()
|
||||||
mv.cvSearch.isDisable = true
|
mv.cvSearch.isDisable = true
|
||||||
setPreview3DTexture(Image("icons/TextureSync_Icon_256x256.jpeg")) // reset the 3DPreview to the logo
|
setPreview3DTexture(Image("icons/TextureSync_Icon_256x256.jpeg")) // reset the 3DPreview to the logo
|
||||||
|
// TODO should we clear the selectedTexture?
|
||||||
|
|
||||||
runAsync {
|
runAsync {
|
||||||
rootc.queryElements(tags)
|
rootc.queryElements(tags)
|
||||||
@ -89,4 +90,10 @@ class MainViewController : Controller() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun scExport() {
|
||||||
|
if (rootc.isSelectedTextureInitialized()) {
|
||||||
|
rootc.exportTexture(rootc.selectedTexture)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user