Overview

ViewMode's and ViewModePanel has received a large clean up. The concept of "temporary" view modes has been completely removed.

Compile Time Changes

Changed the loadCustomViewMode()-function to have a Url argument that points to the view mode file to load. Previously, this function would show a pop-up window where the user had to choose the file location. This interactive functionality has been moved into the load() method of ViewModeTreeViewSpacerItem.

Removed: public void loadNewViewMode() {
Old: public ViewMode loadNewCustomViewMode() {
Old: public ViewMode loadCustomViewMode(Window parent=null) {
New: public ViewMode loadCustomViewMode(Url url) {

The following functions where moved from cm/core/visibility/ to cm/core/

public void loadCustomViewModes() {
public Url[] getAllCustomViewModes() {

The following global variable was removed since the entire "temporary" view mode system is removed.

Removed: public symbol->ViewMode temporaryViewModeMap();

class ViewMode

Removed: extend public void clearUndefinedLabel() {

class ViewModesPanel

Many fields and methods have been removed or had their interface changes. Much of the removed functionality is related to the "temporary" view modes concept, which has been entirely removed.

Removed: public StateControlGroup group;
Removed: public str currentMode;
Removed: private ViewMode tempMode : public readable;
Removed: private bool usingCheckbox = false : public readable;
Removed: public bool inPrint;
Removed: public constructor(Window target, function(Control button) bCB, function(Control button) sCB = null, bool print=false) {
Removed: extend public void addTempModesToTree() {
Removed: extend public void setTempMode(ViewMode vm) {
Removed: extend public void eraseTempMode() {

Old: extend public void update(str currentViewMode, bool useCheckbox = false) {
New: extend public void update(ViewMode select=null) {
Old: extend private void updateViewItems(str currentViewMode, bool useCheckbox = false) {
New: extend private void updateViewItems(ViewMode temp=null) {
Old: public void exportViewMode(ViewMode vm) {
New: public void exportViewMode(ViewMode vm, Window parent=null) {