Split Widgets into seperate files / modules
This will hopefully make them easier to maintain in the long term. The main polycore config all the examples and tests have been updated although the test suite isn't rendering for me. For now the split is as follows, but open to changes and suggestions:
- widget_core * Widget * Rows * Columns * Filler * Frame
- widget_cpu
- Cpu
- CpuRound * CpuFrequencies
- widget_drive * Drive
- widget_gpu
- Gpu
- GpuTop
- widget_graph - This could have a better name * Bar * Graph * LED
- widget_memory
- MemoryBar
- MemoryGrid
- widget_network * Network
- widget_text
- Text
- StaticText * TextLine
This should probably be accepted after https://github.com/philer/polycore/pull/14 as due to the file add remove etc its already been included.
Nice, I think the splits make sense. I don't like splitting files like this because it completely obscures the git history (I frequently backtrack to understand what I was doing in the past). But I guess by now that file has just gotten way to long.
widget_graph - This could have a better name * Bar * Graph * LED
I agree. How about indicator.lua?
indicator.lua sounds like good suggestion, i'll add it to tomorrows list.
Changes made, I also included the updates to https://github.com/philer/polycore/pull/14 so they don't get lost.