umbrello API Documentation

optionstate.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2002-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
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 //public structs
00032 struct GeneralState {
00033     bool undo;
00034     bool tabdiagrams;
00035     bool newcodegen;
00036     bool angularlines;
00037     bool autosave;
00038     int time;        //old autosave time, kept for compatibility
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 }  // namespace Settings
00080 
00081 #endif
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:58 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003