Files
dash-to-panel/panelPositions.js

61 lines
2.3 KiB
JavaScript

/*
* This file is part of the Dash-To-Panel extension for Gnome 3
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
export var SHOW_APPS_BTN = 'showAppsButton';
export var ACTIVITIES_BTN = 'activitiesButton';
export var TASKBAR = 'taskbar';
export var DATE_MENU = 'dateMenu';
export var SYSTEM_MENU = 'systemMenu';
export var LEFT_BOX = 'leftBox';
export var CENTER_BOX = 'centerBox';
export var RIGHT_BOX = 'rightBox';
export var DESKTOP_BTN = 'desktopButton';
export var STACKED_TL = 'stackedTL';
export var STACKED_BR = 'stackedBR';
export var CENTERED = 'centered';
export var CENTERED_MONITOR = 'centerMonitor';
export var TOP = 'TOP';
export var BOTTOM = 'BOTTOM';
export var LEFT = 'LEFT';
export var RIGHT = 'RIGHT';
export var START = 'START';
export var MIDDLE = 'MIDDLE';
export var END = 'END';
export var defaults = [
{ element: SHOW_APPS_BTN, visible: true, position: STACKED_TL },
{ element: ACTIVITIES_BTN, visible: false, position: STACKED_TL },
{ element: LEFT_BOX, visible: true, position: STACKED_TL },
{ element: TASKBAR, visible: true, position: STACKED_TL },
{ element: CENTER_BOX, visible: true, position: STACKED_BR },
{ element: RIGHT_BOX, visible: true, position: STACKED_BR },
{ element: DATE_MENU, visible: true, position: STACKED_BR },
{ element: SYSTEM_MENU, visible: true, position: STACKED_BR },
{ element: DESKTOP_BTN, visible: true, position: STACKED_BR },
];
export var optionDialogFunctions = {};
optionDialogFunctions[SHOW_APPS_BTN] = '_showShowAppsButtonOptions';
optionDialogFunctions[DESKTOP_BTN] = '_showDesktopButtonOptions';
export function checkIfCentered(position) {
return position == CENTERED || position == CENTERED_MONITOR;
}