Skip to content

Commit

Permalink
showing and hiding of toolbar in desktop mode (no command hooked up yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Jun 27, 2011
1 parent 4a51b21 commit 143d562
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ void showApplicationAgreement(String title,
// set current main view for application
void showWorkbenchView(Widget widget);

// toolbar
boolean isToolbarVisible();
void showToolbar(boolean showToolbar);

// application exit states
void showApplicationQuit();
void showApplicationSuicide(String reason);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ public ApplicationWindow(ApplicationHeader applicationHeader,
initWidget(applicationPanel_);
}

public boolean isToolbarVisible()
{
return applicationHeader_.isToolbarVisible();
}

public void showToolbar(boolean showToolbar)
{
applicationHeader_.showToolbar(showToolbar);
updateWorkbenchTopBottom();
}

public void showApplicationAgreement(String title,
String contents,
Operation doNotAcceptOperation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean isToolbarVisible()

public void showToolbar(boolean showToolbar)
{

toolbar_.setVisible(showToolbar);
}

@Handler
Expand Down

0 comments on commit 143d562

Please sign in to comment.