parts/bookmarks/bookmarks_config.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Jens Dagerbo * 00003 * jens.dagerbo@swipnet.se * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef BOOKMARKS_CONFIG_H 00013 #define BOOKMARKS_CONFIG_H 00014 00018 class BookmarksConfig 00019 { 00020 00021 public: 00022 00023 enum CodeLineType { Never = 0, Token, Always }; 00024 00025 BookmarksConfig(); 00026 ~BookmarksConfig(); 00027 00028 bool toolTip(); 00029 void setToolTip( bool ); 00030 00031 CodeLineType codeline(); 00032 void setCodeline( CodeLineType ); 00033 00034 unsigned int context(); 00035 void setContext( unsigned int ); 00036 00037 QString token(); 00038 void setToken( QString const & ); 00039 00040 void readConfig(); 00041 void writeConfig(); 00042 00043 private: 00044 bool _tooltip; 00045 CodeLineType _codeline; 00046 unsigned int _context; 00047 QString _token; 00048 00049 }; 00050 00051 #endif 00052 00053 // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;