https://github.com/majewsky/majewsky-misc
A broad collection of smaller code pieces which I've acquired over the course of my life.
https://github.com/majewsky/majewsky-misc
Last synced: 7 days ago
JSON representation
A broad collection of smaller code pieces which I've acquired over the course of my life.
- Host: GitHub
- URL: https://github.com/majewsky/majewsky-misc
- Owner: majewsky
- Created: 2009-09-12T20:47:01.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2009-10-10T22:40:27.000Z (over 15 years ago)
- Last Synced: 2025-01-16T20:22:55.654Z (5 months ago)
- Language: C++
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.html
Awesome Lists containing this project
README
Contents of the majewsky-misc repo
Hello World!
export AUTHOR="Stefan Majewsky <[email protected]>"
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:
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.