Click here to Skip to main content
15,893,190 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralNow you are going to get it Pin
CDP18028-Mar-17 23:19
CDP18028-Mar-17 23:19 
GeneralRe: Now you are going to get it Pin
den2k888-Mar-17 23:31
professionalden2k888-Mar-17 23:31 
GeneralRe: Now you are going to get it Pin
CDP18029-Mar-17 0:19
CDP18029-Mar-17 0:19 
GeneralRe: Now you are going to get it Pin
Richard Deeming9-Mar-17 1:26
mveRichard Deeming9-Mar-17 1:26 
GeneralRe: Now you are going to get it Pin
Marc Clifton9-Mar-17 2:12
mvaMarc Clifton9-Mar-17 2:12 
GeneralRe: Now you are going to get it Pin
CDP18029-Mar-17 3:04
CDP18029-Mar-17 3:04 
GeneralRe: Now you are going to get it Pin
Marc Clifton9-Mar-17 3:57
mvaMarc Clifton9-Mar-17 3:57 
GeneralRe: Now you are going to get it Pin
CDP18029-Mar-17 4:42
CDP18029-Mar-17 4:42 
Yes, the workspaces are subdivided and different presenters and views are opened in the separate workspaces.

Something like this: When the program starts, there is only the root workspace and a 'controller' object is started, a kind of 'main' object as starting point. this root controller gets the main workspace.

Let's say we want the main controller to oversee three things:
1) Show some 'Hello user' splash screen or animation.
2) Display a view to log in.
3) Close all this stuff when the login was sucessful.

There are different ways to do this, but this would work:
The root controller subdivides the main workspace into two halves, let's say simply two halves of the root workspace.

Then the main controller opens a new controller that is in charge of the splash screen part and gives it one of the divisions as its own workspace. This splash controller will open a splash presenter and a splash view, which will simply do their stuff in a loop until told to stop.

The root controller will also do the same for the second half of the workspace, only that this controller is in charge of the login part. Meanwhile the root controller will sit back and wait until the login controller reports that login was successful. If it fails or is canceled, the root controller will simply terminate the program.

Meanwhile the login controller will open a login presenter and a login view in its assigned workspace, interact with the user and eventually report the results back to the root controller.

Assuming that the login was successful, the root controller will close both controllers it had open, which in turn close all views and presenters they may still have open. It will also delete its two subdivisions of the workspace, which are no longer needed.

Now it's time to open another controller, this time the main application controller. The root controller will give it its whole workspace, any data the login controller may have passed, start it and then sit and wait until the main application controller wants to end.

This already works very well, but the workspaces still are a little too static. How about giving them some visible parts after all, like handles for resizing?

The window workspaces are alternatives to this subdividing method. They are like separate windows or forms that hover over the rest of the UI. The data structures must reflect that and everything will be fine. They just don't belong at some random location within the tree.
The language is JavaScript. that of Mordor, which I will not utter here

This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.

"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."

If software development were a circus, we would all be the clowns.

GeneralWSO CCC OTD 09-03-17 Pin
LabVIEWstuff8-Mar-17 22:49
LabVIEWstuff8-Mar-17 22:49 
GeneralRe: WSO CCC OTD 09-03-17 Pin
PeejayAdams8-Mar-17 23:10
PeejayAdams8-Mar-17 23:10 
GeneralRe: WSO CCC OTD 09-03-17 - WINNER!!! Pin
LabVIEWstuff8-Mar-17 23:13
LabVIEWstuff8-Mar-17 23:13 
GeneralRe: WSO CCC OTD 09-03-17 - WINNER!!! Pin
OriginalGriff8-Mar-17 23:23
mveOriginalGriff8-Mar-17 23:23 
GeneralRe: WSO CCC OTD 09-03-17 - WINNER!!! Pin
PeejayAdams8-Mar-17 23:50
PeejayAdams8-Mar-17 23:50 
GeneralRe: WSO CCC OTD 09-03-17 Pin
Duncan Edwards Jones9-Mar-17 0:37
professionalDuncan Edwards Jones9-Mar-17 0:37 
GeneralRe: WSO CCC OTD 09-03-17 Pin
PeejayAdams9-Mar-17 0:52
PeejayAdams9-Mar-17 0:52 
GeneralRe: WSO CCC OTD 09-03-17 Pin
Duncan Edwards Jones9-Mar-17 2:43
professionalDuncan Edwards Jones9-Mar-17 2:43 
GeneralRe: WSO CCC OTD 09-03-17 Pin
PeejayAdams9-Mar-17 4:07
PeejayAdams9-Mar-17 4:07 
QuestionDo Mac Users Never Use Mechanical Keyboards? Pin
Robert Vandenberg Huang8-Mar-17 21:32
professionalRobert Vandenberg Huang8-Mar-17 21:32 
AnswerRe: Do Mac Users Never Use Mechanical Keyboards? Pin
Richard MacCutchan8-Mar-17 21:38
mveRichard MacCutchan8-Mar-17 21:38 
GeneralRe: Do Mac Users Never Use Mechanical Keyboards? PinPopular
CDP18028-Mar-17 22:15
CDP18028-Mar-17 22:15 
GeneralRe: Do Mac Users Never Use Mechanical Keyboards? Pin
den2k888-Mar-17 22:28
professionalden2k888-Mar-17 22:28 
AnswerRe: Do Mac Users Never Use Mechanical Keyboards? Pin
KarstenK8-Mar-17 22:53
mveKarstenK8-Mar-17 22:53 
QuestionShould I upgrade my GPU? Pin
DaveAuld8-Mar-17 18:30
professionalDaveAuld8-Mar-17 18:30 
AnswerRe: Should I upgrade my GPU? Pin
HobbyProggy8-Mar-17 19:24
professionalHobbyProggy8-Mar-17 19:24 
GeneralRe: Should I upgrade my GPU? Pin
DaveAuld8-Mar-17 19:29
professionalDaveAuld8-Mar-17 19:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.