Nikolas Garofil
2f838fe676
change specials back to ll (fixed bug mentioned in previous commit)
2010-04-21 18:03:53 +02:00
Nikolas Garofil
f603fbfd88
change specials back into a normal array until i fix the only-1-line-graph-bug
2010-04-21 14:54:45 +02:00
Nikolas Garofil
08ea4391d4
Deprecated max_specials, made it unlimited by changing the data structure for specials
2010-04-14 16:59:50 +02:00
Nikolas Garofil
b9a7b0e33e
Fix last memleaks in scroll
...
This fix reverts reverts a part of commit 08122354a9
this is necessary because that commit blocks the calling of free_scroll
2010-02-16 15:45:32 +01:00
Brenden Matthews
3e3dd16367
Update modelines and stuff.
2010-01-06 19:45:19 -08:00
Brenden Matthews
7e78f036f0
Use consistent naming for build option macros.
...
Probably have broken some build features with this commit.
2010-01-06 18:39:44 -08:00
Brenden Matthews
620e9876a4
C++ conversions WIP.
...
Currently stuck on an issue with g++ and using '%lli' with printf/scanf.
2010-01-04 19:21:12 -08:00
Brenden Matthews
cf9e498b24
Update copyright notices.
2010-01-01 15:46:17 -08:00
Phil Sutter
de049dcbde
--enable-testing rejects commas at end of enumerator lists
2009-12-17 22:42:47 +01:00
Brenden Matthews
b6331b4eb6
Switch some more bits to C++, more CMake changes.
2009-12-09 20:05:32 -08:00
Phil Sutter
e5d32f4ad0
convert meter type object values from uint8_t to double
2009-12-04 22:17:40 +01:00
Phil Sutter
1e25633fc1
rename specials field "graph_scale" to a generic "scale"
2009-12-04 00:53:11 +01:00
Phil Sutter
82ef68aafa
hook in the scale value for bar and gauge objects
...
This patch already implements complete auto-scaling for bars and gauges,
therefore introducing a flags field in order to signal whether
auto-scaling is enabled (and the scale field contains just the max value
seen so far).
2009-12-04 00:50:13 +01:00
Phil Sutter
95b92d6cff
new_font: convert to common signature
2009-12-01 00:32:32 +01:00
Phil Sutter
d0a2c51f4b
font: convert scan_font to match common signature
2009-11-29 22:21:48 +01:00
Phil Sutter
08122354a9
convert some special printing functions to common signature
...
Also add a little hack to $scroll to omit the need to call new_fg() from
inside print_scroll(). Instead of inserting a new special after printing
the scrolled text, insert a new object after the scroll object when
parsing text objects to handle the color reset.
2009-11-29 22:21:48 +01:00
Nikolas Garofil
fb3c59baec
Fix building with --disable-x11
2009-11-22 23:05:08 +01:00
Phil Sutter
970420106c
fix new_graph parameters
...
One should never print into buffers without knowing their size. Although
new_graph consumes only a single char, this may already be too much.
2009-11-22 21:12:54 +01:00
Nikolas Garofil
6ee76e5c55
Fix compiling with --disable-x11
2009-11-22 14:05:11 +01:00
Phil Sutter
66df73f74a
implement ASCII gauge and enable all gauge objects for use with no X
2009-11-22 02:09:46 +01:00
Phil Sutter
c2eb77c3f0
realise seamless integration of new_bar_in_shell
...
The decision about whether to print ASCII or X11 bar is done from within
specials.c, so all those #ifdef + if () blocks can be dropped. This also
implicitly enables the ASCII bar for some bar printing objects which where
forgotten before.
2009-11-22 02:09:46 +01:00
Phil Sutter
e909cdd4eb
scan_graph: allow giving a "hint" about a good scale value
...
This is more or less a temporary fix to restore the former behaviour. In
the long term objects will define a max value, which will be of use for
all kinds of meters.
2009-11-06 00:10:00 +01:00
Phil Sutter
e08bc8fad7
enum special_types: define nonspecial for completeness
2009-11-03 23:23:23 +01:00
Phil Sutter
f98a360089
drop now unused SIZE_DEFAULTS macro
2009-11-03 23:23:23 +01:00
Phil Sutter
041059f1c2
specials: convert stippled_hr object to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
3458db80aa
specials: convert tab object to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
50e2b5961a
specials: convert gauge objects to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
bbec0db498
specials: convert graph objects to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
22251dca51
specials: introduce dedicated per-object data and merge graph objects
2009-11-03 23:23:23 +01:00
Phil Sutter
e3e77ce75e
move the SIZE_DEFAULTS() macro to where it belongs to
2009-10-04 03:24:04 +02:00
Brenden Matthews
043cf686c6
Revert "Uhh..ansohus"
...
This reverts commit 9827726ae5
.
Or this.
2009-08-07 01:24:24 -06:00
Brenden Matthews
9827726ae5
Uhh..ansohus
2009-08-06 00:54:40 -06:00
Cesare Tirabassi
81c691d15a
add emacs indentation variables to source files in line with current vim settings
2009-07-28 23:44:22 +02:00
Brenden Matthews
670e9a0eb1
Multiline alignment support, some other misc stuff.
...
Added support for X alignment across multi-lined objects (i.e., using
$alignr with $exec). This may be a bit buggy. Disabled OpenMP code
until GCC's implementation stabilizes (it's causing too many problems).
A couple Lua API changes.
2009-07-18 13:46:36 -06:00
Brenden Matthews
52c68c094c
Improved parsing of graph arguments.
...
Removed "log"|"normal" arguments in favour of -l switch.
2009-07-04 21:43:45 -06:00
Nikolas Garofil
bfc791f08b
Let membar work in shell
2009-06-01 12:19:25 +02:00
Nikolas Garofil
c3df719716
Created a function to call bars in shell (not only execbar)
...
TODO use this function in other places
2009-06-01 02:23:47 +02:00
Brenden Matthews
650c39b602
Compilation fixes, fix a segfault on shutdown.
...
There was a missing 'break' in a switch/case statement which caused a
segfault on shutdown when using $if_up.
2009-05-28 21:27:56 -06:00
Brenden Matthews
b0f37a63e8
Let the graphs be bigger.
2009-05-24 23:31:35 -06:00
Brenden Matthews
4ec728fa42
Added fancy new 'temperature gradients' feature.
...
See docs for more details on 'temperature gradients', which can be
turned on with the -t switch on graphs. Also improved parsing of
options with $execgraph and $execigraph, but may cause some breakage.
2009-05-24 15:53:32 -06:00
Nikolas Garofil
dae78fb875
Execbar can now also be used on the shell
2009-05-17 00:37:22 +02:00
Nikolas Garofil
ae1b6c50e6
Remove even more x11-stuff with --disable-x11
2009-05-11 18:37:12 +02:00
Brenden Matthews
38ee788da4
Added default_bar/graph/gauge_size config options (thanks wire64 for the idea)
2009-04-09 16:00:40 -06:00
Brenden Matthews
f05829ad9a
Update copyright stuff, fix conky.conf weirdness.
2009-03-29 22:55:51 -06:00
aner
98c64d8b3e
I added Gagues to monitor variables
...
Signed-off-by: Brenden Matthews <brenden@rty.ca>
2009-03-15 19:36:11 -06:00
Phil Sutter
2c44e6dccf
remove x11 dependency of fonts
...
Instead, we just ignore them. Less errors in output, little less
ifdef's.
2009-02-22 19:04:42 +01:00
Phil Sutter
e28f79a133
split off specials from conky.c
...
As a side effect, font and colour specific stuff got outsourced, too.
This is because the apropriate functions are used by conky.c as well as
specials.c, so they should be kept on their own.
In the long term I hope for positive impact on the X11 integration mess.
(Take e.g. the mass of X11 ifdefs cluttering conky.c.) Though this
commit contains no optimisations in this direction, just plain
outsourcing, to ensure minimised (intended: none) changes to conky's
interface behaviour.
2009-02-22 19:04:33 +01:00