File indexing completed on 2024-04-14 05:39:52
0001 /***************************************************************************** 0002 * Copyright 2003 - 2010 Craig Drummond <craig.p.drummond@gmail.com> * 0003 * Copyright 2013 - 2015 Yichao Yu <yyc1992@gmail.com> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU Lesser General Public License as * 0007 * published by the Free Software Foundation; either version 2.1 of the * 0008 * License, or (at your option) version 3, or any later version accepted * 0009 * by the membership of KDE e.V. (or its successor approved by the * 0010 * membership of KDE e.V.), which shall act as a proxy defined in * 0011 * Section 6 of version 3 of the license. * 0012 * * 0013 * This program is distributed in the hope that it will be useful, * 0014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 0016 * Lesser General Public License for more details. * 0017 * * 0018 * You should have received a copy of the GNU Lesser General Public * 0019 * License along with this library. If not, * 0020 * see <http://www.gnu.org/licenses/>. * 0021 *****************************************************************************/ 0022 0023 #ifndef QTC_CONFIG_FILE_H 0024 #define QTC_CONFIG_FILE_H 0025 0026 #include "common.h" 0027 0028 #define MAX_CONFIG_INPUT_LINE_LEN 256 0029 #define QTC_MENU_FILE_PREFIX "menubar-" 0030 #define QTC_STATUS_FILE_PREFIX "statusbar-" 0031 0032 #define qtcMenuBarHidden(A) qtcBarHidden((A), QTC_MENU_FILE_PREFIX) 0033 #define qtcSetMenuBarHidden(A, H) \ 0034 qtcSetBarHidden((A), (H), QTC_MENU_FILE_PREFIX) 0035 #define qtcStatusBarHidden(A) \ 0036 qtcBarHidden((A), QTC_STATUS_FILE_PREFIX) 0037 #define qtcSetStatusBarHidden(A, H) \ 0038 qtcSetBarHidden((A), (H), QTC_STATUS_FILE_PREFIX) 0039 0040 bool qtcBarHidden(const char *app, const char *prefix); 0041 void qtcSetBarHidden(const char *app, bool hidden, const char *prefix); 0042 void qtcLoadBgndImage(QtCImage *img); 0043 0044 void qtcSetRgb(GdkColor *col, const char *str); 0045 void qtcDefaultSettings(Options *opts); 0046 void qtcCheckConfig(Options *opts); 0047 bool qtcReadConfig(const char *file, Options *opts, Options *defOpts); 0048 WindowBorders qtcGetWindowBorderSize(bool force); 0049 0050 #endif