Additional cleanup

pull/1/head
Timothy Pearson 13 years ago
parent 12cadbfed9
commit 2627136bb0

@ -86,14 +86,14 @@
<tr><td>In versions KDE 3.2.0 and above only</td></tr> <tr><td>In versions KDE 3.2.0 and above only</td></tr>
<tr><td><i>static</i></td></tr> <tr><td><i>static</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>staticTQString</b> (str) <li><b>staticQString</b> (str)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TQString)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TQString)</i></td></tr>
<tr><td><i>static</i></td></tr> <tr><td><i>static</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>str</td><td>char</td><td></td></tr> <tr><td>str</td><td>char</td><td></td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>staticTQString</b> (str) <li><b>staticQString</b> (str)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TQString)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TQString)</i></td></tr>
<tr><td><i>static</i></td></tr> <tr><td><i>static</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>

@ -36,9 +36,9 @@
</table> </table>
<h3>enums</h3><ul> <h3>enums</h3><ul>
<li><b>(anonymous)</b> = {MOD_FLAG_COUNT <li><b>(anonymous)</b> = {MOD_FLAG_COUNT
}<li><b>(anonymous)</b> = {TQtWIN }<li><b>(anonymous)</b> = {QtWIN
}<li><b>(anonymous)</b> = {TQtWIN }<li><b>(anonymous)</b> = {QtWIN
}<li><b>(anonymous)</b> = {TQtWIN }<li><b>(anonymous)</b> = {QtWIN
}<li><b>ModFlag</b> = {SHIFT, CTRL, ALT, WIN }<li><b>ModFlag</b> = {SHIFT, CTRL, ALT, WIN
}</ul> }</ul>
<h3>methods</h3><ul> <h3>methods</h3><ul>
@ -137,7 +137,7 @@
<li><b>isValidTQt</b> () <li><b>isValidTQt</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>keyCodeTQt</b> () <li><b>keyCodeQt</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>modFlagLabel</b> (f) <li><b>modFlagLabel</b> (f)

@ -98,7 +98,7 @@
<li><b>key</b> () <li><b>key</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KKey)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KKey)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>keyCodeTQt</b> () <li><b>keyCodeQt</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>keyboardHasWinKey</b> () <li><b>keyboardHasWinKey</b> ()

@ -119,7 +119,7 @@
<tr><td>i</td><td>uint</td><td></td></tr> <tr><td>i</td><td>uint</td><td></td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>keyCodeTQt</b> () <li><b>keyCodeQt</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>null</b> () <li><b>null</b> ()

@ -60,7 +60,7 @@
<li><b>key</b> () <li><b>key</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KKey)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KKey)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>keyCodeTQt</b> () <li><b>keyCodeQt</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>mod</b> () <li><b>mod</b> ()

@ -538,7 +538,7 @@
<tr><td>n</td><td>ulong</td><td></td></tr> <tr><td>n</td><td>ulong</td><td></td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>translateTQt</b> (context, sourceText, message) <li><b>translateQt</b> (context, sourceText, message)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TQString)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TQString)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>context</td><td>char</td><td></td></tr> <tr><td>context</td><td>char</td><td></td></tr>

@ -35,7 +35,7 @@
</tr> </tr>
</table> </table>
<h3>enums</h3><ul> <h3>enums</h3><ul>
<li><b>(anonymous)</b> = {MAX_SETQUENCES <li><b>(anonymous)</b> = {MAX_SEQUENCES
}</ul> }</ul>
<h3>methods</h3><ul> <h3>methods</h3><ul>
<li><b>KShortcut</b> () <li><b>KShortcut</b> ()
@ -172,7 +172,7 @@
<li><b>isNull</b> () <li><b>isNull</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>keyCodeTQt</b> () <li><b>keyCodeQt</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>null</b> () <li><b>null</b> ()

@ -484,7 +484,7 @@
<li><b>toPage</b> () <li><b>toPage</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>translateTQtOptions</b> () <li><b>translateQtOptions</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
</ul> </ul>

@ -54,7 +54,7 @@ namespace KKeyServer
uint code() const { return m_code; } uint code() const { return m_code; }
uint mod() const { return m_mod; } uint mod() const { return m_mod; }
uint sym() const { return m_sym; } uint sym() const { return m_sym; }
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
void setKeycodeTQt( int keyTQt ) void setKeycodeTQt( int keyTQt )
{ m_code = CODE_FOR_QT; m_sym = keyTQt; } { m_code = CODE_FOR_QT; m_sym = keyTQt; }

@ -54,7 +54,7 @@ namespace KKeyServer
uint code() const { return m_code; } uint code() const { return m_code; }
uint mod() const { return m_mod; } uint mod() const { return m_mod; }
uint sym() const { return m_sym; } uint sym() const { return m_sym; }
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
void setKeycodeTQt( int keyTQt ) void setKeycodeTQt( int keyTQt )
{ m_code = CODE_FOR_QT; m_sym = keyTQt; } { m_code = CODE_FOR_QT; m_sym = keyTQt; }

@ -54,7 +54,7 @@ namespace KKeyServer
uint code() const { return m_code; } uint code() const { return m_code; }
uint mod() const { return m_mod; } uint mod() const { return m_mod; }
uint sym() const { return m_sym; } uint sym() const { return m_sym; }
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
void setKeycodeTQt( int keyTQt ) void setKeycodeTQt( int keyTQt )
{ m_code = CODE_FOR_QT; m_sym = keyTQt; } { m_code = CODE_FOR_QT; m_sym = keyTQt; }

@ -169,7 +169,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -169,7 +169,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -169,7 +169,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -169,7 +169,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -169,7 +169,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -169,7 +169,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -167,7 +167,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -167,7 +167,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -167,7 +167,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -167,7 +167,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -167,7 +167,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -167,7 +167,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -167,7 +167,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -189,7 +189,7 @@ namespace KKeyServer
* Returns the qt key code. * Returns the qt key code.
* @return the qt key code * @return the qt key code
*/ */
int keyCodeTQt() const { return (int) m_sym; } int keyCodeQt() const { return (int) m_sym; }
/** /**
* Sets the qt key code. * Sets the qt key code.

@ -43,8 +43,8 @@ public:
static KIconLoader* iconLoader (); static KIconLoader* iconLoader ();
static KLocale* locale (); static KLocale* locale ();
static KCharsets* charsets (); static KCharsets* charsets ();
static const TQString& staticTQString (const char*); static const TQString& staticQString (const char*);
static const TQString& staticTQString (const TQString&); static const TQString& staticQString (const TQString&);
static void registerStaticDeleter (KStaticDeleterBase*); static void registerStaticDeleter (KStaticDeleterBase*);
static void unregisterStaticDeleter (KStaticDeleterBase*); static void unregisterStaticDeleter (KStaticDeleterBase*);
static void deleteStaticDeleters (); static void deleteStaticDeleters ();

@ -41,7 +41,7 @@ public:
//ig bool init (const XEvent*); //ig bool init (const XEvent*);
bool init (const KKey&); bool init (const KKey&);
bool init (const KKeyNative&); bool init (const KKeyNative&);
int keyCodeTQt () const; int keyCodeQt () const;
KKey key () const; KKey key () const;
%If ( KDE_3_1_4 - ) %If ( KDE_3_1_4 - )

@ -90,7 +90,7 @@ public:
uint code () const; uint code () const;
uint mod () const; uint mod () const;
uint sym () const; uint sym () const;
int keyCodeTQt () const; int keyCodeQt () const;
void setKeycodeTQt (int); void setKeycodeTQt (int);
int compare (const KKeyServer::Key&) const; int compare (const KKeyServer::Key&) const;

@ -199,7 +199,7 @@ public:
void insertCatalogue (const TQString&); void insertCatalogue (const TQString&);
void removeCatalogue (const TQString&); void removeCatalogue (const TQString&);
void setActiveCatalogue (const TQString&); void setActiveCatalogue (const TQString&);
TQString translateTQt (const char*, const char*, const char*) const; TQString translateQt (const char*, const char*, const char*) const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
TQStringList allLanguagesTwoAlpha () const; TQStringList allLanguagesTwoAlpha () const;

@ -43,7 +43,7 @@ public:
enum enum
{ {
TQtWIN QtWIN
}; };
%End %End
@ -82,7 +82,7 @@ public:
bool operator < (const KKey&) const; bool operator < (const KKey&) const;
%End %End
int keyCodeTQt () const; int keyCodeQt () const;
TQString toString () const; TQString toString () const;
TQString toStringInternal () const; TQString toStringInternal () const;
void simplify (); void simplify ();
@ -103,7 +103,7 @@ public:
enum enum
{ {
TQtWIN QtWIN
}; };
%End %End
@ -115,7 +115,7 @@ public:
enum enum
{ {
TQtWIN QtWIN
}; };
%End %End
@ -165,7 +165,7 @@ public:
%End %End
TQKeySequence qt () const; TQKeySequence qt () const;
int keyCodeTQt () const; int keyCodeQt () const;
TQString toString () const; TQString toString () const;
TQString toStringInternal () const; TQString toStringInternal () const;
static KKeySequence& null (); static KKeySequence& null ();
@ -193,7 +193,7 @@ public:
enum enum
{ {
MAX_SETQUENCES MAX_SEQUENCES
}; };
KShortcut (); KShortcut ();
@ -213,7 +213,7 @@ public:
bool init (const TQString&); bool init (const TQString&);
uint count () const; uint count () const;
const KKeySequence& seq (uint) const; const KKeySequence& seq (uint) const;
int keyCodeTQt () const; int keyCodeQt () const;
bool isNull () const; bool isNull () const;
int compare (const KShortcut&) const; int compare (const KShortcut&) const;

@ -230,7 +230,7 @@ public:
protected: protected:
//ig virtual bool cmd (int, TQPainter*, TQPDevCmdParam*); //ig virtual bool cmd (int, TQPainter*, TQPDevCmdParam*);
virtual int metric (int) const; virtual int metric (int) const;
void translateTQtOptions (); void translateQtOptions ();
void loadSettings (); void loadSettings ();
void saveSettings (); void saveSettings ();
void preparePrinting (); void preparePrinting ();

@ -70,31 +70,31 @@ class MainWin (KMainWindow):
fileMenu = TQPopupMenu (self) fileMenu = TQPopupMenu (self)
# "File" menu items # "File" menu items
fileMenu.insertItem (i18n ("New"), self.slotNew, KStdAccel.openNew ().keyCodeTQt ()) fileMenu.insertItem (i18n ("New"), self.slotNew, KStdAccel.openNew ().keyCodeQt ())
fileMenu.insertItem (i18n ("Open"), self.slotOpen, KStdAccel.open ().keyCodeTQt ()) fileMenu.insertItem (i18n ("Open"), self.slotOpen, KStdAccel.open ().keyCodeQt ())
fileMenu.insertSeparator (); fileMenu.insertSeparator ();
fileMenu.insertItem (i18n ("Save"), self.slotSave, KStdAccel.save ().keyCodeTQt ()) fileMenu.insertItem (i18n ("Save"), self.slotSave, KStdAccel.save ().keyCodeQt ())
fileMenu.insertItem (i18n ("SaveAs"), self.slotSaveAs) fileMenu.insertItem (i18n ("SaveAs"), self.slotSaveAs)
fileMenu.insertSeparator (); fileMenu.insertSeparator ();
fileMenu.insertItem (i18n ("Print"), self.slotPrint, KStdAccel.print_ ().keyCodeTQt ()) fileMenu.insertItem (i18n ("Print"), self.slotPrint, KStdAccel.print_ ().keyCodeQt ())
fileMenu.insertSeparator (); fileMenu.insertSeparator ();
fileMenu.insertItem (i18n ("&Quit"), self.slotQuit, KStdAccel.quit ().keyCodeTQt ()); fileMenu.insertItem (i18n ("&Quit"), self.slotQuit, KStdAccel.quit ().keyCodeQt ());
self.menuBar ().insertItem (i18n ("&File"), fileMenu) self.menuBar ().insertItem (i18n ("&File"), fileMenu)
editMenu = TQPopupMenu (self) editMenu = TQPopupMenu (self)
# "Edit" menu items # "Edit" menu items
editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ().keyCodeTQt ()) editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ().keyCodeQt ())
editMenu.insertItem (i18n ("Redo"), self.slotRedo, KStdAccel.redo ().keyCodeTQt ()) editMenu.insertItem (i18n ("Redo"), self.slotRedo, KStdAccel.redo ().keyCodeQt ())
editMenu.insertSeparator (); editMenu.insertSeparator ();
editMenu.insertItem (i18n ("Cut"), self.slotCut, KStdAccel.cut ().keyCodeTQt ()) editMenu.insertItem (i18n ("Cut"), self.slotCut, KStdAccel.cut ().keyCodeQt ())
editMenu.insertItem (i18n ("Copy"), self.slotCopy, KStdAccel.copy ().keyCodeTQt ()) editMenu.insertItem (i18n ("Copy"), self.slotCopy, KStdAccel.copy ().keyCodeQt ())
editMenu.insertItem (i18n ("Paste"), self.slotPaste, KStdAccel.paste ().keyCodeTQt ()) editMenu.insertItem (i18n ("Paste"), self.slotPaste, KStdAccel.paste ().keyCodeQt ())
editMenu.insertSeparator (); editMenu.insertSeparator ();
editMenu.insertItem (i18n ("Find"), self.slotFind, KStdAccel.find ().keyCodeTQt ()) editMenu.insertItem (i18n ("Find"), self.slotFind, KStdAccel.find ().keyCodeQt ())
editMenu.insertItem (i18n ("Find Next"), self.slotFindNext, KStdAccel.findNext ().keyCodeTQt ()) editMenu.insertItem (i18n ("Find Next"), self.slotFindNext, KStdAccel.findNext ().keyCodeQt ())
editMenu.insertItem (i18n ("Replace"), self.slotReplace, KStdAccel.replace ().keyCodeTQt ()) editMenu.insertItem (i18n ("Replace"), self.slotReplace, KStdAccel.replace ().keyCodeQt ())
self.menuBar ().insertItem (i18n ("&Edit"), editMenu) self.menuBar ().insertItem (i18n ("&Edit"), editMenu)

Loading…
Cancel
Save