tallforasmurf / PPQT

A post-processing tool for PGDP written in Python, PyQt4, and Qt
GNU General Public License v3.0
4 stars 2 forks source link

Add to good/bad words from the edit pane #80

Closed tallforasmurf closed 12 years ago

tallforasmurf commented 12 years ago

Provide a context menu to add a word to the good or bad words list from the edit panel?

tallforasmurf commented 12 years ago

Can't offer choice of good/bad words, only supporting good word add. Can get selection and use QString.split(regex \W+,QString::SkipEmptyParts) to get a list of words. How notify user when more than one? What if no selection or no words selected?

tallforasmurf commented 12 years ago

Discovered that control- or right-click brings up a context menu. Followed example in Qt doc to intercept context menu event and when a single word is the current selection, to add a -> good words menu action to it.