Replace Q_SIGNALS and Q_SLOTS

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/39/head
Michele Calgaro 10 months ago
parent a120985048
commit 8c249c286e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -16,7 +16,7 @@ The cvs DCOP service consists of the following three parts:
3. CvsJob - This class represents a cvs job. You can execute and cancel it,
and you can retrieve the output of the cvs client by either
connecting to the proper DCOP Q_SIGNALS or by using the output()
connecting to the proper DCOP signals or by using the output()
method. There are two types of jobs. First the non-concurrent
job which has to run alone, like cvs update or import. Second
the jobs which can run concurrently like cvs log or annotate.
@ -45,7 +45,7 @@ How-to use this service in C++ applications:
// call "cvs log" for cervisiapart.h
DCOPRef job = cvsService.log("cervisiapart.h");
// connect to Q_SIGNALS to get output
// connect to signals to get output
connectDCOPSignal(job.app(), job.obj(), "jobExited(bool, int)", [MY SLOT]);
connectDCOPSignal(job.app(), job.obj(), "receivedStdout(TQString)",
[MY SLOT]);

@ -113,12 +113,12 @@
<includes>
<include location="local" impldecl="in implementation">validateprogresswidget.ui.h</include>
</includes>
<Q_SIGNALS>
<signals>
<signal>setValidationProgressBar(int)</signal>
</Q_SIGNALS>
<Q_SLOTS>
</signals>
<slots>
<slot>setupFileProgressBar( TQString text, int maxvalue )</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kprogress.h</include>

@ -242,10 +242,10 @@
<includes>
<include location="local" impldecl="in implementation">tdelisteditor.ui.h</include>
</includes>
<Q_SIGNALS>
<signals>
<signal>itemsChanged()</signal>
</Q_SIGNALS>
<Q_SLOTS>
</signals>
<slots>
<slot>addToList()</slot>
<slot>downInList()</slot>
<slot>removeFromList()</slot>
@ -256,6 +256,6 @@
<slot access="protected">editChanged( const TQString &amp; s )</slot>
<slot>setTitle( const TQString &amp; s )</slot>
<slot returnType="TQStringList">list()</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -342,9 +342,9 @@ activated, you will still see a message in the statusbar.
<include location="global" impldecl="in implementation">kcolorbutton.h</include>
<include location="local" impldecl="in implementation">editorpreferences.ui.h</include>
</includes>
<Q_SLOTS>
<slots>
<slot specifier="non virtual">ledWarning( bool show )</slot>
<slot specifier="non virtual">toggleOther( bool other )</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -57,8 +57,8 @@
<include location="local" impldecl="in implementation">fontpreferences.ui.h</include>
<include location="global" impldecl="in implementation">tdefontdialog.h</include>
</includes>
<Q_SLOTS>
<slots>
<slot access="private">showOnlyFixedFonts( bool on )</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -10,7 +10,7 @@ The diffmodel is comparable to a document and the view part is comparable
to the view and the komparemodellist is comparable to a documentmanager.
The navtree can be viewed as a document view manager.
The model is fully separated from the view and all communication goes
through Q_SIGNALS and Q_SLOTS. The view gets a model that contains all differences
through signals and slots. The view gets a model that contains all differences
for the compared files A and B. The view gets this model from the modellist,
the central entity in the part.

@ -407,7 +407,7 @@ msgid ""
"-&gt; int penWidth()\n"
"-&gt; { return pen.width(); }\n"
"\n"
" public Q_SLOTS:\n"
" public slots:\n"
" void updateAllViews(KScribbleView *sender);\n"
" \n"
" protected:\n"
@ -429,7 +429,7 @@ msgstr ""
" \n"
"-&gt; int penWidth()\n"
"-&gt; { return pen.width(); }\n"
" public Q_SLOTS:\n"
" public slots:\n"
" void updateAllViews(KScribbleView *sender);\n"
" \n"
" protected:\n"

@ -221,7 +221,7 @@ Send ppp
-&gt; int penWidth()
-&gt; { return pen.width(); }
public Q_SLOTS:
public slots:
void updateAllViews(KScribbleView *sender);
protected:

@ -4,5 +4,5 @@ local progs
progs=(`ps x | grep tdeinit: | grep -v Running | grep -v grep | sed 's,.*tdeinit: ,,' | sed 's, .*,,'`)
_alternative \
'Q_SIGNALS:: _Q_SIGNALS -p' \
'signals:: _signals -p' \
'compadd $progs'

@ -98,7 +98,7 @@ With arg, to it arg times."
indent-tabs-mode nil
fume-auto-rescan-buffer-p nil
c-basic-offset 4
c-access-key "\\<\\(Q_SIGNALS\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+Q_SLOTS\\)?\\)\\>:"
c-access-key "\\<\\(signals\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+slots\\)?\\)\\>:"
c-hanging-comment-ender-p nil
c-offsets-alist (append '((case-label . 0)
(access-label . -)
@ -758,7 +758,7 @@ With arg, to it arg times."
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
;; agulbrahack 2
(and (looking-at "Q_SLOTS:")
(and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-access-key)))
(c-backward-sexp 1)

@ -151,10 +151,10 @@ With arg, do it arg times."
(define-key c++-mode-map "\ef" 'c-forward-into-nomenclature)
(define-key c++-mode-map "\ed" 'agulbra-delete-into-nomenclature)
(define-key c++-mode-map "\eb" 'c-backward-into-nomenclature)
;; fontify "public|protected|private Q_SLOTS" with one and the same face :)
;; fontify "public|protected|private slots" with one and the same face :)
;; NOTE: write face-at-point function to fontify those just like other
;; access specifiers
(font-lock-add-keywords nil '(("\\<\\(\\(public\\|protected\\|private\\) Q_SLOTS\\)\\>"
(font-lock-add-keywords nil '(("\\<\\(\\(public\\|protected\\|private\\) slots\\)\\>"
. font-lock-reference-face)))
;; Add (set magic-keys-mode nil) to your .emacs (before loading this file)
;; to disable the magic keys in C++ mode.
@ -866,7 +866,7 @@ This function does not do any hidden buffer changes."
(not (bobp))
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
(and (looking-at "Q_SLOTS:")
(and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-opt-access-key)))
(c-backward-sexp 1)
@ -2116,7 +2116,7 @@ This function does not do any hidden buffer changes."
(not (bobp))
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
(and (looking-at "Q_SLOTS:")
(and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-opt-access-key)))
(c-backward-sexp 1)
@ -3172,7 +3172,7 @@ This function does not do any hidden buffer changes."
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
;; agulbrahack 2
(and (looking-at "Q_SLOTS:")
(and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-access-key)))
(c-backward-sexp 1)

@ -148,12 +148,12 @@ token and TOKENS have to be a list of functions from buffer."
ret
))
(defmacro kde-label-Q_SIGNALS (pt)
"Returns none-nil if the current access label == \"Q_SIGNALS\""
(defmacro kde-label-signals (pt)
"Returns none-nil if the current access label == \"signals\""
`(save-excursion
(goto-char ,pt)
(if (looking-at ":")
(re-search-backward "Q_SIGNALS" (point-at-bol) t)
(re-search-backward "signals" (point-at-bol) t)
)
))
@ -171,13 +171,13 @@ token and TOKENS have to be a list of functions from buffer."
)
))
(defmacro kde-label-Q_SLOTS (pt)
"Return none-nil if at PT there's Q_SLOTS access specifier."
(defmacro kde-label-slots (pt)
"Return none-nil if at PT there's slots access specifier."
`(save-excursion
(goto-char ,pt)
(if (looking-at ":")
;; export this regex to a kde-emacs-vars defvar
(re-search-backward "\\(public\\|protected\\|private\\)[ \t]+Q_SLOTS" (point-at-bol) t))
(re-search-backward "\\(public\\|protected\\|private\\)[ \t]+slots" (point-at-bol) t))
))
(defmacro kde-is-constructor (function)
@ -304,7 +304,7 @@ class-token has to be a token representing either a class or a struct."
(stringp cur-token-name))
(set aslot nil
asignal nil)
;;LABEL - unsets both Q_SIGNALS and Q_SLOTS
;;LABEL - unsets both signals and slots
)
((and
(eq cur-token 'variable)
@ -313,8 +313,8 @@ class-token has to be a token representing either a class or a struct."
)
((not (stringp cur-token-name))
(cond
((kde-label-Q_SIGNALS (car (semantic-token-extent elt)))
;;SIGNALS - next prototypes belong to Q_SIGNALS and we don't want to
((kde-label-signals (car (semantic-token-extent elt)))
;;SIGNALS - next prototypes belong to signals and we don't want to
;; expand those
(set asignal t
aslot nil)
@ -324,8 +324,8 @@ class-token has to be a token representing either a class or a struct."
;; so we do ;)
(set namespace (kde-label-namespace (car (semantic-token-extent elt))))
)
((kde-label-Q_SLOTS (car (semantic-token-extent elt)))
;;SLOTS - for now just unset Q_SIGNALS
((kde-label-slots (car (semantic-token-extent elt)))
;;SLOTS - for now just unset signals
(set aslot t
asignal nil)
)

@ -39,7 +39,7 @@
;*---------------------------------------------------------------------*/
(defconst kde-access-labels
"\\<\\(Q_SIGNALS\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+Q_SLOTS\\)?\\)\\>:"
"\\<\\(signals\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+slots\\)?\\)\\>:"
"KDE specific access labels regexp.")
(defconst kde-source-files '("cpp" "cc" "cxx" "CC" "C" "c")

@ -182,9 +182,9 @@
<includes>
<include location="local" impldecl="in implementation">testerwidget.ui.h</include>
</includes>
<Q_SIGNALS>
<signals>
<signal>run()</signal>
</Q_SIGNALS>
</signals>
<functions>
<function access="private" specifier="non virtual">init()</function>
<function returnType="TQListView *">resultList()</function>

@ -528,7 +528,7 @@
<slot>slotSelectAlgorithm(const TQString&amp;)</slot>
</connection>
</connections>
<Q_SLOTS>
<slots>
<slot>slotDoAutolayout()</slot>
<slot>slotSaveSettings()</slot>
<slot>slotReloadSettings()</slot>
@ -543,6 +543,6 @@
<slot>slotSetCenterDiagram(bool b)</slot>
<slot>slotSetShapeSeparation(int i)</slot>
<slot specifier="pure virtual">slotSelectAlgorithm(const TQString&amp;)</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -470,9 +470,9 @@
<slot>browseClicked()</slot>
</connection>
</connections>
<Q_SLOTS>
<slots>
<slot>browseClicked()</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kcombobox.h</include>

@ -521,10 +521,10 @@ is empty</string>
<slot>activeLanguageChanged(int)</slot>
</connection>
</connections>
<Q_SLOTS>
<slots>
<slot access="protected">browseClicked()</slot>
<slot access="protected">activeLanguageChanged(int id)</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">knuminput.h</include>

@ -32,8 +32,8 @@
</property>
</widget>
</widget>
<Q_SLOTS>
<slots>
<slot access="protected">apply()</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -300,10 +300,10 @@ for in the right hand side list</string>
<forwards>
<forward>class UMLClassifier</forward>
</forwards>
<Q_SLOTS>
<slots>
<slot>selectClass()</slot>
<slot access="protected">deselectClass()</slot>
<slot>classGenerated( UMLClassifier * /* c */ )</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -106,8 +106,8 @@
<slot>close()</slot>
</connection>
</connections>
<Q_SLOTS>
<slots>
<slot>changeHighlighting(int)</slot>
</Q_SLOTS>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

Loading…
Cancel
Save