optionstate.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef OPTIONSTATE_H
00013 #define OPTIONSTATE_H
00014
00015
00016 #include "umlnamespace.h"
00017 #include "codeviewerstate.h"
00018
00019 namespace Settings {
00020
00021 enum Page
00022 {
00023 page_general = 0,
00024 page_font,
00025 page_UI,
00026 page_class,
00027 page_codegen,
00028 page_codeview
00029 };
00030
00031
00032 struct GeneralState {
00033 bool undo;
00034 bool tabdiagrams;
00035 bool newcodegen;
00036 bool angularlines;
00037 bool autosave;
00038 int time;
00039 int autosavetime;
00040 QString autosavesuffix;
00041 bool logo;
00042 bool tip;
00043 bool loadlast;
00044 Uml::Diagram_Type diagram;
00045 QString lastFile;
00046 };
00047
00048 struct UIState {
00049 bool useFillColor;
00050 QColor fillColor;
00051 QColor lineColor;
00052 uint lineWidth;
00053 QFont font;
00054 };
00055
00056 struct ClassState {
00057 bool showVisibility;
00058 bool showAtts;
00059 bool showOps;
00060 bool showStereoType;
00061 bool showAttSig;
00062 bool showOpSig;
00063 bool showPackage;
00064 Uml::Visibility defaultAttributeScope;
00065 Uml::Visibility defaultOperationScope;
00066 };
00067
00068 struct OptionState {
00069 GeneralState generalState;
00070 UIState uiState;
00071 ClassState classState;
00072 CodeViewerState codeViewerState;
00073 };
00074
00075
00076 OptionState& getOptionState();
00077 void setOptionState(const OptionState& optstate);
00078
00079 }
00080
00081 #endif
This file is part of the documentation for umbrello Version 3.1.0.