]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/C.java
Long-press on lang button shows list.
[Dictionary.git] / src / com / hughes / android / dictionary / C.java
index ce929a1a644fabe52f7c985af66be4f98b98bbec..fa407b4d18fbcddd236be2aa966624bee2b863dd 100644 (file)
@@ -1,14 +1,57 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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 com.hughes.android.dictionary;
 
 public class C {
-  
-  static final String DICTIONARY_CONFIGS = "dictionaryConfigs";
 
-  static final String DICT_INDEX = "dictIndex";
+  static final String DICTIONARY_CONFIGS = "dictionaryConfigs2";
+
+  static final String DICT_FILE = "dictFile";
   static final String INDEX_INDEX = "indexIndex";
   static final String SEARCH_TOKEN = "searchToken";
+  static final String CAN_AUTO_LAUNCH_DICT = "canAutoLaunch";
+
+  public static final String THANKS_FOR_UPDATING_VERSION = "thanksForUpdatingVersion";
+
+  enum Theme {
+    DEFAULT(R.style.Theme_Default, R.style.Theme_Light_TokenRow_Fg,
+        R.drawable.theme_default_token_row_main_bg,
+        R.drawable.theme_default_token_row_other_bg,
+        R.drawable.theme_default_other_lang_bg),
+        
+    LIGHT(R.style.Theme_Light,
+        R.style.Theme_Light_TokenRow_Fg,
+        R.drawable.theme_light_token_row_main_bg,
+        R.drawable.theme_light_token_row_other_bg,
+        R.drawable.theme_light_other_lang_bg);
 
-  public static final String INTRO_MESSAGE_SHOWN = "introMessageShown";
+    private Theme(final int themeId, final int tokenRowFg,
+        final int tokenRowMainBg, final int tokenRowOtherBg,
+        final int otherLangBg) {
+      this.themeId = themeId;
+      this.tokenRowFg = tokenRowFg;
+      this.tokenRowMainBg = tokenRowMainBg;
+      this.tokenRowOtherBg = tokenRowOtherBg;
+      this.otherLangBg = otherLangBg;
+    }
 
+    final int themeId;
+    final int tokenRowFg;
+    final int tokenRowMainBg;
+    final int tokenRowOtherBg;
+    final int otherLangBg;
+  }
 
 }