--===============1846774900== Content-Type: multipart/signed; boundary="nextPart2841363.tX90LiCi0c"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2841363.tX90LiCi0c Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 20 July 2005 18:21, Christoph Cullmann wrote: > On Wednesday 20 July 2005 14:19, Dominik Haumann wrote: > > Hi, > > > > KTextEditor::Document does not provide > > * a signal that informs that the buffer changed > > * a function to ask whether a buffer is modified. > > > > the Kate::Document does provide it (somenow), I suggest to add > > (1) signal KTextEditor::Document::bufferModifiedStateChanged(); and > > (2) bool KTextEditor::Document::isBufferModified() const; > > and adapt Kate::Document to use it. > > > > Just for info: buffer-modified has *nothing* to do with modified-on-hd > > (that is why I call it "bufferModified"). As the KTE::ModifiedInterface > > atm only is for modified-on-hd stuff I think the best place for (1) and > > (2) are directly in the KTE::Document. > > > > Any comments? > > Hmm, we already havea textChanged() signal + we have the isModified out > of KParts::ReadWritePart, shouldn't this be enough? Ah, didn't see the isModified from KParts. textChanged() is emitted everytime the text changes. So if you only want to= =20 watch the modified-state it's a bit overhead, but ok. What if the user=20 saves the file? I'm not able to track the state, am I? - There is no signal= =20 that a file was saved. I assume textChanged() is not emitted if you save a= =20 file... ...or do I oversee something again=3D ;) cu =2D-=20 Dominik --nextPart2841363.tX90LiCi0c Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.15 (GNU/Linux) iD8DBQBC3nzdKaoWlv9k7bwRArVAAJ4/nKPRWnkzrgRaH0rLdd8Lf6VCnwCgj9+z NAqBBEgnwW9PFiW+hHaiJp8= =eAqn -----END PGP SIGNATURE----- --nextPart2841363.tX90LiCi0c-- --===============1846774900== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ Ktexteditor-devel mailing list Ktexteditor-devel@kde.org https://mail.kde.org/mailman/listinfo/ktexteditor-devel --===============1846774900==--