This site displays the README of the majewsky-misc Git repository.
 

Hello World!

export AUTHOR="Stefan Majewsky <majewsky@gmx.net>"

This repo contains a broad collection of smaller code pieces which I've acquired over the course of my life. Little programs to solve little problems, or small generic classes which might be useful elsewhere; everything's here, and everything is available under the very liberal MIT license for your pleasure. Read on for what to find in this repo.

Order

The major grouping is "by programming language and framework". That means that C++ programs are separate from Python programs, and e. g. C++ programs are also sorted by which major framework is used (e.g. Qt or STL-only).

After this first grouping level, there is no specific order anymore. Some stuff might be ordered by topic if the `ls -l` output gets too messy, but no order is implied.

Commit policy

Patches are (of course) allowed and welcome. Please use the means provided by GitHub to send push requests to me. Please bear with me if I do not reply instantaneously, managing this repository does not have very high priority for me.

Content list

Name of project or class Description Location Build system
Requirements
Utility classes
Utils::ModelListModel This model lists a bunch of other models, as well as their contents. The sub models are limited to a flat shape (i.e., trees cannot be listed). cpp-qt/modellistmodel QMake
Qt 4
QRangeSelector Similar to a slider, this widget allows to select both values and ranges from a given range. The widget allows for arbitrary contents to be painted inside its frame. cpp-qt/rangeselector QMake
Qt 4
Utils::SelectionDialog If you want the user to select some items from a model, this class relieves you from the need to create a separate KDialog subclass. cpp-qt/selectiondialog.{h,cpp} CMake1
kdelibs 4
Utils::StaticVector Nearly the same as QVector, but it does not automatically resize or reallocate its data. This is useful for passing data pointers to C libraries. cpp-qt/staticvector.h N.A.
Qt 4

The fineprint:

  1. Utils::SelectionDialog is designed to be integrated in a build system that uses automoc4. In most cases, this will be CMake with the KDE 4 macro library for CMake.