[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Design of an application, HELP!
From: Pupeno <pupeno () pupeno ! com>
Date: 2004-05-31 19:21:11
Message-ID: 200405311621.17549.pupeno () pupeno ! com
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm developing an application to do graphically, what tail -f does on the
console. For those of you that doesn't know what tail -f does, it shows the
last N lines of a text file (plain tail) and then keeps waiting for lines to
be appended and when they appear, it shows them immediatly on the screen.
I'm doing the same as graphic application, except that I want to acomplish a
bit more:
1) Design a library that others can use in their KDE application.
2) Create a KDE application (the initial prototype is working), a Konqueror
KPart and a KDevelop KPart around that library.
Now, my last goal is to be able to open more than one file and show it mixed
in the screen (with the file name as prefix, for instance), do some filtering
(avoiding lines containing this or not containing that... of course, regular
expressions), do some highlighting (highlight this or that to bold or italics
or color, or highlight a line containing this or that to bold or italics or
color).
I also want to be able to save and open profiles, a profile will be a set of
files with a set of filters and a set of highlights, so, you can have your
last wroking file watch just opening the saved profile.
Now, I'm not sure in how many separate components I have to break my system to
make it easily extensible.
Currently, it has a class KFileWatcher which is a QWidget that also handles
all the backends.
Should I separate it in a backend and a front end... KFileWatcher and
KFileWatcherView ? where should the filtering and the highlighting go ? what
about multiple files ?
Maybe KFileWatcher (backend) should accept setting more than one file to
watch, setting filters per file or globally and setting highlightings per
file or globally and then, also, saving and opening those profile from HD or
at least, saving and opening those profiles to QStrings (XML or whatever).
What do you think ?
Thanks.
- --
Pupeno: pupeno@pupeno.com - http://www.pupeno.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAu4WrfW48a9PWGkURAoEOAJ9b+xLEbWtr+JVpLCcb/95BgylStgCcDVJk
YKdDQWdYtLKloY5yzhPkgEQ=
=eqto
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic