Java程序  |  73行  |  2.62 KB

/*
 * ConnectBot: simple, powerful, open-source SSH client for Android
 * Copyright 2007 Kenny Root, Jeffrey Sharkey
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.connectbot.util;

/**
 */
public class PreferenceConstants {

  public static final String SCROLLBACK = "scrollback";
  public static final String FONTSIZE = "fontsize";
  public static final String KEYMODE = "keymode";
  public static final String ENCODING = "encoding";

  public static final String DELKEY = "delkey";
  public static final String DELKEY_BACKSPACE = "backspace";
  public static final String DELKEY_DEL = "del";

  public static final String ROTATION = "rotation";

  public static final String ROTATION_DEFAULT = "Default";
  public static final String ROTATION_LANDSCAPE = "Force landscape";
  public static final String ROTATION_PORTRAIT = "Force portrait";
  public static final String ROTATION_AUTOMATIC = "Automatic";

  public static final String FULLSCREEN = "fullscreen";

  public static final String KEYMODE_RIGHT = "Use right-side keys";
  public static final String KEYMODE_LEFT = "Use left-side keys";

  public static final String CAMERA = "camera";

  public static final String CAMERA_CTRLA_SPACE = "Ctrl+A then Space";
  public static final String CAMERA_CTRLA = "Ctrl+A";
  public static final String CAMERA_ESC = "Esc";
  public static final String CAMERA_ESC_A = "Esc+A";

  public static final String KEEP_ALIVE = "keepalive";

  public static final String BUMPY_ARROWS = "bumpyarrows";
  public static final String HIDE_KEYBOARD = "hidekeyboard";

  public static final String SORT_BY_COLOR = "sortByColor";

  public static final String BELL = "bell";
  public static final String BELL_VOLUME = "bellVolume";
  public static final String BELL_VIBRATE = "bellVibrate";
  public static final float DEFAULT_BELL_VOLUME = 0.25f;

  public final static int DEFAULT_FG_COLOR = 0xffcccccc;
  public final static int DEFAULT_BG_COLOR = 0xff000000;
  public final static int DEFAULT_SCROLLBACK = 140;
  public final static float DEFAULT_FONT_SIZE = 10;

  public final static String COLOR_FG = "color_fg";
  public final static String COLOR_BG = "color_bg";

}