Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

tabconfig.h

Go to the documentation of this file.
00001 /*
00002                =.            This file is part of the OPIE Project
00003              .=l.            Copyright (c)  2002 Robert Griebl <sandman@handhelds.org>
00004            .>+-=
00005  _;:,     .>    :=|.         This file is free software; you can
00006 .> <`_,   >  .   <=          redistribute it and/or modify it under
00007 :`=1 )Y*s>-.--   :           the terms of the GNU General Public
00008 .="- .-=="i,     .._         License as published by the Free Software
00009  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00010      ._= =}       :          or (at your option) any later version.
00011     .%`+i>       _;_.
00012     .i_,=:_.      -<s.       This file is distributed in the hope that
00013      +  .  -:.       =       it will be useful, but WITHOUT ANY WARRANTY;
00014     : ..    .:,     . . .    without even the implied warranty of
00015     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00016   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU General
00017 ..}^=.=       =       ;      Public License for more details.
00018 ++=   -.     .`     .:
00019  :     =  ...= . :.=-        You should have received a copy of the GNU
00020  -.   .:....=;==+<;          General Public License along with this file;
00021   -_. . .   )=.  =           see the file COPYING. If not, write to the
00022     --        :-=`           Free Software Foundation, Inc.,
00023                              59 Temple Place - Suite 330,
00024                              Boston, MA 02111-1307, USA.
00025 
00026 */
00027 #ifndef __TABCONFIG_H__
00028 #define __TABCONFIG_H__
00029 
00030 struct TabConfig {
00031         enum ViewMode {
00032                 Icon,
00033                 List
00034         };
00035         enum BackgroundType {
00036                 Ruled,
00037                 SolidColor,
00038                 Image
00039         };
00040 
00041         ViewMode       m_view;
00042         BackgroundType m_bg_type;
00043         QString         m_last_directory;
00044         QString        m_bg_image;
00045         QString        m_bg_color;
00046     int            m_iconcolumns;
00047         QString        m_text_color;
00048         bool           m_font_use;
00049         QString        m_font_family;
00050         int            m_font_size;
00051         int            m_font_weight;
00052         bool           m_font_italic;
00053         bool           m_changed;
00054 
00055         bool operator == ( const TabConfig &tc )
00056         {
00057                 return ( m_view == tc. m_view ) &&
00058                        ( m_bg_type == tc. m_bg_type ) &&
00059                        ( m_bg_image == tc. m_bg_image ) &&
00060                        ( m_bg_color == tc. m_bg_color ) &&
00061                        ( m_iconcolumns == tc. m_iconcolumns ) &&
00062                        ( m_text_color == tc. m_text_color ) &&
00063                        ( m_font_use == tc. m_font_use ) &&
00064                        ( m_font_use ? (
00065                          ( m_font_family == tc. m_font_family ) &&
00066                          ( m_font_size == tc. m_font_size ) &&
00067                          ( m_font_weight == tc. m_font_weight ) &&
00068                          ( m_font_italic == tc. m_font_italic )
00069                         ) : true );
00070 
00071         }
00072 };
00073 
00074 #endif

Generated on Sat Nov 5 16:15:57 2005 for OPIE by  doxygen 1.4.2