|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hipipal.texteditor.common.Settings
public class Settings
Field Summary | |
---|---|
static boolean |
AUTO_SAVE_OVERWRITE
|
static boolean |
BACK_BTN_AS_UNDO
Use back button as undo |
static int |
COLOR
color setting |
static int |
DEFAULT_END_OF_LINE
Default end of line |
static java.lang.String |
ENCODING
Encoding |
static int |
END_OF_LINE
End Of Line style |
static boolean |
FLING_TO_SCROLL
enable fling to scroll |
static boolean |
FORCE_AUTO_SAVE
Let auto save on quit be triggered |
static java.lang.String |
HOME_PAGE_PATH
Home Page Path |
static int |
MAX_RECENT_FILES
Number of recent files to remember |
static boolean |
SEARCHMATCHCASE
only search for matchin case |
static boolean |
SEARCHWRAP
when search reaches the end of a file, search wrap |
static boolean |
SHOW_LINE_NUMBERS
Show the lines numbers |
static int |
TEXT_SIZE
Text size setting |
static boolean |
UNDO
Use Undo instead of quit ? |
static int |
UNDO_MAX_STACK
Undo stack capacity |
static boolean |
USE_HOME_PAGE
Use a Home Page |
static boolean |
WORDWRAP
automatic break line to fit one page |
Constructor Summary | |
---|---|
Settings()
|
Method Summary | |
---|---|
static java.lang.String |
getEndOfLine()
|
static java.io.File |
getFontFile(android.content.Context ctx)
|
static android.graphics.Typeface |
getTypeface(android.content.Context ctx)
|
static void |
saveHomePage(android.content.SharedPreferences settings)
Save the Home page settings |
static void |
updateFromPreferences(android.content.SharedPreferences settings)
Update the settings from the given SharedPreferences |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int MAX_RECENT_FILES
public static boolean SHOW_LINE_NUMBERS
public static boolean WORDWRAP
public static int COLOR
public static boolean SEARCHWRAP
public static boolean SEARCHMATCHCASE
public static int TEXT_SIZE
public static int DEFAULT_END_OF_LINE
public static int END_OF_LINE
public static java.lang.String ENCODING
public static boolean FORCE_AUTO_SAVE
public static boolean AUTO_SAVE_OVERWRITE
public static boolean FLING_TO_SCROLL
public static boolean UNDO
public static int UNDO_MAX_STACK
public static boolean BACK_BTN_AS_UNDO
public static boolean USE_HOME_PAGE
public static java.lang.String HOME_PAGE_PATH
Constructor Detail |
---|
public Settings()
Method Detail |
---|
public static java.lang.String getEndOfLine()
public static void updateFromPreferences(android.content.SharedPreferences settings)
SharedPreferences
settings
- the settings to read frompublic static void saveHomePage(android.content.SharedPreferences settings)
settings
- the settings to write topublic static java.io.File getFontFile(android.content.Context ctx)
public static android.graphics.Typeface getTypeface(android.content.Context ctx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |