2 * Copyright (c) 2014, Red Hat.
3 * Copyright (c) 2007, Aconex. All Rights Reserved.
4 * Copyright (c) 2006, Ken McDonell. All Rights Reserved.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 #include <pcp/pmapi.h>
24 #include "colorscheme.h"
25 #include "qed_console.h"
26 #include "timecontrol.h"
27 #include "qed_fileiconprovider.h"
33 bool chartDeltaModified
;
35 bool loggerDeltaModified
;
37 bool sampleHistoryModified
;
39 bool visibleHistoryModified
;
42 QColor chartBackground
;
43 QString chartBackgroundName
;
44 bool chartBackgroundModified
;
45 QColor chartHighlight
;
46 QString chartHighlightName
;
47 bool chartHighlightModified
;
49 ColorScheme defaultScheme
;
50 bool defaultSchemeModified
;
51 QList
<ColorScheme
> colorSchemes
;
52 bool colorSchemesModified
;
56 bool initialToolbarModified
;
58 bool nativeToolbarModified
;
60 int toolbarLocationModified
;
61 QStringList toolbarActions
;
62 bool toolbarActionsModified
;
66 bool fontFamilyModified
;
68 bool fontStyleModified
;
70 bool fontSizeModified
;
73 QStringList savedHosts
;
74 bool savedHostsModified
;
77 extern Settings globalSettings
;
78 extern void writeSettings();
79 extern QColor
nextColor(QString
, int *);
85 extern char *outgeometry
;
87 extern QFont
*globalFont
;
89 extern GroupControl
*activeGroup
;
90 extern GroupControl
*liveGroup
;
91 extern GroupControl
*archiveGroup
;
94 extern PmChart
*pmchart
;
97 extern TimeControl
*pmtime
;
99 extern double torange(struct timeval
, int);
100 extern char *timeString(double);
101 extern char *timeHiResString(double);
102 extern void nomem(void);
105 * number of Y pixels to move the time axis up when exporting to
106 * an image or printing
108 #define TIMEAXISFUDGE 0