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.
54 lines
1.7 KiB
54 lines
1.7 KiB
package wow.doge.chatto.controller
|
|
|
|
import javafx.fxml.FXML
|
|
import javafx.scene.control.MenuBar
|
|
import javafx.scene.layout.Pane
|
|
import javax.enterprise.event.Observes
|
|
|
|
import com.sfxcode.sapphire.core.controller.ViewController
|
|
import com.sfxcode.sapphire.core.scene.{ContentDidChangeEvent, ContentManager}
|
|
import com.typesafe.scalalogging.LazyLogging
|
|
import wow.doge.chatto.messagebuble.BubbledMDFXNode
|
|
import scalafx.scene.layout.GridPane
|
|
import scalafx.Includes._
|
|
// import wow.doge.chatto.
|
|
|
|
class MainViewController extends ViewController with LazyLogging {
|
|
|
|
@FXML var menuBar: MenuBar = _
|
|
// @FXML
|
|
// var workspacePane: Pane = _
|
|
// @FXML
|
|
// var statusPane: Pane = _
|
|
// @FXML
|
|
// var navigationPane: Pane = _
|
|
|
|
@FXML var loginPane: Pane = _
|
|
|
|
@FXML var chatPane: Pane = _
|
|
|
|
lazy val workspaceController = getController[WorkspaceController]()
|
|
lazy val navigationController = getController[NavigationController]()
|
|
lazy val statusBarController = getBean[StatusBarController]()
|
|
lazy val loginController = getController[LoginController]()
|
|
lazy val chatController = getController[ChatController]()
|
|
|
|
// val bubbleNode = new BubbledMDFXNode("Wow")
|
|
|
|
var workspaceManager: ContentManager = _
|
|
var navigationManager: ContentManager = _
|
|
var statusBarManager: ContentManager = _
|
|
var mainManager: ContentManager = _
|
|
|
|
override def didGainVisibilityFirstTime() {
|
|
// menuBar.setUseSystemMenuBar(true)
|
|
menuBar.setVisible(false)
|
|
|
|
// navigationManager =
|
|
// ContentManager(navigationPane, this, navigationController)
|
|
// statusBarManager = ContentManager(statusPane, this, statusBarController)
|
|
// workspaceManager = ContentManager(workspacePane, this, workspaceController)
|
|
mainManager = ContentManager(loginPane, this, loginController)
|
|
}
|
|
|
|
}
|