summaryrefslogtreecommitdiffstats
path: root/MainPanel.h
Commit message (Collapse)AuthorAgeFilesLines
* Relocate include of config.h from header to source modeuleBenny Baumann2023-12-261-2/+0
|
* Update includes based on IWYUBenny Baumann2023-12-261-1/+1
|
* Support dynamic screens with 'top-most' entities beyond processesSohaib Mohamed2023-08-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | This implements our concept of 'dynamic screens' in htop, with a first use-case of pcp-htop displaying things like top-filesystem and top-cgroups under new screen tabs. However the idea is more general than use in pcp-htop and we've paved the way here for us to collectively build mroe general tabular screens in core htop, as well. From the pcp-htop side of things, dynamic screens are configured using text-based configuration files that define the mapping for PCP metrics to columns (and metric instances to rows). Metrics are defined either directly (via metric names) or indirectly via PCP derived metric specifications. Value scaling and the units displayed is automatic based on PCP metric units and data types. This commit represents a collaborative effort of several months, primarily between myself, Nathan and BenBE. Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com> Signed-off-by: Nathan Scott <nathans@redhat.com>
* Introduce Row and Table classes for screens beyond top-processesNathan Scott2023-08-301-5/+5
| | | | | | | | | This commit refactors the Process and ProcessList structures such they each have a new parent - Row and Table, respectively. These new classes handle screen updates relating to anything that could be represented in tabular format, e.g. cgroups, filesystems, etc, without us having to reimplement the display logic repeatedly for each new entity.
* Improve MainPanel Label on active inc filter (Filter <-> FILTER)Daniel Lange2022-03-251-1/+2
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Make MainPanel_pidSearch a static functionChristian Göttsche2021-04-211-2/+0
| | | | Not used elsewhere.
* Avoid function cast by refactoring callback prototypeChristian Göttsche2021-01-061-2/+0
|
* Spacing around operatorsBenny Baumann2020-11-021-1/+1
|
* XUtils string related updatesChristian Göttsche2020-10-191-0/+2
| | | | | | | | | | - allow count out-parameter of String_split() to be NULL - introduce xStrndup() - do not allow NULL pointers passed to String_eq() it is not used in any code - implement String_startsWith(), String_contains_i() and String_eq() as inline header functions - adjust several conversion issues
* Make all required includes explicitBenny Baumann2020-10-181-0/+6
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Use strict function prototypesChristian Göttsche2020-09-181-1/+1
| | | | int foo(); declares a function taking any number of arguments.
* Remove some unused #includesHugo Musso Gualandi2020-09-121-2/+2
| | | | As suggested by cppclean.
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-1/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Remove superfluous 'extern's from function declarations.Zev Weiss2020-09-031-8/+8
| | | | | | | | Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
* Axe automated header generation.Zev Weiss2020-09-031-2/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Resolve compiler warnings and errors relating to the Arg unionNathan Scott2020-08-201-5/+1
| | | | | | | | | | | | Promote the Arg union to a core data type in Object.c such that it is visible everywhere (many source files need it), and correct declarations of several functions that use it. The Process_sendSignal function is also corrected to have the expected return type (bool, not void) - an error being masked by ignoring this not-quite-harmless warning. I've also added error checking to the kill(2) call here, which was previously overlooked / missing (?).
* Re-generate all headers with latest scripts/MakeHeader.pyNathan Scott2020-08-181-8/+8
| | | | Sync-up missing extern declarations for many functions.
* Replace size_t with int/void* unionHisham Muhammad2018-02-181-2/+7
| | | | | | | | I was occasionally passing negative values to size_t. Plus, this better reflects the intent of the variant argument. Reported by Coverity: https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500
* Make sure a pointer fits in the argument!Hisham2016-05-251-1/+1
|
* incremental search and filter reintegrated!Hisham Muhammad2015-03-231-1/+2
|
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-2/+2
|
* Working on integration of IncSet in new branch.Hisham Muhammad2015-03-221-0/+1
|
* Get FreeBSD tree to compile again with latest changes.Hisham Muhammad2015-03-161-0/+45

© 2014-2024 Faster IT GmbH | imprint | privacy policy