diff options
Diffstat (limited to 'src/option')
26 files changed, 507 insertions, 496 deletions
diff --git a/src/option/base_k3bcddboptiontab.ui b/src/option/base_k3bcddboptiontab.ui index f46e970..cf2257c 100644 --- a/src/option/base_k3bcddboptiontab.ui +++ b/src/option/base_k3bcddboptiontab.ui @@ -1,11 +1,11 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>base_K3bCddbOptionTab</class> <author>Sebastian Trueg</author> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>base_K3bCddbOptionTab</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -26,7 +26,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QTabWidget"> + <widget class="TQTabWidget"> <property name="name"> <cstring>m_mainTabbed</cstring> </property> @@ -38,7 +38,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -49,7 +49,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>m_checkUseLocalCddb</cstring> </property> @@ -57,7 +57,7 @@ <string>Use local CDDB directory</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>m_checkSaveLocalEntries</cstring> </property> @@ -68,7 +68,7 @@ <string>Save entries in local directory (the first directory in the list)</string> </property> </widget> - <widget class="QFrame" row="2" column="0"> + <widget class="TQFrame" row="2" column="0"> <property name="name"> <cstring>m_boxLocalDirectory</cstring> </property> @@ -94,7 +94,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>TextLabel1_4</cstring> </property> @@ -121,7 +121,7 @@ <bool>true</bool> </property> </widget> - <widget class="QToolButton" row="3" column="2"> + <widget class="TQToolButton" row="3" column="2"> <property name="name"> <cstring>m_buttonLocalDirDown</cstring> </property> @@ -135,7 +135,7 @@ <string>Move directory down</string> </property> </widget> - <widget class="QToolButton" row="0" column="2"> + <widget class="TQToolButton" row="0" column="2"> <property name="name"> <cstring>m_buttonAddLocalDir</cstring> </property> @@ -157,7 +157,7 @@ <string></string> </property> </widget> - <widget class="QToolButton" row="1" column="2"> + <widget class="TQToolButton" row="1" column="2"> <property name="name"> <cstring>m_buttonRemoveLocalDir</cstring> </property> @@ -171,7 +171,7 @@ <string>Remove directory</string> </property> </widget> - <widget class="QToolButton" row="2" column="2"> + <widget class="TQToolButton" row="2" column="2"> <property name="name"> <cstring>m_buttonLocalDirUp</cstring> </property> @@ -195,7 +195,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>51</height> @@ -206,7 +206,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -217,7 +217,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QFrame" row="1" column="0"> + <widget class="TQFrame" row="1" column="0"> <property name="name"> <cstring>m_boxCddbServer</cstring> </property> @@ -243,7 +243,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -251,7 +251,7 @@ <string>Server:</string> </property> </widget> - <widget class="QComboBox" row="0" column="1"> + <widget class="TQComboBox" row="0" column="1"> <property name="name"> <cstring>m_comboCddbType</cstring> </property> @@ -328,7 +328,7 @@ <string>Port </string> </property> </widget> - <widget class="QToolButton" row="0" column="4"> + <widget class="TQToolButton" row="0" column="4"> <property name="name"> <cstring>m_buttonAddCddbServer</cstring> </property> @@ -342,7 +342,7 @@ <string>Add server</string> </property> </widget> - <widget class="QToolButton" row="1" column="4"> + <widget class="TQToolButton" row="1" column="4"> <property name="name"> <cstring>m_buttonRemoveCddbServer</cstring> </property> @@ -356,7 +356,7 @@ <string>Remove server</string> </property> </widget> - <widget class="QToolButton" row="2" column="4"> + <widget class="TQToolButton" row="2" column="4"> <property name="name"> <cstring>m_buttonCddbServerUp</cstring> </property> @@ -370,7 +370,7 @@ <string>Move server up</string> </property> </widget> - <widget class="QToolButton" row="3" column="4"> + <widget class="TQToolButton" row="3" column="4"> <property name="name"> <cstring>m_buttonCddbServerDown</cstring> </property> @@ -394,7 +394,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>30</height> @@ -403,7 +403,7 @@ </spacer> </grid> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>m_checkRemoteCddb</cstring> </property> @@ -413,7 +413,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -424,7 +424,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>m_groupCgi</cstring> </property> @@ -460,7 +460,7 @@ <string>~/cddb/cddb.cgi</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>TextLabel3</cstring> </property> @@ -471,7 +471,7 @@ <string>Path:</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>m_checkManualCgiPath</cstring> </property> @@ -491,7 +491,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>31</width> <height>151</height> @@ -551,7 +551,7 @@ <tabstop>m_checkManualCgiPath</tabstop> <tabstop>m_editManualCgiPath</tabstop> </tabstops> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>klistview.h</includehint> <includehint>klistview.h</includehint> diff --git a/src/option/base_k3bmiscoptiontab.ui b/src/option/base_k3bmiscoptiontab.ui index 364e91f..4c20c88 100644 --- a/src/option/base_k3bmiscoptiontab.ui +++ b/src/option/base_k3bmiscoptiontab.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>base_K3bMiscOptionTab</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>base_K3bMiscOptionTab</cstring> </property> @@ -11,7 +11,7 @@ <property name="margin"> <number>0</number> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox1</cstring> </property> @@ -22,7 +22,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>m_checkSaveOnExit</cstring> </property> @@ -33,15 +33,15 @@ <string>Ask to save modified projects on exit</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout2</cstring> + <cstring>tqlayout2</cstring> </property> <hbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -65,7 +65,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox3</cstring> </property> @@ -76,7 +76,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>m_checkSystemConfig</cstring> </property> @@ -90,15 +90,15 @@ <string><p>If this option is checked K3b will check the system configuration for any problems on startup and when the the user changes the settings.</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout1</cstring> + <cstring>tqlayout1</cstring> </property> <hbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -111,7 +111,7 @@ <cstring>m_comboAudioOutputSystem</cstring> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_buttonConfigureAudioOutput</cstring> </property> @@ -123,7 +123,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox2</cstring> </property> @@ -134,7 +134,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>m_checkShowProgressOSD</cstring> </property> @@ -145,7 +145,7 @@ <string><p>If this option is checked K3b will display the progress in an OSD which always stays on top of all other windows.</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>m_checkHideMainWindowWhileWriting</cstring> </property> @@ -159,7 +159,7 @@ <string><p>If this option is checked K3b will hide the main window while displaying the progress dialog.</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>m_checkShowSplash</cstring> </property> @@ -170,7 +170,7 @@ <string>Show the splash screen when K3b starts</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>m_checkKonqiIntegration</cstring> </property> @@ -186,7 +186,7 @@ <p><em>Konqueror integration is not enabled by default to prevent unwanted cluttering of the Konqueror menus.</em></string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>m_checkKeepDialogsOpen</cstring> </property> @@ -200,15 +200,15 @@ <string><p>If this option is checked K3b will not close action dialogs such as the CD Copy dialog after the process has been finished. It will be kept open to start a new process like copying another CD.</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout4</cstring> + <cstring>tqlayout4</cstring> </property> <hbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -241,7 +241,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>31</width> <height>0</height> @@ -273,7 +273,7 @@ <data format="PNG" length="1125">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000042c49444154388db5954f6c14551cc73fefcd7476b65bdaae4bb78bb5502a14d404e4801c88182d1c4c2c693da847400f9c24c68b878684238660e2b1e01f12c19493012ef2478c814412d354a46017a8a564bb6da5bbedccee767776e63d0ffb073751d483bfe49799974c3eeffb7ebf37df9fd05a530b2184040cc0042420aaf9a4d0d554800f045a6b256ae0e1e1e1d6bebebe838ee31c48a7d39b5cd7fd075e251cc7617272f2ded8d8d819cff33e0316819259537aead4a9839d5dd6d1784f91f55b0a94830242088404d304292bef68a89f520802a598fecddaa04f1a876f5c250c7c0a64cdeac686e33807e23d45e6b297c8b877f1831542614550b6599835c83c2a81b6786a75134faf2f1169f12997350881d9021d0903e06de0745d3160a6d3e94dbd5b0a64dcbb94b5831d0e3375ab892b1772dcf9790528543f8dd0d367b36768153b5e31503a0f1aecb004580b44ffac58baae8b1714f0833c7638cc8dab303a320f4822ab4c7a37c69196203de3319d5ce1c4d13c733331dedc67a129a154fd128401ab0616d55a130ac3d42d93d1913940d13fd0c9ee0183685c60da01c5421bd72f7a8c8efccef9afd374267ad93d642365be0636a0d28ec7600941d9e6f23917f0e97f23ce5bef35d19ec863da0ed9059b2be70bec196c66dfa10ec0e49b338f7017258651bf95021035c595429bb0903248fe52a2b5b595dd7b4d945cc2340cdca536be389ee3f67886c5798f773fe8e0dac508c989659277a2180da4ca4ff07821058b8b251445d63d6b13ed1098a6417e39cac85197dbe31962ab9bd9f1f22a226d45366f6d0620fdb08c900d281af6110284b20085b414861d905d88f2e52739ee8cbb8022143259d3dd84691730aa2d52da441a8de0c6958068870022a41e9629ad3473fd3b8fdbe319dadb9b4924da994d2d716c7896fbe35152f78b48245d6b2da4507faf582be8eaf159b721cc837b05ae7debb1f79d08cb8b515edad942a22bc4b1c33eb3d34b1c797f06af90a72d16e2f96d9a74aa11dca8586b222d01af0fb60070f6c402d72f15d97f28c6f6d7027a5f5ce6c3233dc4e2ede496b278be4fff608cee8d3e1add806aeca51094cbb06397c1ecc328e746537c7e3ccdb5cb1136bf60635882d4d41c6ec6836ab37efa214f72208ed9f4d7cdd38ee310280542e38b1c43fb6de26b3672e1ec3cc99bcb246f66a938a3241ab3e91f7c861fbf77710b1e5e49915bae974203ba0e9e9c9cbc373d6d6d305a040a89c2a77f50b27d5782bbbf7acccf28349235dd16cf6dd374f7295e1de8a45c02d37499182b01cc0201a085d61a2144d8b2ac8fb6ed340e77240c4261890e04c250185262546d534a032154b59e0ad394e41c98182bf268ce6721ed9f064e0253356f6da2e24c1f030f783c15fe6da680af8021602bd051532ca9b8521488559f61aa86c29343578fbf0264a94c906c7d3409214c20043457a116ff6de6795578012889ff6b98fe016ea0ce1c6a2573410000000049454e44ae426082</data> </image> </images> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kurlrequester.h</includehint> <includehint>klineedit.h</includehint> diff --git a/src/option/base_k3bpluginoptiontab.ui b/src/option/base_k3bpluginoptiontab.ui index 18321ee..2e7a2dd 100644 --- a/src/option/base_k3bpluginoptiontab.ui +++ b/src/option/base_k3bpluginoptiontab.ui @@ -1,11 +1,11 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>base_K3bPluginOptionTab</class> <author>Sebastian Trueg</author> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -20,7 +20,7 @@ <property name="margin"> <number>0</number> </property> - <widget class="QPushButton" row="2" column="1"> + <widget class="TQPushButton" row="2" column="1"> <property name="name"> <cstring>m_buttonConfigure</cstring> </property> @@ -38,7 +38,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>411</width> <height>21</height> @@ -50,7 +50,7 @@ <cstring>m_viewPlugins</cstring> </property> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -83,7 +83,7 @@ <data format="PNG" length="1125">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000042c49444154388db5954f6c14551cc73fefcd7476b65bdaae4bb78bb5502a14d404e4801c88182d1c4c2c693da847400f9c24c68b878684238660e2b1e01f12c19493012ef2478c814412d354a46017a8a564bb6da5bbedccee767776e63d0ffb073751d483bfe49799974c3eeffb7ebf37df9fd05a530b2184040cc0042420aaf9a4d0d554800f045a6b256ae0e1e1e1d6bebebe838ee31c48a7d39b5cd7fd075e251cc7617272f2ded8d8d819cff33e0316819259537aead4a9839d5dd6d1784f91f55b0a94830242088404d304292bef68a89f520802a598fecddaa04f1a876f5c250c7c0a64cdeac686e33807e23d45e6b297c8b877f1831542614550b6599835c83c2a81b6786a75134faf2f1169f12997350881d9021d0903e06de0745d3160a6d3e94dbd5b0a64dcbb94b5831d0e3375ab892b1772dcf9790528543f8dd0d367b36768153b5e31503a0f1aecb004580b44ffac58baae8b1714f0833c7638cc8dab303a320f4822ab4c7a37c69196203de3319d5ce1c4d13c733331dedc67a129a154fd128401ab0616d55a130ac3d42d93d1913940d13fd0c9ee0183685c60da01c5421bd72f7a8c8efccef9afd374267ad93d642365be0636a0d28ec7600941d9e6f23917f0e97f23ce5bef35d19ec863da0ed9059b2be70bec196c66dfa10ec0e49b338f7017258651bf95021035c595429bb0903248fe52a2b5b595dd7b4d945cc2340cdca536be389ee3f67886c5798f773fe8e0dac508c989659277a2180da4ca4ff07821058b8b251445d63d6b13ed1098a6417e39cac85197dbe31962ab9bd9f1f22a226d45366f6d0620fdb08c900d281af6110284b20085b414861d905d88f2e52739ee8cbb8022143259d3dd84691730aa2d52da441a8de0c6958068870022a41e9629ad3473fd3b8fdbe319dadb9b4924da994d2d716c7896fbe35152f78b48245d6b2da4507faf582be8eaf159b721cc837b05ae7debb1f79d08cb8b515edad942a22bc4b1c33eb3d34b1c797f06af90a72d16e2f96d9a74aa11dca8586b222d01af0fb60070f6c402d72f15d97f28c6f6d7027a5f5ce6c3233dc4e2ede496b278be4fff608cee8d3e1add806aeca51094cbb06397c1ecc328e746537c7e3ccdb5cb1136bf60635882d4d41c6ec6836ab37efa214f72208ed9f4d7cdd38ee310280542e38b1c43fb6de26b3672e1ec3cc99bcb246f66a938a3241ab3e91f7c861fbf77710b1e5e49915bae974203ba0e9e9c9cbc373d6d6d305a040a89c2a77f50b27d5782bbbf7acccf28349235dd16cf6dd374f7295e1de8a45c02d37499182b01cc0201a085d61a2144d8b2ac8fb6ed340e77240c4261890e04c250185262546d534a032154b59e0ad394e41c98182bf268ce6721ed9f064e0253356f6da2e24c1f030f783c15fe6da680af8021602bd051532ca9b8521488559f61aa86c29343578fbf0264a94c906c7d3409214c20043457a116ff6de6795578012889ff6b98fe016ea0ce1c6a2573410000000049454e44ae426082</data> </image> </images> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>k3blistview.h</includehint> </includehints> diff --git a/src/option/base_k3bthemeoptiontab.ui b/src/option/base_k3bthemeoptiontab.ui index 47a48b4..4809f6f 100644 --- a/src/option/base_k3bthemeoptiontab.ui +++ b/src/option/base_k3bthemeoptiontab.ui @@ -1,11 +1,11 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>base_K3bThemeOptionTab</class> <author>Sebastian Trueg</author> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>base_K3bThemeOptionTab</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -20,7 +20,7 @@ <property name="margin"> <number>0</number> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox4</cstring> </property> @@ -85,7 +85,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox5</cstring> </property> @@ -96,9 +96,9 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout1</cstring> + <cstring>tqlayout1</cstring> </property> <hbox> <property name="name"> @@ -107,7 +107,7 @@ <property name="spacing"> <number>0</number> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>m_leftPreviewLabel</cstring> </property> @@ -115,7 +115,7 @@ <string></string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>m_centerPreviewLabel</cstring> </property> @@ -135,11 +135,11 @@ <property name="text"> <string>no Theme selected</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignCenter</set> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>m_rightPreviewLabel</cstring> </property> @@ -151,9 +151,9 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout5</cstring> + <cstring>tqlayout5</cstring> </property> <hbox> <property name="name"> @@ -172,14 +172,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>161</width> <height>2</height> </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_buttonInstallTheme</cstring> </property> @@ -187,7 +187,7 @@ <string>Install New Theme...</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_buttonRemoveTheme</cstring> </property> @@ -201,7 +201,7 @@ </widget> <customwidgets> </customwidgets> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>klistview.h</includehint> </includehints> diff --git a/src/option/k3bburningoptiontab.cpp b/src/option/k3bburningoptiontab.cpp index 21485cb..3238d41 100644 --- a/src/option/k3bburningoptiontab.cpp +++ b/src/option/k3bburningoptiontab.cpp @@ -19,18 +19,18 @@ #include <k3bstdguiitems.h> #include <k3bglobalsettings.h> -#include <qlabel.h> -#include <qcombobox.h> -#include <qcheckbox.h> -#include <qlayout.h> -#include <qgroupbox.h> -#include <qtabwidget.h> -#include <qradiobutton.h> -#include <qvalidator.h> -#include <qbuttongroup.h> -#include <qspinbox.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqlabel.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> +#include <tqlayout.h> +#include <tqgroupbox.h> +#include <tqtabwidget.h> +#include <tqradiobutton.h> +#include <tqvalidator.h> +#include <tqbuttongroup.h> +#include <tqspinbox.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include <knuminput.h> #include <kconfig.h> @@ -39,8 +39,8 @@ #include <klineedit.h> -K3bBurningOptionTab::K3bBurningOptionTab( QWidget* parent, const char* name ) - : QWidget( parent, name ) +K3bBurningOptionTab::K3bBurningOptionTab( TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { setupGui(); } @@ -53,25 +53,25 @@ K3bBurningOptionTab::~K3bBurningOptionTab() void K3bBurningOptionTab::setupGui() { - QGridLayout* groupAdvancedLayout = new QGridLayout( this ); - groupAdvancedLayout->setAlignment( Qt::AlignTop ); + TQGridLayout* groupAdvancedLayout = new TQGridLayout( this ); + groupAdvancedLayout->tqsetAlignment( TQt::AlignTop ); groupAdvancedLayout->setSpacing( KDialog::spacingHint() ); groupAdvancedLayout->setMargin( 0 ); - QGroupBox* groupWritingApp = new QGroupBox( 0, Qt::Vertical, i18n("Burning"), this ); - groupWritingApp->layout()->setMargin( 0 ); - QGridLayout* bufferLayout = new QGridLayout( groupWritingApp->layout() ); + TQGroupBox* groupWritingApp = new TQGroupBox( 0, Qt::Vertical, i18n("Burning"), this ); + groupWritingApp->tqlayout()->setMargin( 0 ); + TQGridLayout* bufferLayout = new TQGridLayout( groupWritingApp->tqlayout() ); bufferLayout->setMargin( KDialog::marginHint() ); bufferLayout->setSpacing( KDialog::spacingHint() ); m_checkBurnfree = K3bStdGuiItems::burnproofCheckbox( groupWritingApp ); - m_checkOverburn = new QCheckBox( i18n("Allow overburning (¬ supported by cdrecord <= 1.10)"), groupWritingApp ); - m_checkForceUnsafeOperations = new QCheckBox( i18n("Force unsafe operations"), groupWritingApp ); - m_checkManualWritingBufferSize = new QCheckBox( i18n("&Manual writing buffer size") + ":", groupWritingApp ); + m_checkOverburn = new TQCheckBox( i18n("Allow overburning (¬ supported by cdrecord <= 1.10)"), groupWritingApp ); + m_checkForceUnsafeOperations = new TQCheckBox( i18n("Force unsafe operations"), groupWritingApp ); + m_checkManualWritingBufferSize = new TQCheckBox( i18n("&Manual writing buffer size") + ":", groupWritingApp ); m_editWritingBufferSize = new KIntNumInput( 4, groupWritingApp ); m_editWritingBufferSize->setSuffix( " " + i18n("MB") ); - m_checkAllowWritingAppSelection = new QCheckBox( i18n("Manual writing application &selection"), groupWritingApp ); + m_checkAllowWritingAppSelection = new TQCheckBox( i18n("Manual writing application &selection"), groupWritingApp ); bufferLayout->addMultiCellWidget( m_checkBurnfree, 0, 0, 0, 2 ); bufferLayout->addMultiCellWidget( m_checkOverburn, 1, 1, 0, 2 ); bufferLayout->addMultiCellWidget( m_checkForceUnsafeOperations, 2, 2, 0, 2 ); @@ -80,32 +80,32 @@ void K3bBurningOptionTab::setupGui() bufferLayout->addMultiCellWidget( m_checkAllowWritingAppSelection, 4, 4, 0, 2 ); bufferLayout->setColStretch( 2, 1 ); - QGroupBox* groupMisc = new QGroupBox( 2, Qt::Vertical, i18n("Miscellaneous"), this ); - m_checkEject = new QCheckBox( i18n("Do not &eject medium after write process"), groupMisc ); - m_checkAutoErasingRewritable = new QCheckBox( i18n("Automatically erase CD-RWs and DVD-RWs"), groupMisc ); + TQGroupBox* groupMisc = new TQGroupBox( 2, Qt::Vertical, i18n("Miscellaneous"), this ); + m_checkEject = new TQCheckBox( i18n("Do not &eject medium after write process"), groupMisc ); + m_checkAutoErasingRewritable = new TQCheckBox( i18n("Automatically erase CD-RWs and DVD-RWs"), groupMisc ); groupAdvancedLayout->addWidget( groupWritingApp, 0, 0 ); groupAdvancedLayout->addWidget( groupMisc, 1, 0 ); groupAdvancedLayout->setRowStretch( 2, 1 ); - connect( m_checkManualWritingBufferSize, SIGNAL(toggled(bool)), - m_editWritingBufferSize, SLOT(setEnabled(bool)) ); - connect( m_checkManualWritingBufferSize, SIGNAL(toggled(bool)), - this, SLOT(slotSetDefaultBufferSizes(bool)) ); + connect( m_checkManualWritingBufferSize, TQT_SIGNAL(toggled(bool)), + m_editWritingBufferSize, TQT_SLOT(setEnabled(bool)) ); + connect( m_checkManualWritingBufferSize, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(slotSetDefaultBufferSizes(bool)) ); m_editWritingBufferSize->setDisabled( true ); // ----------------------------------------------------------------------- - QToolTip::add( m_checkOverburn, i18n("Allow burning more than the official media capacity") ); - QToolTip::add( m_checkAllowWritingAppSelection, i18n("Allow to choose between cdrecord and cdrdao") ); - QToolTip::add( m_checkAutoErasingRewritable, i18n("Automatically erase CD-RWs and DVD-RWs without asking") ); - QToolTip::add( m_checkEject, i18n("Do not eject the burn medium after a completed burn process") ); - QToolTip::add( m_checkForceUnsafeOperations, i18n("Force K3b to continue some operations otherwise deemed as unsafe") ); + TQToolTip::add( m_checkOverburn, i18n("Allow burning more than the official media capacity") ); + TQToolTip::add( m_checkAllowWritingAppSelection, i18n("Allow to choose between cdrecord and cdrdao") ); + TQToolTip::add( m_checkAutoErasingRewritable, i18n("Automatically erase CD-RWs and DVD-RWs without asking") ); + TQToolTip::add( m_checkEject, i18n("Do not eject the burn medium after a completed burn process") ); + TQToolTip::add( m_checkForceUnsafeOperations, i18n("Force K3b to continue some operations otherwise deemed as unsafe") ); - QWhatsThis::add( m_checkAllowWritingAppSelection, i18n("<p>If this option is checked K3b gives " + TQWhatsThis::add( m_checkAllowWritingAppSelection, i18n("<p>If this option is checked K3b gives " "the possibility to choose between cdrecord " "and cdrdao when writing a cd." "<p>This may be useful if one of the programs " @@ -113,7 +113,7 @@ void K3bBurningOptionTab::setupGui() "<p><b>Be aware that K3b does not support both " "programs in all project types.</b>") ); - QWhatsThis::add( m_checkOverburn, i18n("<p>Each medium has an official maximum capacity which is stored in a read-only " + TQWhatsThis::add( m_checkOverburn, i18n("<p>Each medium has an official maximum capacity which is stored in a read-only " "area of the medium and is guaranteed by the vendor. However, this official " "maximum is not always the actual maximum. Many media have an " "actual total capacity that is slightly larger than the official amount." @@ -124,23 +124,23 @@ void K3bBurningOptionTab::setupGui() "makes sense to first determine the actual maximum capacity of the media brand " "with a simulated burn.") ); - QWhatsThis::add( m_checkAutoErasingRewritable, i18n("<p>If this option is checked K3b will automatically " + TQWhatsThis::add( m_checkAutoErasingRewritable, i18n("<p>If this option is checked K3b will automatically " "erase CD-RWs and format DVD-RWs if one is found instead " "of an empty media before writing.") ); - QWhatsThis::add( m_checkManualWritingBufferSize, i18n("<p>K3b uses a software buffer during the burning process to " + TQWhatsThis::add( m_checkManualWritingBufferSize, i18n("<p>K3b uses a software buffer during the burning process to " "avoid gaps in the data stream due to high system load. The default " "sizes used are %1 MB for CD and %2 MB for DVD burning." "<p>If this option is checked the value specified will be used for both " - "CD and DVD burning.").arg(4).arg(32) ); + "CD and DVD burning.").tqarg(4).tqarg(32) ); - QWhatsThis::add( m_checkEject, i18n("<p>If this option is checked K3b will not eject the medium once the burn process " + TQWhatsThis::add( m_checkEject, i18n("<p>If this option is checked K3b will not eject the medium once the burn process " "finishes. This can be helpful in case one leaves the computer after starting the " "burning and does not want the tray to be open all the time." "<p>However, on Linux systems a freshly burned medium has to be reloaded. Otherwise " "the system will not detect the changes and still treat it as an empty medium.") ); - QWhatsThis::add( m_checkForceUnsafeOperations, i18n("<p>If this option is checked K3b will continue in some situations " + TQWhatsThis::add( m_checkForceUnsafeOperations, i18n("<p>If this option is checked K3b will continue in some situations " "which would otherwise be deemed as unsafe." "<p>This setting for example disables the check for medium speed " "verification. Thus, one can force K3b to burn a high speed medium on " diff --git a/src/option/k3bburningoptiontab.h b/src/option/k3bburningoptiontab.h index 8b71e06..b62274e 100644 --- a/src/option/k3bburningoptiontab.h +++ b/src/option/k3bburningoptiontab.h @@ -17,25 +17,26 @@ #ifndef K3B_BURNING_OPTION_TAB_H #define K3B_BURNING_OPTION_TAB_H -#include <qwidget.h> - -class QCheckBox; -class QLabel; -class QGroupBox; -class QComboBox; -class QString; -class QSpinBox; +#include <tqwidget.h> + +class TQCheckBox; +class TQLabel; +class TQGroupBox; +class TQComboBox; +class TQString; +class TQSpinBox; class KIntNumInput; -class QRadioButton; +class TQRadioButton; -class K3bBurningOptionTab : public QWidget +class K3bBurningOptionTab : public TQWidget { Q_OBJECT + TQ_OBJECT public: - K3bBurningOptionTab( QWidget* parent = 0, const char* name = 0 ); + K3bBurningOptionTab( TQWidget* tqparent = 0, const char* name = 0 ); ~K3bBurningOptionTab(); void saveSettings(); @@ -47,14 +48,14 @@ Q_OBJECT private: void setupGui(); - QCheckBox* m_checkBurnfree; - QCheckBox* m_checkEject; - QCheckBox* m_checkAutoErasingRewritable; - QCheckBox* m_checkOverburn; - QCheckBox* m_checkManualWritingBufferSize; + TQCheckBox* m_checkBurnfree; + TQCheckBox* m_checkEject; + TQCheckBox* m_checkAutoErasingRewritable; + TQCheckBox* m_checkOverburn; + TQCheckBox* m_checkManualWritingBufferSize; KIntNumInput* m_editWritingBufferSize; - QCheckBox* m_checkAllowWritingAppSelection; - QCheckBox* m_checkForceUnsafeOperations; + TQCheckBox* m_checkAllowWritingAppSelection; + TQCheckBox* m_checkForceUnsafeOperations; }; diff --git a/src/option/k3bcddboptiontab.cpp b/src/option/k3bcddboptiontab.cpp index 33b2349..1d2f10f 100644 --- a/src/option/k3bcddboptiontab.cpp +++ b/src/option/k3bcddboptiontab.cpp @@ -15,19 +15,19 @@ #include "k3bcddboptiontab.h" -#include <qvariant.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qlistbox.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qtabwidget.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qstringlist.h> -#include <qcombobox.h> -#include <qtoolbutton.h> +#include <tqvariant.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqlistbox.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> +#include <tqtabwidget.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqstringlist.h> +#include <tqcombobox.h> +#include <tqtoolbutton.h> #include <kdialog.h> #include <kiconloader.h> @@ -41,29 +41,29 @@ #include <kdeversion.h> -K3bCddbOptionTab::K3bCddbOptionTab( QWidget* parent, const char* name ) - : base_K3bCddbOptionTab( parent, name ) +K3bCddbOptionTab::K3bCddbOptionTab( TQWidget* tqparent, const char* name ) + : base_K3bCddbOptionTab( tqparent, name ) { - // fix all the margins and spacings that have been corrupted by QDesigner ;-) + // fix all the margins and spacings that have been corrupted by TQDesigner ;-) // ----------------------------------------------------------------------------- base_K3bCddbOptionTabLayout->setMargin( 0 ); base_K3bCddbOptionTabLayout->setSpacing( KDialog::spacingHint() ); - m_mainTabbed->page(0)->layout()->setMargin( KDialog::marginHint() ); - m_mainTabbed->page(0)->layout()->setSpacing( KDialog::spacingHint() ); - m_mainTabbed->page(1)->layout()->setMargin( KDialog::marginHint() ); - m_mainTabbed->page(1)->layout()->setSpacing( KDialog::spacingHint() ); + m_mainTabbed->page(0)->tqlayout()->setMargin( KDialog::marginHint() ); + m_mainTabbed->page(0)->tqlayout()->setSpacing( KDialog::spacingHint() ); + m_mainTabbed->page(1)->tqlayout()->setMargin( KDialog::marginHint() ); + m_mainTabbed->page(1)->tqlayout()->setSpacing( KDialog::spacingHint() ); -// m_groupLocalDir->layout()->setMargin( 0 ); +// m_groupLocalDir->tqlayout()->setMargin( 0 ); // m_groupLocalDirLayout->setMargin( KDialog::marginHint() ); // m_groupLocalDirLayout->setSpacing( KDialog::spacingHint() ); -// m_groupCddbServer->layout()->setMargin( 0 ); +// m_groupCddbServer->tqlayout()->setMargin( 0 ); // m_groupCddbServerLayout->setMargin( KDialog::marginHint() ); // m_groupCddbServerLayout->setSpacing( KDialog::spacingHint() ); - m_groupCgi->layout()->setMargin( 0 ); + m_groupCgi->tqlayout()->setMargin( 0 ); m_groupCgiLayout->setMargin( KDialog::marginHint() ); m_groupCgiLayout->setSpacing( KDialog::spacingHint() ); @@ -99,24 +99,24 @@ K3bCddbOptionTab::K3bCddbOptionTab( QWidget* parent, const char* name ) // setup connections // ----------------------------------------------------------------------------- - connect( m_buttonAddLocalDir, SIGNAL(clicked()), this, SLOT(slotLocalDirAdd()) ); - connect( m_buttonRemoveLocalDir, SIGNAL(clicked()), this, SLOT(slotLocalDirRemove()) ); - connect( m_buttonLocalDirUp, SIGNAL(clicked()), this, SLOT(slotLocalDirUp()) ); - connect( m_buttonLocalDirDown, SIGNAL(clicked()), this, SLOT(slotLocalDirDown()) ); - - connect( m_buttonAddCddbServer, SIGNAL(clicked()), this, SLOT(slotCddbServerAdd()) ); - connect( m_buttonRemoveCddbServer, SIGNAL(clicked()), this, SLOT(slotCddbServerRemove()) ); - connect( m_buttonCddbServerUp, SIGNAL(clicked()), this, SLOT(slotCddbServerUp()) ); - connect( m_buttonCddbServerDown, SIGNAL(clicked()), this, SLOT(slotCddbServerDown()) ); - - connect( m_editLocalDir, SIGNAL(textChanged(const QString&)), this, SLOT(enDisableButtons()) ); - connect( m_editCddbServer, SIGNAL(textChanged(const QString&)), this, SLOT(enDisableButtons()) ); - connect( m_viewLocalDir, SIGNAL(selectionChanged()), this, SLOT(enDisableButtons()) ); - connect( m_viewCddbServer, SIGNAL(selectionChanged()), this, SLOT(enDisableButtons()) ); - connect( m_comboCddbType, SIGNAL(highlighted(int)), - this, SLOT(slotServerTypeChanged()) ); - connect( m_comboCddbType, SIGNAL(activated(int)), - this, SLOT(slotServerTypeChanged()) ); + connect( m_buttonAddLocalDir, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirAdd()) ); + connect( m_buttonRemoveLocalDir, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirRemove()) ); + connect( m_buttonLocalDirUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirUp()) ); + connect( m_buttonLocalDirDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirDown()) ); + + connect( m_buttonAddCddbServer, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerAdd()) ); + connect( m_buttonRemoveCddbServer, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerRemove()) ); + connect( m_buttonCddbServerUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerUp()) ); + connect( m_buttonCddbServerDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerDown()) ); + + connect( m_editLocalDir, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(enDisableButtons()) ); + connect( m_editCddbServer, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(enDisableButtons()) ); + connect( m_viewLocalDir, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(enDisableButtons()) ); + connect( m_viewCddbServer, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(enDisableButtons()) ); + connect( m_comboCddbType, TQT_SIGNAL(highlighted(int)), + this, TQT_SLOT(slotServerTypeChanged()) ); + connect( m_comboCddbType, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotServerTypeChanged()) ); // ----------------------------------------------------------------------------- enDisableButtons(); @@ -135,13 +135,13 @@ void K3bCddbOptionTab::readSettings() c->setGroup( "Cddb" ); // old config <= 0.7.3 - QStringList cddbpServer = c->readListEntry( "cddbp server" ); - QStringList httpServer = c->readListEntry( "http server" ); + TQStringList cddbpServer = c->readListEntry( "cddbp server" ); + TQStringList httpServer = c->readListEntry( "http server" ); // new config - QStringList cddbServer = c->readListEntry( "cddb server" ); + TQStringList cddbServer = c->readListEntry( "cddb server" ); - QStringList localCddbDirs = c->readPathListEntry( "local cddb dirs" ); + TQStringList localCddbDirs = c->readPathListEntry( "local cddb dirs" ); m_checkRemoteCddb->setChecked( c->readBoolEntry( "use remote cddb", true ) ); m_checkUseLocalCddb->setChecked( c->readBoolEntry( "use local cddb query", true ) ); @@ -152,18 +152,18 @@ void K3bCddbOptionTab::readSettings() if( localCddbDirs.isEmpty() ) localCddbDirs.append( "~/.cddb/" ); - for( QStringList::const_iterator it = localCddbDirs.begin(); it != localCddbDirs.end(); ++it ) + for( TQStringList::const_iterator it = localCddbDirs.begin(); it != localCddbDirs.end(); ++it ) (void)new KListViewItem( m_viewLocalDir, m_viewLocalDir->lastItem(), *it ); // old config <= 0.7.3 if( !httpServer.isEmpty() ) { - for( QStringList::iterator it = httpServer.begin(); it != httpServer.end(); ++it ) { + for( TQStringList::iterator it = httpServer.begin(); it != httpServer.end(); ++it ) { cddbServer.append( "Http " + *it ); } } if( !cddbpServer.isEmpty() ) { - for( QStringList::iterator it = cddbpServer.begin(); it != cddbpServer.end(); ++it ) { + for( TQStringList::iterator it = cddbpServer.begin(); it != cddbpServer.end(); ++it ) { cddbServer.append( "Cddbp " + *it ); } } @@ -171,15 +171,15 @@ void K3bCddbOptionTab::readSettings() if( cddbServer.isEmpty() ) cddbServer.append( "Http freedb2.org:80" ); - for( QStringList::const_iterator it = cddbServer.begin(); it != cddbServer.end(); ++it ) { - const QString& s = *it; - QStringList buf = QStringList::split( ":", s.mid( s.find(" ")+1 ) ); - QString server = buf[0]; + for( TQStringList::const_iterator it = cddbServer.begin(); it != cddbServer.end(); ++it ) { + const TQString& s = *it; + TQStringList buf = TQStringList::split( ":", s.mid( s.tqfind(" ")+1 ) ); + TQString server = buf[0]; int port = buf[1].toInt(); if( s.startsWith("Http") ) - (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Http", server, QString::number(port) ); + (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Http", server, TQString::number(port) ); else - (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Cddbp", server, QString::number(port) ); + (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Cddbp", server, TQString::number(port) ); } enDisableButtons(); @@ -198,16 +198,16 @@ void K3bCddbOptionTab::apply() c->writeEntry( "use manual cgi path", m_checkManualCgiPath->isChecked() ); c->writeEntry( "cgi path", m_editManualCgiPath->text() ); - QStringList cddbServer; - QStringList localCddbDirs; + TQStringList cddbServer; + TQStringList localCddbDirs; - QListViewItemIterator it( m_viewLocalDir ); + TQListViewItemIterator it( m_viewLocalDir ); while( it.current() ) { localCddbDirs.append( it.current()->text(0) ); ++it; } - QListViewItemIterator it1( m_viewCddbServer ); + TQListViewItemIterator it1( m_viewCddbServer ); while( it1.current() ) { cddbServer.append( it1.current()->text(0) + " " + it1.current()->text(1) + ":" + it1.current()->text(2) ); ++it1; @@ -229,8 +229,8 @@ void K3bCddbOptionTab::apply() void K3bCddbOptionTab::slotLocalDirAdd() { if( !m_editLocalDir->text().isEmpty() ) { - QString localDir( m_editLocalDir->text() ); - QListViewItemIterator it( m_viewLocalDir ); + TQString localDir( m_editLocalDir->text() ); + TQListViewItemIterator it( m_viewLocalDir ); while( it.current() ) { if ( it.current()->text(0) == localDir ) return; @@ -246,7 +246,7 @@ void K3bCddbOptionTab::slotLocalDirAdd() void K3bCddbOptionTab::slotLocalDirRemove() { - if( QListViewItem* item = m_viewLocalDir->selectedItem() ) + if( TQListViewItem* item = m_viewLocalDir->selectedItem() ) delete item; enDisableButtons(); @@ -259,7 +259,7 @@ void K3bCddbOptionTab::slotCddbServerAdd() (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), m_comboCddbType->currentText(), m_editCddbServer->text(), - QString::number( m_editCddbPort->value() ) ); + TQString::number( m_editCddbPort->value() ) ); enDisableButtons(); } @@ -268,7 +268,7 @@ void K3bCddbOptionTab::slotCddbServerAdd() void K3bCddbOptionTab::slotCddbServerRemove() { - if( QListViewItem* item = m_viewCddbServer->selectedItem() ) + if( TQListViewItem* item = m_viewCddbServer->selectedItem() ) delete item; enDisableButtons(); @@ -306,7 +306,7 @@ void K3bCddbOptionTab::slotServerTypeChanged() void K3bCddbOptionTab::slotLocalDirDown() { - QListViewItem* sel = m_viewLocalDir->selectedItem(); + TQListViewItem* sel = m_viewLocalDir->selectedItem(); m_viewLocalDir->moveItem( sel, 0, sel->nextSibling() ); m_viewLocalDir->setSelected( sel, true ); } @@ -314,7 +314,7 @@ void K3bCddbOptionTab::slotLocalDirDown() void K3bCddbOptionTab::slotLocalDirUp() { - QListViewItem* sel = m_viewLocalDir->selectedItem(); + TQListViewItem* sel = m_viewLocalDir->selectedItem(); m_viewLocalDir->moveItem( sel, 0, sel->itemAbove()->itemAbove() ); m_viewLocalDir->setSelected( sel, true ); } @@ -322,7 +322,7 @@ void K3bCddbOptionTab::slotLocalDirUp() void K3bCddbOptionTab::slotCddbServerDown() { - QListViewItem* sel = m_viewCddbServer->selectedItem(); + TQListViewItem* sel = m_viewCddbServer->selectedItem(); m_viewCddbServer->moveItem( sel, 0, sel->nextSibling() ); m_viewCddbServer->setSelected( sel, true ); } @@ -330,7 +330,7 @@ void K3bCddbOptionTab::slotCddbServerDown() void K3bCddbOptionTab::slotCddbServerUp() { - QListViewItem* sel = m_viewCddbServer->selectedItem(); + TQListViewItem* sel = m_viewCddbServer->selectedItem(); m_viewCddbServer->moveItem( sel, 0, sel->itemAbove()->itemAbove() ); m_viewCddbServer->setSelected( sel, true ); } diff --git a/src/option/k3bcddboptiontab.h b/src/option/k3bcddboptiontab.h index bc89259..2633b0a 100644 --- a/src/option/k3bcddboptiontab.h +++ b/src/option/k3bcddboptiontab.h @@ -22,9 +22,10 @@ class K3bCddbOptionTab : public base_K3bCddbOptionTab { Q_OBJECT + TQ_OBJECT public: - K3bCddbOptionTab( QWidget* parent = 0, const char* name = 0 ); + K3bCddbOptionTab( TQWidget* tqparent = 0, const char* name = 0 ); ~K3bCddbOptionTab(); public slots: diff --git a/src/option/k3bdeviceoptiontab.cpp b/src/option/k3bdeviceoptiontab.cpp index 65607c6..8931fe7 100644 --- a/src/option/k3bdeviceoptiontab.cpp +++ b/src/option/k3bdeviceoptiontab.cpp @@ -19,11 +19,11 @@ #include <k3bglobals.h> #include <k3bcore.h> -#include <qlabel.h> -#include <qstring.h> -#include <qlayout.h> -#include <qcursor.h> -#include <qapplication.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqlayout.h> +#include <tqcursor.h> +#include <tqapplication.h> #include <kapplication.h> #include <kdialog.h> @@ -32,18 +32,18 @@ #include <kstandarddirs.h> -K3bDeviceOptionTab::K3bDeviceOptionTab( QWidget* parent, const char* name ) - : QWidget( parent, name ) +K3bDeviceOptionTab::K3bDeviceOptionTab( TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { - QGridLayout* frameLayout = new QGridLayout( this ); + TQGridLayout* frameLayout = new TQGridLayout( this ); frameLayout->setSpacing( KDialog::spacingHint() ); frameLayout->setMargin( 0 ); // Info Label // ------------------------------------------------ - m_labelDevicesInfo = new QLabel( this, "m_labelDevicesInfo" ); - m_labelDevicesInfo->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); + m_labelDevicesInfo = new TQLabel( this, "m_labelDevicesInfo" ); + m_labelDevicesInfo->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) ); m_labelDevicesInfo->setText( i18n( "K3b tries to detect all your devices properly. " "You can add devices that have not been detected and change " "the black values by clicking in the list. If K3b is unable " @@ -56,7 +56,7 @@ K3bDeviceOptionTab::K3bDeviceOptionTab( QWidget* parent, const char* name ) frameLayout->addWidget( m_labelDevicesInfo, 0, 0 ); frameLayout->addWidget( m_deviceWidget, 1, 0 ); - connect( m_deviceWidget, SIGNAL(refreshButtonClicked()), this, SLOT(slotRefreshButtonClicked()) ); + connect( m_deviceWidget, TQT_SIGNAL(refreshButtonClicked()), this, TQT_SLOT(slotRefreshButtonClicked()) ); } @@ -84,11 +84,11 @@ void K3bDeviceOptionTab::saveDevices() void K3bDeviceOptionTab::slotRefreshButtonClicked() { - QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) ); + TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) ); k3bcore->deviceManager()->clear(); k3bcore->deviceManager()->scanBus(); m_deviceWidget->init(); - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); } #include "k3bdeviceoptiontab.moc" diff --git a/src/option/k3bdeviceoptiontab.h b/src/option/k3bdeviceoptiontab.h index 492b421..7e900ba 100644 --- a/src/option/k3bdeviceoptiontab.h +++ b/src/option/k3bdeviceoptiontab.h @@ -17,18 +17,19 @@ #ifndef K3B_DEVICE_OPTIONTAB_H #define K3B_DEVICE_OPTIONTAB_H -#include <qwidget.h> +#include <tqwidget.h> -class QLabel; +class TQLabel; class K3bDeviceWidget; -class K3bDeviceOptionTab : public QWidget +class K3bDeviceOptionTab : public TQWidget { Q_OBJECT + TQ_OBJECT public: - K3bDeviceOptionTab( QWidget*, const char* name = 0 ); + K3bDeviceOptionTab( TQWidget*, const char* name = 0 ); ~K3bDeviceOptionTab(); void readDevices(); @@ -38,7 +39,7 @@ Q_OBJECT void slotRefreshButtonClicked(); private: - QLabel* m_labelDevicesInfo; + TQLabel* m_labelDevicesInfo; K3bDeviceWidget* m_deviceWidget; }; diff --git a/src/option/k3bdevicewidget.cpp b/src/option/k3bdevicewidget.cpp index d7d1e36..2be5054 100644 --- a/src/option/k3bdevicewidget.cpp +++ b/src/option/k3bdevicewidget.cpp @@ -31,16 +31,16 @@ #include <kstandarddirs.h> #include <kio/global.h> -#include <qgroupbox.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qvariant.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qheader.h> -#include <qstring.h> -#include <qcolor.h> -#include <qptrlist.h> +#include <tqgroupbox.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqvariant.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqheader.h> +#include <tqstring.h> +#include <tqcolor.h> +#include <tqptrlist.h> class K3bDeviceWidget::PrivateTempDevice @@ -54,7 +54,7 @@ public: } K3bDevice::Device* device; - QString cdrdaoDriver; + TQString cdrdaoDriver; bool cdTextCapable; bool writer; }; @@ -63,21 +63,21 @@ public: class K3bDeviceWidget::PrivateDeviceViewItem1 : public K3bListViewItem { public: - PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, QListView* view, QListViewItem* after ) + PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, TQListView* view, TQListViewItem* after ) : K3bListViewItem( view, after ), m_type(type) { this->dev = dev; init(); } - PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, QListViewItem* item, QListViewItem* after ) + PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, TQListViewItem* item, TQListViewItem* after ) : K3bListViewItem( item, after ), m_type(type) { this->dev = dev; init(); } - void setText(int col, const QString& text) { + void setText(int col, const TQString& text) { if( col == 1 ) { switch(m_type) { case t_cdrdaoDriver: @@ -91,7 +91,7 @@ public: } } - QString text( int col ) const { + TQString text( int col ) const { switch(m_type) { case t_cdrdaoDriver: return (col == 0 ? i18n("Cdrdao driver:") : dev->cdrdaoDriver ); @@ -114,8 +114,8 @@ public: private: void init() { - static QStringList l; - static QStringList l2; + static TQStringList l; + static TQStringList l2; switch(m_type) { case t_cdrdaoDriver: @@ -144,23 +144,23 @@ private: -K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *parent, const char *name ) - : QWidget( parent, name ), m_deviceManager( manager ) +K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ), m_deviceManager( manager ) { - QGridLayout* frameLayout = new QGridLayout( this ); + TQGridLayout* frameLayout = new TQGridLayout( this ); frameLayout->setSpacing( KDialog::spacingHint() ); frameLayout->setMargin( 0 ); // buttons // ------------------------------------------------ - QGridLayout* refreshButtonGrid = new QGridLayout; + TQGridLayout* refreshButtonGrid = new TQGridLayout; refreshButtonGrid->setSpacing( KDialog::spacingHint() ); refreshButtonGrid->setMargin(0); - m_buttonRefreshDevices = new QPushButton( i18n( "Refresh" ), this, "m_buttonRefreshDevices" ); - m_buttonAddDevice = new QPushButton( i18n( "Add Device..." ), this, "m_buttonAddDevice" ); - QToolTip::add( m_buttonRefreshDevices, i18n( "Rescan the devices" ) ); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + m_buttonRefreshDevices = new TQPushButton( i18n( "Refresh" ), this, "m_buttonRefreshDevices" ); + m_buttonAddDevice = new TQPushButton( i18n( "Add Device..." ), this, "m_buttonAddDevice" ); + TQToolTip::add( m_buttonRefreshDevices, i18n( "Rescan the devices" ) ); + TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); refreshButtonGrid->addItem( spacer, 0, 0 ); refreshButtonGrid->addWidget( m_buttonRefreshDevices, 0, 2 ); refreshButtonGrid->addWidget( m_buttonAddDevice, 0, 1 ); @@ -169,9 +169,9 @@ K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *pa // Devices Box // ------------------------------------------------ - QGroupBox* groupDevices = new QGroupBox( 1, Qt::Vertical, i18n( "CD/DVD Drives" ), this ); - groupDevices->layout()->setSpacing( KDialog::spacingHint() ); - groupDevices->layout()->setMargin( KDialog::marginHint() ); + TQGroupBox* groupDevices = new TQGroupBox( 1, Qt::Vertical, i18n( "CD/DVD Drives" ), this ); + groupDevices->tqlayout()->setSpacing( KDialog::spacingHint() ); + groupDevices->tqlayout()->setMargin( KDialog::marginHint() ); m_viewDevices = new K3bListView( groupDevices, "m_viewDevicesReader" ); m_viewDevices->addColumn( "V" ); @@ -180,8 +180,8 @@ K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *pa m_viewDevices->header()->hide(); m_viewDevices->setSorting( -1 ); m_viewDevices->setDoubleClickForEdit(false); - m_viewDevices->setAlternateBackground( QColor() ); - m_viewDevices->setSelectionMode( QListView::NoSelection ); + m_viewDevices->setAlternateBackground( TQColor() ); + m_viewDevices->setSelectionMode( TQListView::NoSelection ); m_viewDevices->setFullWidth(true); // ------------------------------------------------ @@ -198,10 +198,10 @@ K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *pa // connections // ------------------------------------------------ - // connect( m_buttonRefreshDevices, SIGNAL(clicked()), this, SLOT(slotRefreshDevices()) ); - connect( m_buttonRefreshDevices, SIGNAL(clicked()), this, SIGNAL(refreshButtonClicked()) ); - connect( m_buttonAddDevice, SIGNAL(clicked()), this, SLOT(slotNewDevice()) ); - connect( m_deviceManager, SIGNAL(changed()), this, SLOT(init()) ); + // connect( m_buttonRefreshDevices, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRefreshDevices()) ); + connect( m_buttonRefreshDevices, TQT_SIGNAL(clicked()), this, TQT_SIGNAL(refreshButtonClicked()) ); + connect( m_buttonAddDevice, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewDevice()) ); + connect( m_deviceManager, TQT_SIGNAL(changed()), this, TQT_SLOT(init()) ); // ------------------------------------------------ } @@ -218,7 +218,7 @@ void K3bDeviceWidget::init() m_tempDevices.clear(); // add the reading devices - for( QPtrListIterator<K3bDevice::Device> it( m_deviceManager->allDevices() ); *it; ++it ) + for( TQPtrListIterator<K3bDevice::Device> it( m_deviceManager->allDevices() ); *it; ++it ) m_tempDevices.append( new PrivateTempDevice( *it ) ); updateDeviceListViews(); @@ -229,19 +229,19 @@ void K3bDeviceWidget::updateDeviceListViews() { m_viewDevices->clear(); - // create the parent view items + // create the tqparent view items // ----------------------------------------- - m_writerParentViewItem = new QListViewItem( m_viewDevices, i18n("Writer Drives") ); + m_writerParentViewItem = new TQListViewItem( m_viewDevices, i18n("Writer Drives") ); m_writerParentViewItem->setPixmap( 0, SmallIcon( "cdwriter_unmount" ) ); // spacer item - (void)new QListViewItem( m_viewDevices ); - m_readerParentViewItem = new QListViewItem( m_viewDevices, i18n("Readonly Drives") ); + (void)new TQListViewItem( m_viewDevices ); + m_readerParentViewItem = new TQListViewItem( m_viewDevices, i18n("Readonly Drives") ); m_readerParentViewItem->setPixmap( 0, SmallIcon( "cdrom_unmount" ) ); // ----------------------------------------- - QFont fBold( m_viewDevices->font() ); + TQFont fBold( m_viewDevices->font() ); fBold.setBold(true); - QFont fItalic( m_viewDevices->font() ); + TQFont fItalic( m_viewDevices->font() ); fItalic.setItalic(true); PrivateTempDevice* dev = m_tempDevices.first(); @@ -254,30 +254,30 @@ void K3bDeviceWidget::updateDeviceListViews() // create the read-only info items K3bListViewItem* systemDeviceItem = new K3bListViewItem( devRoot, i18n("System device name:") ); if( dev->device->interfaceType() == K3bDevice::SCSI ) - systemDeviceItem->setText( 1, QString("%1 (%2)").arg(dev->device->devicename()).arg(dev->device->busTargetLun()) ); + systemDeviceItem->setText( 1, TQString("%1 (%2)").tqarg(dev->device->devicename()).tqarg(dev->device->busTargetLun()) ); else systemDeviceItem->setText( 1, dev->device->devicename() ); - systemDeviceItem->setForegroundColor( 1, palette().disabled().foreground() ); + systemDeviceItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); K3bListViewItem* interfaceItem = new K3bListViewItem( devRoot, systemDeviceItem, i18n("Interface type:"), ( dev->device->interfaceType() == K3bDevice::SCSI ? i18n("Generic SCSI") : i18n("ATAPI") ) ); - interfaceItem->setForegroundColor( 1, palette().disabled().foreground() ); + interfaceItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); K3bListViewItem* vendorItem = new K3bListViewItem( devRoot, interfaceItem, i18n("Vendor:"), dev->device->vendor() ); - vendorItem->setForegroundColor( 1, palette().disabled().foreground() ); + vendorItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); K3bListViewItem* modelItem = new K3bListViewItem( devRoot, vendorItem, i18n("Description:"), dev->device->description() ); - modelItem->setForegroundColor( 1, palette().disabled().foreground() ); + modelItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); K3bListViewItem* versionItem = new K3bListViewItem( devRoot, modelItem, i18n("Firmware:"), dev->device->version() ); - versionItem->setForegroundColor( 1, palette().disabled().foreground() ); + versionItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); // drive type @@ -285,33 +285,33 @@ void K3bDeviceWidget::updateDeviceListViews() K3bListViewItem* typeItem = new K3bListViewItem( devRoot, versionItem, i18n("Writes CD-R:"), dev->device->writesCd() ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); typeItem = new K3bListViewItem( devRoot, typeItem, i18n("Writes CD-RW:"), dev->device->writesCdrw() ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); typeItem = new K3bListViewItem( devRoot, typeItem, i18n("Reads DVD:"), dev->device->readsDvd() ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); typeItem = new K3bListViewItem( devRoot, typeItem, i18n("Writes DVD-R(W):"), dev->device->writesDvdMinus() ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); typeItem = new K3bListViewItem( devRoot, typeItem, i18n("Writes DVD-R Dual Layer:"), (dev->device->type() & K3bDevice::DEVICE_DVD_R_DL) ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); typeItem = new K3bListViewItem( devRoot, typeItem, i18n("Writes DVD+R(W):"), dev->device->writesDvdPlus() ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); typeItem = new K3bListViewItem( devRoot, typeItem, i18n("Writes DVD+R Double Layer:"), (dev->device->type() & K3bDevice::DEVICE_DVD_PLUS_R_DL) ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); // -------------------------------- @@ -320,7 +320,7 @@ void K3bDeviceWidget::updateDeviceListViews() typeItem = new K3bListViewItem( devRoot, typeItem, i18n("Buffer Size:"), KIO::convertSizeFromKB(dev->device->bufferSize()) ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); } PrivateDeviceViewItem1* cdrdaoDriverItem = new PrivateDeviceViewItem1( PrivateDeviceViewItem1::t_cdrdaoDriver, @@ -339,14 +339,14 @@ void K3bDeviceWidget::updateDeviceListViews() typeItem = new K3bListViewItem( devRoot, cdTextItem, i18n("Supports Burnfree:"), dev->device->burnfree() ? i18n("yes") : i18n("no") ); - typeItem->setForegroundColor( 1, palette().disabled().foreground() ); + typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() ); // and at last the write modes (new K3bListViewItem( devRoot, typeItem, i18n("Write modes:"), - K3bDevice::writingModeString(dev->device->writingModes()) ))->setForegroundColor( 1, palette().disabled().foreground() ); + K3bDevice::writingModeString(dev->device->writingModes()) ))->setForegroundColor( 1, tqpalette().disabled().foreground() ); } devRoot->setOpen(true); @@ -372,7 +372,7 @@ void K3bDeviceWidget::updateDeviceListViews() void K3bDeviceWidget::slotNewDevice() { bool ok; - QString newDevicename = KInputDialog::getText( i18n("Location of New Drive"), + TQString newDevicename = KInputDialog::getText( i18n("Location of New Drive"), i18n("Please enter the device name where K3b should search\nfor a new drive (example: /dev/cdrom):"), "/dev/", &ok, this ); @@ -383,7 +383,7 @@ void K3bDeviceWidget::slotNewDevice() updateDeviceListViews(); } else - KMessageBox::error( this, i18n("Could not find an additional device at\n%1").arg(newDevicename), i18n("Error"), false ); + KMessageBox::error( this, i18n("Could not find an additional device at\n%1").tqarg(newDevicename), i18n("Error"), false ); } } diff --git a/src/option/k3bdevicewidget.h b/src/option/k3bdevicewidget.h index a874c94..b4e1590 100644 --- a/src/option/k3bdevicewidget.h +++ b/src/option/k3bdevicewidget.h @@ -17,34 +17,35 @@ #ifndef K3BDEVICEWIDGET_H #define K3BDEVICEWIDGET_H -#include <qwidget.h> -#include <qptrlist.h> +#include <tqwidget.h> +#include <tqptrlist.h> #include "k3bdevice.h" #include "k3bdevicemanager.h" -class QComboBox; -class QLabel; -class QGroupBox; -class QPushButton; -class QCheckBox; +class TQComboBox; +class TQLabel; +class TQGroupBox; +class TQPushButton; +class TQCheckBox; class K3bListView; -class QString; +class TQString; class KIntNumInput; -class QFrame; -class QListViewItem; -class QString; -class QLineEdit; +class TQFrame; +class TQListViewItem; +class TQString; +class TQLineEdit; /** *@author Sebastian Trueg */ -class K3bDeviceWidget : public QWidget +class K3bDeviceWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - K3bDeviceWidget( K3bDevice::DeviceManager*, QWidget *parent = 0, const char *name = 0 ); + K3bDeviceWidget( K3bDevice::DeviceManager*, TQWidget *tqparent = 0, const char *name = 0 ); ~K3bDeviceWidget(); public slots: @@ -63,16 +64,16 @@ class K3bDeviceWidget : public QWidget class PrivateDeviceViewItem1; /** list to save changes to the devices before applying */ - QPtrList<PrivateTempDevice> m_tempDevices; + TQPtrList<PrivateTempDevice> m_tempDevices; - QListViewItem* m_writerParentViewItem; - QListViewItem* m_readerParentViewItem; + TQListViewItem* m_writerParentViewItem; + TQListViewItem* m_readerParentViewItem; K3bDevice::DeviceManager* m_deviceManager; K3bListView* m_viewDevices; - QPushButton* m_buttonRefreshDevices; - QPushButton* m_buttonAddDevice; + TQPushButton* m_buttonRefreshDevices; + TQPushButton* m_buttonAddDevice; }; #endif diff --git a/src/option/k3bexternalbinoptiontab.cpp b/src/option/k3bexternalbinoptiontab.cpp index d5c78bc..6be5b19 100644 --- a/src/option/k3bexternalbinoptiontab.cpp +++ b/src/option/k3bexternalbinoptiontab.cpp @@ -24,35 +24,35 @@ #include <kiconloader.h> #include <klistview.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qvariant.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qfile.h> -#include <qptrlist.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqvariant.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqfile.h> +#include <tqptrlist.h> -K3bExternalBinOptionTab::K3bExternalBinOptionTab( K3bExternalBinManager* manager, QWidget* parent, const char* name ) - : QWidget( parent, name ) +K3bExternalBinOptionTab::K3bExternalBinOptionTab( K3bExternalBinManager* manager, TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { m_manager = manager; - QGridLayout* frameLayout = new QGridLayout( this ); + TQGridLayout* frameLayout = new TQGridLayout( this ); frameLayout->setSpacing( KDialog::spacingHint() ); frameLayout->setMargin( 0 ); m_externalBinWidget = new K3bExternalBinWidget( manager, this ); frameLayout->addWidget( m_externalBinWidget, 1, 0 ); - QLabel* m_labelInfo = new QLabel( this, "m_labelInfo" ); + TQLabel* m_labelInfo = new TQLabel( this, "m_labelInfo" ); m_labelInfo->setText( i18n( "Specify the paths to the external programs that K3b needs to work properly, " "or press \"Search\" to let K3b search for the programs." ) ); m_labelInfo->setScaledContents( false ); - m_labelInfo->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); + m_labelInfo->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) ); frameLayout->addWidget( m_labelInfo, 0, 0 ); } diff --git a/src/option/k3bexternalbinoptiontab.h b/src/option/k3bexternalbinoptiontab.h index 8622579..9a1c3d9 100644 --- a/src/option/k3bexternalbinoptiontab.h +++ b/src/option/k3bexternalbinoptiontab.h @@ -17,23 +17,24 @@ #ifndef K3B_EXTERNALBIN_OPTIONTAB_H #define K3B_EXTERNALBIN_OPTIONTAB_H -#include <qwidget.h> +#include <tqwidget.h> -class QPushButton; -class QListViewItem; +class TQPushButton; +class TQListViewItem; class KListView; class K3bExternalBinManager; class K3bExternalBinWidget; -class K3bExternalBinOptionTab : public QWidget +class K3bExternalBinOptionTab : public TQWidget { Q_OBJECT + TQ_OBJECT public: - K3bExternalBinOptionTab( K3bExternalBinManager*, QWidget*, const char* name = 0 ); + K3bExternalBinOptionTab( K3bExternalBinManager*, TQWidget*, const char* name = 0 ); ~K3bExternalBinOptionTab(); void readSettings(); diff --git a/src/option/k3bexternalbinwidget.cpp b/src/option/k3bexternalbinwidget.cpp index e1c62bb..32b8814 100644 --- a/src/option/k3bexternalbinwidget.cpp +++ b/src/option/k3bexternalbinwidget.cpp @@ -16,22 +16,22 @@ #include "k3bexternalbinwidget.h" #include "k3bexternalbinmanager.h" -#include <qpushbutton.h> +#include <tqpushbutton.h> #include <kdebug.h> -#include <qtabwidget.h> -#include <qlayout.h> -#include <qheader.h> -#include <qlabel.h> -#include <qstringlist.h> -#include <qmap.h> -#include <qregexp.h> -#include <qfont.h> -#include <qpainter.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qcursor.h> -#include <qapplication.h> -#include <qbitmap.h> +#include <tqtabwidget.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqlabel.h> +#include <tqstringlist.h> +#include <tqmap.h> +#include <tqregexp.h> +#include <tqfont.h> +#include <tqpainter.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqcursor.h> +#include <tqapplication.h> +#include <tqbitmap.h> #include <kdialog.h> #include <kiconloader.h> @@ -43,10 +43,10 @@ -K3bExternalBinWidget::K3bExternalProgramViewItem::K3bExternalProgramViewItem( K3bExternalProgram* p, QListView* parent ) - : K3bListViewItem( parent ), m_program(p) +K3bExternalBinWidget::K3bExternalProgramViewItem::K3bExternalProgramViewItem( K3bExternalProgram* p, TQListView* tqparent ) + : K3bListViewItem( tqparent ), m_program(p) { - QFont f( listView()->font() ); + TQFont f( listView()->font() ); f.setBold(true); setFont( 0, f ); setBackgroundColor( 0, KGlobalSettings::alternateBackgroundColor() ); @@ -57,8 +57,8 @@ K3bExternalBinWidget::K3bExternalProgramViewItem::K3bExternalProgramViewItem( K3 } -K3bExternalBinWidget::K3bExternalBinViewItem::K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* parent ) - : K3bListViewItem( parent ), m_bin( bin ), m_parent( parent ) +K3bExternalBinWidget::K3bExternalBinViewItem::K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* tqparent ) + : K3bListViewItem( tqparent ), m_bin( bin ), m_parent( tqparent ) { setText( 0, bin->path ); setText( 1, bin->version ); @@ -70,10 +70,10 @@ K3bExternalBinWidget::K3bExternalBinViewItem::K3bExternalBinViewItem( K3bExterna void K3bExternalBinWidget::K3bExternalBinViewItem::setDefault( bool b ) { - static QPixmap s_emptyPix( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall ); + static TQPixmap s_emptyPix( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall ); static bool s_emptyPixInitialized = false; if( !s_emptyPixInitialized ) { - s_emptyPix.setMask( QBitmap( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall, true ) ); + s_emptyPix.setMask( TQBitmap( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall, true ) ); s_emptyPixInitialized = true; } @@ -95,15 +95,15 @@ void K3bExternalBinWidget::K3bExternalBinViewItem::setDefault( bool b ) // ////////////////////////////////////////////////////////// -K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWidget* parent, const char* name ) - : QWidget( parent, name ), m_manager( manager ) +K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ), m_manager( manager ) { - QGridLayout* mainGrid = new QGridLayout( this ); + TQGridLayout* mainGrid = new TQGridLayout( this ); mainGrid->setMargin( 0 ); mainGrid->setSpacing( KDialog::spacingHint() ); - m_mainTabWidget = new QTabWidget( this ); - m_rescanButton = new QPushButton( i18n("&Search"), this ); + m_mainTabWidget = new TQTabWidget( this ); + m_rescanButton = new TQPushButton( i18n("&Search"), this ); mainGrid->addMultiCellWidget( m_mainTabWidget, 0, 0, 0, 1 ); mainGrid->addWidget( m_rescanButton, 1, 1 ); mainGrid->setColStretch( 0, 1 ); @@ -112,20 +112,20 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid // setup program tab // ------------------------------------------------------------ - QWidget* programTab = new QWidget( m_mainTabWidget ); - QGridLayout* programTabLayout = new QGridLayout( programTab ); + TQWidget* programTab = new TQWidget( m_mainTabWidget ); + TQGridLayout* programTabLayout = new TQGridLayout( programTab ); programTabLayout->setMargin( KDialog::marginHint() ); programTabLayout->setSpacing( KDialog::spacingHint() ); m_programView = new K3bListView( programTab ); - m_defaultButton = new QPushButton( i18n("Set Default"), programTab ); - QToolTip::add( m_defaultButton, i18n("Change the versions K3b should use.") ); - QWhatsThis::add( m_defaultButton, i18n("<p>If K3b found more than one installed version of a program " + m_defaultButton = new TQPushButton( i18n("Set Default"), programTab ); + TQToolTip::add( m_defaultButton, i18n("Change the versions K3b should use.") ); + TQWhatsThis::add( m_defaultButton, i18n("<p>If K3b found more than one installed version of a program " "it will choose one as the <em>default</em> which will be used " "to do the work. If you want to change the default select the " "wanted version and press this button.") ); programTabLayout->addMultiCellWidget( m_programView, 1, 1, 0, 1 ); programTabLayout->addWidget( m_defaultButton, 0, 1 ); - programTabLayout->addWidget( new QLabel( i18n("Use the 'Default' button to change the versions K3b should use."), + programTabLayout->addWidget( new TQLabel( i18n("Use the 'Default' button to change the versions K3b should use."), programTab ), 0, 0 ); programTabLayout->setColStretch( 0, 1 ); programTabLayout->setRowStretch( 1, 1 ); @@ -135,7 +135,7 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid m_programView->addColumn( i18n("Features") ); m_programView->setAllColumnsShowFocus(true); m_programView->setFullWidth(true); - m_programView->setAlternateBackground( QColor() ); + m_programView->setAlternateBackground( TQColor() ); #if KDE_IS_VERSION(3,4,0) m_programView->setShadeSortColumn( false ); #endif @@ -144,13 +144,13 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid // setup parameters tab // ------------------------------------------------------------ - QWidget* parametersTab = new QWidget( m_mainTabWidget ); - QGridLayout* parametersTabLayout = new QGridLayout( parametersTab ); + TQWidget* parametersTab = new TQWidget( m_mainTabWidget ); + TQGridLayout* parametersTabLayout = new TQGridLayout( parametersTab ); parametersTabLayout->setMargin( KDialog::marginHint() ); parametersTabLayout->setSpacing( KDialog::spacingHint() ); m_parameterView = new K3bListView( parametersTab ); parametersTabLayout->addWidget( m_parameterView, 1, 0 ); - parametersTabLayout->addWidget( new QLabel( i18n("User parameters have to be separated by space."), parametersTab ), 0, 0 ); + parametersTabLayout->addWidget( new TQLabel( i18n("User parameters have to be separated by space."), parametersTab ), 0, 0 ); parametersTabLayout->setRowStretch( 1, 1 ); @@ -158,7 +158,7 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid m_parameterView->addColumn( i18n("Parameters") ); m_parameterView->setAllColumnsShowFocus(true); m_parameterView->setFullWidth(true); - m_parameterView->setDefaultRenameAction( QListView::Accept ); + m_parameterView->setDefaultRenameAction( TQListView::Accept ); m_parameterView->setDoubleClickForEdit( false ); m_mainTabWidget->addTab( parametersTab, i18n("User Parameters") ); @@ -166,13 +166,13 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid // setup search path tab // ------------------------------------------------------------ - QWidget* searchPathTab = new QWidget( m_mainTabWidget ); - QGridLayout* searchPathTabLayout = new QGridLayout( searchPathTab ); + TQWidget* searchPathTab = new TQWidget( m_mainTabWidget ); + TQGridLayout* searchPathTabLayout = new TQGridLayout( searchPathTab ); searchPathTabLayout->setMargin( KDialog::marginHint() ); searchPathTabLayout->setSpacing( KDialog::spacingHint() ); m_searchPathBox = new KEditListBox( i18n("Search Path"), searchPathTab, "searchPathBox", true ); searchPathTabLayout->addWidget( m_searchPathBox, 0, 0 ); - searchPathTabLayout->addWidget( new QLabel( i18n("<qt><b>Hint:</b> to force K3b to use another than the " + searchPathTabLayout->addWidget( new TQLabel( i18n("<qt><b>Hint:</b> to force K3b to use another than the " "default name for the executable specify it in the search path.</qt>"), searchPathTab ), 1, 0 ); @@ -184,9 +184,9 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid m_programRootItems.setAutoDelete( true ); - connect( m_rescanButton, SIGNAL(clicked()), this, SLOT(rescan()) ); - connect( m_defaultButton, SIGNAL(clicked()), this, SLOT(slotSetDefaultButtonClicked()) ); - connect( m_programView, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotProgramSelectionChanged(QListViewItem*)) ); + connect( m_rescanButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(rescan()) ); + connect( m_defaultButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetDefaultButtonClicked()) ); + connect( m_programView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotProgramSelectionChanged(TQListViewItem*)) ); slotProgramSelectionChanged( 0 ); } @@ -198,11 +198,11 @@ K3bExternalBinWidget::~K3bExternalBinWidget() void K3bExternalBinWidget::rescan() { - QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) ); + TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) ); saveSearchPath(); m_manager->search(); load(); - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); } @@ -212,14 +212,14 @@ void K3bExternalBinWidget::load() m_parameterView->clear(); // load programs - const QMap<QString, K3bExternalProgram*>& map = m_manager->programs(); - for( QMap<QString, K3bExternalProgram*>::const_iterator it = map.begin(); it != map.end(); ++it ) { + const TQMap<TQString, K3bExternalProgram*>& map = m_manager->programs(); + for( TQMap<TQString, K3bExternalProgram*>::const_iterator it = map.begin(); it != map.end(); ++it ) { K3bExternalProgram* p = it.data(); K3bExternalProgramViewItem* pV = new K3bExternalProgramViewItem( p, m_programView ); m_programRootItems.append( pV ); // populate it - QPtrListIterator<K3bExternalBin> binIt( p->bins() ); + TQPtrListIterator<K3bExternalBin> binIt( p->bins() ); for( ; binIt.current(); ++binIt ) { K3bExternalBin* b = *binIt; @@ -255,11 +255,11 @@ void K3bExternalBinWidget::save() // save the default programs - QListViewItemIterator progIt( m_programView ); + TQListViewItemIterator progIt( m_programView ); while( progIt.current() ) { if( K3bExternalBinViewItem* bV = dynamic_cast<K3bExternalBinViewItem*>( progIt.current() ) ) { if( bV->isDefault() ) - bV->parentProgramItem()->program()->setDefault( bV->bin() ); + bV->tqparentProgramItem()->program()->setDefault( bV->bin() ); } ++progIt; @@ -267,11 +267,11 @@ void K3bExternalBinWidget::save() // save the user parameters - QListViewItemIterator paraIt( m_parameterView ); - QRegExp reSpace( "\\s" ); + TQListViewItemIterator paraIt( m_parameterView ); + TQRegExp reSpace( "\\s" ); while( paraIt.current() ) { K3bExternalProgramViewItem* pV = (K3bExternalProgramViewItem*)paraIt.current(); - pV->program()->setUserParameters( QStringList::split( reSpace, pV->text(1) ) ); + pV->program()->setUserParameters( TQStringList::split( reSpace, pV->text(1) ) ); ++paraIt; } @@ -290,9 +290,9 @@ void K3bExternalBinWidget::slotSetDefaultButtonClicked() K3bExternalBinViewItem* item = dynamic_cast<K3bExternalBinViewItem*>( m_programView->selectedItem() ); if( item ) { // remove all default flags - K3bExternalBinViewItem* bi = (K3bExternalBinViewItem*)item->parentProgramItem()->firstChild(); - QListViewItemIterator it( bi ); - while( it.current() && it.current()->parent() == item->parentProgramItem() ) { + K3bExternalBinViewItem* bi = (K3bExternalBinViewItem*)item->tqparentProgramItem()->firstChild(); + TQListViewItemIterator it( bi ); + while( it.current() && it.current()->tqparent() == item->tqparentProgramItem() ) { ((K3bExternalBinViewItem*)it.current())->setDefault(false); ++it; } @@ -302,7 +302,7 @@ void K3bExternalBinWidget::slotSetDefaultButtonClicked() } -void K3bExternalBinWidget::slotProgramSelectionChanged( QListViewItem* item ) +void K3bExternalBinWidget::slotProgramSelectionChanged( TQListViewItem* item ) { K3bExternalBinViewItem* bV = dynamic_cast<K3bExternalBinViewItem*>( item ); if( bV ) { diff --git a/src/option/k3bexternalbinwidget.h b/src/option/k3bexternalbinwidget.h index fe2e163..14fab6a 100644 --- a/src/option/k3bexternalbinwidget.h +++ b/src/option/k3bexternalbinwidget.h @@ -18,26 +18,27 @@ #define K3B_EXTERNAL_BIN_WIDGET_H -#include <qwidget.h> -#include <qptrlist.h> +#include <tqwidget.h> +#include <tqptrlist.h> #include <k3blistview.h> class K3bExternalBinManager; -class QPushButton; -class QTabWidget; +class TQPushButton; +class TQTabWidget; class KEditListBox; class K3bExternalProgram; class K3bExternalBin; -class K3bExternalBinWidget : public QWidget +class K3bExternalBinWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - K3bExternalBinWidget( K3bExternalBinManager*, QWidget* parent = 0, const char* name = 0 ); + K3bExternalBinWidget( K3bExternalBinManager*, TQWidget* tqparent = 0, const char* name = 0 ); ~K3bExternalBinWidget(); class K3bExternalBinViewItem; @@ -50,28 +51,28 @@ class K3bExternalBinWidget : public QWidget private slots: void slotSetDefaultButtonClicked(); - void slotProgramSelectionChanged( QListViewItem* ); + void slotProgramSelectionChanged( TQListViewItem* ); void saveSearchPath(); private: K3bExternalBinManager* m_manager; - QTabWidget* m_mainTabWidget; + TQTabWidget* m_mainTabWidget; K3bListView* m_programView; K3bListView* m_parameterView; KEditListBox* m_searchPathBox; - QPushButton* m_defaultButton; - QPushButton* m_rescanButton; + TQPushButton* m_defaultButton; + TQPushButton* m_rescanButton; - QPtrList<K3bExternalProgramViewItem> m_programRootItems; + TQPtrList<K3bExternalProgramViewItem> m_programRootItems; }; class K3bExternalBinWidget::K3bExternalProgramViewItem : public K3bListViewItem { public: - K3bExternalProgramViewItem( K3bExternalProgram* p, QListView* parent ); + K3bExternalProgramViewItem( K3bExternalProgram* p, TQListView* tqparent ); K3bExternalProgram* program() const { return m_program; } @@ -84,10 +85,10 @@ class K3bExternalBinWidget::K3bExternalProgramViewItem : public K3bListViewItem class K3bExternalBinWidget::K3bExternalBinViewItem : public K3bListViewItem { public: - K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* parent ); + K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* tqparent ); K3bExternalBin* bin() const { return m_bin; } - K3bExternalProgramViewItem* parentProgramItem() const { return m_parent; } + K3bExternalProgramViewItem* tqparentProgramItem() const { return m_parent; } bool isDefault() const { return m_default; } void setDefault( bool b ); diff --git a/src/option/k3bmiscoptiontab.cpp b/src/option/k3bmiscoptiontab.cpp index d81e565..d6c7de0 100644 --- a/src/option/k3bmiscoptiontab.cpp +++ b/src/option/k3bmiscoptiontab.cpp @@ -24,9 +24,9 @@ #include <k3binteractiondialog.h> #include <k3bintmapcombobox.h> -#include <qcheckbox.h> -#include <qfileinfo.h> -#include <qradiobutton.h> +#include <tqcheckbox.h> +#include <tqfileinfo.h> +#include <tqradiobutton.h> #include <kapplication.h> #include <klocale.h> @@ -38,12 +38,12 @@ #include <kcombobox.h> -K3bMiscOptionTab::K3bMiscOptionTab(QWidget *parent, const char *name ) - : base_K3bMiscOptionTab(parent,name) +K3bMiscOptionTab::K3bMiscOptionTab(TQWidget *tqparent, const char *name ) + : base_K3bMiscOptionTab(tqparent,name) { m_editTempDir->setMode( KFile::Directory ); - connect( m_buttonConfigureAudioOutput, SIGNAL(clicked()), - this, SLOT(slotConfigureAudioOutput()) ); + connect( m_buttonConfigureAudioOutput, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotConfigureAudioOutput()) ); m_comboActionDialogSettings->insertItem( K3bInteractionDialog::LOAD_K3B_DEFAULTS, i18n("Default Settings"), @@ -80,7 +80,7 @@ void K3bMiscOptionTab::readSettings() K3bInteractionDialog::LOAD_SAVED_SETTINGS ) ); m_checkSystemConfig->setChecked( c->readBoolEntry( "check system config", true ) ); - QString tempdir = c->readPathEntry( "Temp Dir", KGlobal::dirs()->resourceDirs( "tmp" ).first() ); + TQString tempdir = c->readPathEntry( "Temp Dir", KGlobal::dirs()->resourceDirs( "tmp" ).first() ); m_editTempDir->setURL( tempdir ); // if( c->readEntry( "Multiple Instances", "smart" ) == "smart" ) @@ -90,10 +90,10 @@ void K3bMiscOptionTab::readSettings() // Audio Output m_comboAudioOutputSystem->clear(); - QPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioOutput" ); - for( QPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) { + TQPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioOutput" ); + for( TQPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) { K3bAudioOutputPlugin* f = static_cast<K3bAudioOutputPlugin*>( it.current() ); - m_comboAudioOutputSystem->insertItem( QString::fromLocal8Bit(f->soundSystem()) ); + m_comboAudioOutputSystem->insertItem( TQString(TQString::fromLocal8Bit(f->soundSystem())) ); } m_comboAudioOutputSystem->setCurrentItem( c->readEntry( "Audio Output System", "arts" ), false ); @@ -116,18 +116,18 @@ bool K3bMiscOptionTab::saveSettings() c->writeEntry( "check system config", m_checkSystemConfig->isChecked() ); c->writeEntry( "action dialog startup settings", m_comboActionDialogSettings->selectedValue() ); - QString tempDir = m_editTempDir->url(); - QFileInfo fi( tempDir ); + TQString tempDir = m_editTempDir->url(); + TQFileInfo fi( tempDir ); if( fi.isRelative() ) { fi.setFile( fi.absFilePath() ); } if( !fi.exists() ) { - if( KMessageBox::questionYesNo( this, i18n("Directory (%1) does not exist. Create?").arg(tempDir), + if( KMessageBox::questionYesNo( this, i18n("Directory (%1) does not exist. Create?").tqarg(tempDir), i18n("Create Directory"), i18n("Create"), KStdGuiItem::cancel() ) == KMessageBox::Yes ) { if( !KStandardDirs::makeDir( fi.absFilePath() ) ) { - KMessageBox::error( this, i18n("Unable to create directory %1").arg(tempDir) ); + KMessageBox::error( this, i18n("Unable to create directory %1").tqarg(tempDir) ); return false; } } @@ -147,7 +147,7 @@ bool K3bMiscOptionTab::saveSettings() // check for writing permission if( !fi.isWritable() ) { - KMessageBox::error( this, i18n("You do not have permission to write to %1.").arg(fi.absFilePath()) ); + KMessageBox::error( this, i18n("You do not have permission to write to %1.").tqarg(fi.absFilePath()) ); return false; } @@ -178,7 +178,7 @@ bool K3bMiscOptionTab::saveSettings() void K3bMiscOptionTab::slotConfigureAudioOutput() { - QString system = m_comboAudioOutputSystem->currentText(); + TQString system = m_comboAudioOutputSystem->currentText(); if( K3bAudioOutputPlugin* plugin = K3bAudioServer::findOutputPlugin( system.local8Bit() ) ) { k3bcore->pluginManager()->execPluginDialog( plugin, this ); } diff --git a/src/option/k3bmiscoptiontab.h b/src/option/k3bmiscoptiontab.h index 6e5ded6..1c5de7e 100644 --- a/src/option/k3bmiscoptiontab.h +++ b/src/option/k3bmiscoptiontab.h @@ -19,7 +19,7 @@ #include "base_k3bmiscoptiontab.h" -class QCheckBox; +class TQCheckBox; class KURLRequester; /** @@ -28,9 +28,10 @@ class KURLRequester; class K3bMiscOptionTab : public base_K3bMiscOptionTab { Q_OBJECT + TQ_OBJECT public: - K3bMiscOptionTab(QWidget *parent=0, const char *name=0); + K3bMiscOptionTab(TQWidget *tqparent=0, const char *name=0); ~K3bMiscOptionTab(); void readSettings(); diff --git a/src/option/k3bnotifyoptiontab.cpp b/src/option/k3bnotifyoptiontab.cpp index 60ddc7c..0cc6e5d 100644 --- a/src/option/k3bnotifyoptiontab.cpp +++ b/src/option/k3bnotifyoptiontab.cpp @@ -21,16 +21,16 @@ #include <knotifydialog.h> #include <kdebug.h> -#include <qlayout.h> +#include <tqlayout.h> -K3bNotifyOptionTab::K3bNotifyOptionTab( QWidget* parent, const char* name ) - : QWidget( parent, name ) +K3bNotifyOptionTab::K3bNotifyOptionTab( TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { m_notifyWidget = new KNotify::KNotifyWidget( this ); - QHBoxLayout* box = new QHBoxLayout( this ); + TQHBoxLayout* box = new TQHBoxLayout( this ); box->addWidget( m_notifyWidget ); } diff --git a/src/option/k3bnotifyoptiontab.h b/src/option/k3bnotifyoptiontab.h index 03314dc..6eb3fed 100644 --- a/src/option/k3bnotifyoptiontab.h +++ b/src/option/k3bnotifyoptiontab.h @@ -18,19 +18,20 @@ #ifndef _K3B_NOTIFY_OPTIONTAB_H_ #define _K3B_NOTIFY_OPTIONTAB_H_ -#include <qwidget.h> +#include <tqwidget.h> namespace KNotify { class KNotifyWidget; } -class K3bNotifyOptionTab : public QWidget +class K3bNotifyOptionTab : public TQWidget { Q_OBJECT + TQ_OBJECT public: - K3bNotifyOptionTab( QWidget* parent = 0, const char* name = 0 ); + K3bNotifyOptionTab( TQWidget* tqparent = 0, const char* name = 0 ); ~K3bNotifyOptionTab(); void readSettings(); diff --git a/src/option/k3boptiondialog.cpp b/src/option/k3boptiondialog.cpp index d0ba7ce..91a9fb3 100644 --- a/src/option/k3boptiondialog.cpp +++ b/src/option/k3boptiondialog.cpp @@ -26,10 +26,10 @@ #include <k3bsystemproblemdialog.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qtabwidget.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqtabwidget.h> #include <klocale.h> #include <kiconloader.h> @@ -40,8 +40,8 @@ // TODO: handle the default-settings -K3bOptionDialog::K3bOptionDialog(QWidget *parent, const char *name, bool modal ) - : KDialogBase( IconList, i18n("Settings"), Apply|Ok|Cancel, Ok, parent,name, modal, true) +K3bOptionDialog::K3bOptionDialog(TQWidget *tqparent, const char *name, bool modal ) + : KDialogBase( IconList, i18n("Settings"), Apply|Ok|Cancel, Ok, tqparent,name, modal, true) { setupMiscPage(); setupDevicePage(); @@ -126,10 +126,10 @@ void K3bOptionDialog::slotDefault() void K3bOptionDialog::setupBurningPage() { - QFrame* frame = addPage( i18n("Advanced"), i18n("Advanced Settings"), + TQFrame* frame = addPage( i18n("Advanced"), i18n("Advanced Settings"), KGlobal::instance()->iconLoader()->loadIcon( "cdwriter_unmount", KIcon::NoGroup, KIcon::SizeMedium ) ); - QGridLayout* _frameLayout = new QGridLayout( frame ); + TQGridLayout* _frameLayout = new TQGridLayout( frame ); _frameLayout->setSpacing( 0 ); _frameLayout->setMargin( 0 ); @@ -140,10 +140,10 @@ void K3bOptionDialog::setupBurningPage() void K3bOptionDialog::setupProgramsPage() { - QFrame* frame = addPage( i18n("Programs"), i18n("Setup External Programs"), + TQFrame* frame = addPage( i18n("Programs"), i18n("Setup External Programs"), KGlobal::instance()->iconLoader()->loadIcon( "exec", KIcon::NoGroup, KIcon::SizeMedium ) ); - QGridLayout* _frameLayout = new QGridLayout( frame ); + TQGridLayout* _frameLayout = new TQGridLayout( frame ); _frameLayout->setSpacing( 0 ); _frameLayout->setMargin( 0 ); @@ -154,13 +154,13 @@ void K3bOptionDialog::setupProgramsPage() void K3bOptionDialog::setupCddbPage() { - QFrame* frame = addPage( i18n("CDDB"), i18n("Setup the CDDB Server"), + TQFrame* frame = addPage( i18n("CDDB"), i18n("Setup the CDDB Server"), KGlobal::instance()->iconLoader()->loadIcon( "connect_established", KIcon::NoGroup, KIcon::SizeMedium ) ); - QGridLayout* mainGrid = new QGridLayout( frame ); + TQGridLayout* mainGrid = new TQGridLayout( frame ); mainGrid->setSpacing(0); mainGrid->setMargin(0); - // QTabWidget *_tab = new QTabWidget( frame ); + // TQTabWidget *_tab = new TQTabWidget( frame ); m_cddbOptionTab = new K3bCddbOptionTab( frame, "cddbremotepage"); // m_cddbLocalTab = new K3bCddbLocalDBTab( frame, "cddblocalpage"); // _tab->addTab( m_cddbOptionTab, i18n("Remote") ); @@ -172,10 +172,10 @@ void K3bOptionDialog::setupCddbPage() void K3bOptionDialog::setupDevicePage() { - QFrame* frame = addPage( i18n("Devices"), i18n("Setup Devices"), + TQFrame* frame = addPage( i18n("Devices"), i18n("Setup Devices"), KGlobal::instance()->iconLoader()->loadIcon( "blockdevice", KIcon::NoGroup, KIcon::SizeMedium ) ); - QHBoxLayout* box = new QHBoxLayout( frame ); + TQHBoxLayout* box = new TQHBoxLayout( frame ); box->setSpacing(0); box->setMargin(0); m_deviceOptionTab = new K3bDeviceOptionTab( frame, "deviceOptionTab" ); @@ -185,10 +185,10 @@ void K3bOptionDialog::setupDevicePage() void K3bOptionDialog::setupMiscPage() { - QFrame* frame = addPage( i18n("Misc"), i18n("Miscellaneous Settings"), + TQFrame* frame = addPage( i18n("Misc"), i18n("Miscellaneous Settings"), KGlobal::instance()->iconLoader()->loadIcon( "misc", KIcon::NoGroup, KIcon::SizeMedium ) ); - QVBoxLayout* box = new QVBoxLayout( frame ); + TQVBoxLayout* box = new TQVBoxLayout( frame ); box->setSpacing( 0 ); box->setMargin( 0 ); @@ -199,10 +199,10 @@ void K3bOptionDialog::setupMiscPage() void K3bOptionDialog::setupNotifyPage() { - QFrame* frame = addPage( i18n("Notifications"), i18n("System Notifications"), + TQFrame* frame = addPage( i18n("Notifications"), i18n("System Notifications"), KGlobal::instance()->iconLoader()->loadIcon( "knotify", KIcon::NoGroup, KIcon::SizeMedium ) ); - QVBoxLayout* box = new QVBoxLayout( frame ); + TQVBoxLayout* box = new TQVBoxLayout( frame ); box->setSpacing( 0 ); box->setMargin( 0 ); @@ -213,10 +213,10 @@ void K3bOptionDialog::setupNotifyPage() void K3bOptionDialog::setupPluginPage() { - QFrame* frame = addPage( i18n("Plugins"), i18n("K3b Plugin Configuration"), + TQFrame* frame = addPage( i18n("Plugins"), i18n("K3b Plugin Configuration"), KGlobal::instance()->iconLoader()->loadIcon( "gear", KIcon::NoGroup, KIcon::SizeMedium ) ); - QVBoxLayout* box = new QVBoxLayout( frame ); + TQVBoxLayout* box = new TQVBoxLayout( frame ); box->setSpacing( 0 ); box->setMargin( 0 ); @@ -227,10 +227,10 @@ void K3bOptionDialog::setupPluginPage() void K3bOptionDialog::setupThemePage() { - QFrame* frame = addPage( i18n("Themes"), i18n("K3b GUI Themes"), + TQFrame* frame = addPage( i18n("Themes"), i18n("K3b GUI Themes"), KGlobal::instance()->iconLoader()->loadIcon( "style", KIcon::NoGroup, KIcon::SizeMedium ) ); - QVBoxLayout* box = new QVBoxLayout( frame ); + TQVBoxLayout* box = new TQVBoxLayout( frame ); box->setSpacing( 0 ); box->setMargin( 0 ); @@ -239,14 +239,14 @@ void K3bOptionDialog::setupThemePage() } -// void K3bOptionDialog::addOptionPage( QWidget* widget, -// const QString& name, -// const QString& header, -// const QPixmap& icon ) +// void K3bOptionDialog::addOptionPage( TQWidget* widget, +// const TQString& name, +// const TQString& header, +// const TQPixmap& icon ) // { -// QFrame* frame = addPage( name, header, icon ); +// TQFrame* frame = addPage( name, header, icon ); -// QVBoxLayout* box = new QVBoxLayout( frame ); +// TQVBoxLayout* box = new TQVBoxLayout( frame ); // box->setSpacing( 0 ); // box->setMargin( 0 ); diff --git a/src/option/k3boptiondialog.h b/src/option/k3boptiondialog.h index 1f417b6..c033504 100644 --- a/src/option/k3boptiondialog.h +++ b/src/option/k3boptiondialog.h @@ -35,17 +35,18 @@ class K3bThemeOptionTab; class K3bOptionDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - K3bOptionDialog(QWidget *parent=0, const char *name=0, bool modal = true); + K3bOptionDialog(TQWidget *tqparent=0, const char *name=0, bool modal = true); ~K3bOptionDialog(); enum m_configPageIndex { Burning = 0, Devices = 1, Programs = 2, Cddb = 3 }; -/* void addOptionPage( QWidget* widget, */ -/* const QString& name, */ -/* const QString& header, */ -/* const QPixmap& icon ); */ +/* void addOptionPage( TQWidget* widget, */ +/* const TQString& name, */ +/* const TQString& header, */ +/* const TQPixmap& icon ); */ protected slots: void slotOk(); diff --git a/src/option/k3bpluginoptiontab.cpp b/src/option/k3bpluginoptiontab.cpp index 59d7b74..2e67ae5 100644 --- a/src/option/k3bpluginoptiontab.cpp +++ b/src/option/k3bpluginoptiontab.cpp @@ -30,15 +30,15 @@ #include <kglobalsettings.h> #include <kdeversion.h> -#include <qstringlist.h> -#include <qpushbutton.h> +#include <tqstringlist.h> +#include <tqpushbutton.h> class K3bPluginOptionTab::PluginViewItem : public K3bListViewItem { public: - PluginViewItem( K3bPlugin* p, KListViewItem* parent ) - : K3bListViewItem( parent ), + PluginViewItem( K3bPlugin* p, KListViewItem* tqparent ) + : K3bListViewItem( tqparent ), plugin(p) { const K3bPluginInfo& info = p->pluginInfo(); setText( 0, info.name() ); @@ -58,8 +58,8 @@ public: -K3bPluginOptionTab::K3bPluginOptionTab( QWidget* parent, const char* name ) - : base_K3bPluginOptionTab( parent, name ) +K3bPluginOptionTab::K3bPluginOptionTab( TQWidget* tqparent, const char* name ) + : base_K3bPluginOptionTab( tqparent, name ) { #if KDE_IS_VERSION(3,4,0) m_viewPlugins->setShadeSortColumn( false ); @@ -69,12 +69,12 @@ K3bPluginOptionTab::K3bPluginOptionTab( QWidget* parent, const char* name ) m_viewPlugins->addColumn( i18n("Version") ); m_viewPlugins->addColumn( i18n("Description") ); m_viewPlugins->addColumn( i18n("License") ); - m_viewPlugins->setAlternateBackground( QColor() ); + m_viewPlugins->setAlternateBackground( TQColor() ); m_viewPlugins->setAllColumnsShowFocus(true); - connect( m_viewPlugins, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)), this, SLOT(slotConfigureButtonClicked()) ); - connect( m_buttonConfigure, SIGNAL(clicked()), this, SLOT(slotConfigureButtonClicked()) ); - connect( m_viewPlugins, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged()) ); + connect( m_viewPlugins, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), this, TQT_SLOT(slotConfigureButtonClicked()) ); + connect( m_buttonConfigure, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConfigureButtonClicked()) ); + connect( m_viewPlugins, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) ); } @@ -86,15 +86,15 @@ K3bPluginOptionTab::~K3bPluginOptionTab() void K3bPluginOptionTab::readSettings() { m_viewPlugins->clear(); - QStringList groups = k3bcore->pluginManager()->groups(); - for( QStringList::const_iterator it = groups.begin(); + TQStringList groups = k3bcore->pluginManager()->groups(); + for( TQStringList::const_iterator it = groups.begin(); it != groups.end(); ++it ) { - const QString& group = *it; + const TQString& group = *it; K3bListViewItem* groupViewItem = new K3bListViewItem( m_viewPlugins, m_viewPlugins->lastChild(), group ); - QFont f( font() ); + TQFont f( font() ); f.setBold(true); groupViewItem->setFont( 0, f ); groupViewItem->setBackgroundColor( 0, KGlobalSettings::alternateBackgroundColor() ); @@ -104,8 +104,8 @@ void K3bPluginOptionTab::readSettings() groupViewItem->setBackgroundColor( 4, KGlobalSettings::alternateBackgroundColor() ); groupViewItem->setSelectable( false ); - QPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( group ); - for( QPtrListIterator<K3bPlugin> fit( fl ); fit.current(); ++fit ) + TQPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( group ); + for( TQPtrListIterator<K3bPlugin> fit( fl ); fit.current(); ++fit ) (void)new PluginViewItem( fit.current(), groupViewItem ); groupViewItem->setOpen(true); @@ -123,7 +123,7 @@ bool K3bPluginOptionTab::saveSettings() void K3bPluginOptionTab::slotConfigureButtonClicked() { - QListViewItem* item = m_viewPlugins->selectedItem(); + TQListViewItem* item = m_viewPlugins->selectedItem(); if( PluginViewItem* pi = dynamic_cast<PluginViewItem*>( item ) ) k3bcore->pluginManager()->execPluginDialog( pi->plugin, this ); } diff --git a/src/option/k3bpluginoptiontab.h b/src/option/k3bpluginoptiontab.h index 1fb1821..c9db5af 100644 --- a/src/option/k3bpluginoptiontab.h +++ b/src/option/k3bpluginoptiontab.h @@ -23,9 +23,10 @@ class K3bPluginOptionTab : public base_K3bPluginOptionTab { Q_OBJECT + TQ_OBJECT public: - K3bPluginOptionTab( QWidget* parent = 0, const char* name = 0 ); + K3bPluginOptionTab( TQWidget* tqparent = 0, const char* name = 0 ); ~K3bPluginOptionTab(); public slots: diff --git a/src/option/k3bthemeoptiontab.cpp b/src/option/k3bthemeoptiontab.cpp index 4fd3f61..005af83 100644 --- a/src/option/k3bthemeoptiontab.cpp +++ b/src/option/k3bthemeoptiontab.cpp @@ -32,9 +32,9 @@ #include <kurlrequesterdlg.h> #include <kdeversion.h> -#include <qlabel.h> -#include <qfile.h> -#include <qfileinfo.h> +#include <tqlabel.h> +#include <tqfile.h> +#include <tqfileinfo.h> class K3bThemeOptionTab::Private @@ -46,8 +46,8 @@ public: class ThemeViewItem : public KListViewItem { public: - ThemeViewItem( K3bTheme* theme_, QListView* parent, QListViewItem* after ) - : KListViewItem( parent, after ), + ThemeViewItem( K3bTheme* theme_, TQListView* tqparent, TQListViewItem* after ) + : KListViewItem( tqparent, after ), theme(theme_) { setText( 0, theme->name() ); setText( 1, theme->author() ); @@ -58,8 +58,8 @@ public: K3bTheme* theme; }; -K3bThemeOptionTab::K3bThemeOptionTab(QWidget *parent, const char *name ) - : base_K3bThemeOptionTab(parent,name) +K3bThemeOptionTab::K3bThemeOptionTab(TQWidget *tqparent, const char *name ) + : base_K3bThemeOptionTab(tqparent,name) { d = new Private(); @@ -67,14 +67,14 @@ K3bThemeOptionTab::K3bThemeOptionTab(QWidget *parent, const char *name ) m_viewTheme->setShadeSortColumn( false ); #endif - connect( m_viewTheme, SIGNAL(selectionChanged()), - this, SLOT(selectionChanged()) ); - connect( kapp, SIGNAL(appearanceChanged()), - this, SLOT(selectionChanged()) ); - connect( m_buttonInstallTheme, SIGNAL(clicked()), - this, SLOT(slotInstallTheme()) ); - connect( m_buttonRemoveTheme, SIGNAL(clicked()), - this, SLOT(slotRemoveTheme()) ); + connect( m_viewTheme, TQT_SIGNAL(selectionChanged()), + this, TQT_SLOT(selectionChanged()) ); + connect( kapp, TQT_SIGNAL(appearanceChanged()), + this, TQT_SLOT(selectionChanged()) ); + connect( m_buttonInstallTheme, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotInstallTheme()) ); + connect( m_buttonRemoveTheme, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotRemoveTheme()) ); } @@ -90,8 +90,8 @@ void K3bThemeOptionTab::readSettings() k3bappcore->themeManager()->loadThemes(); - QValueList<K3bTheme*> themes = k3bappcore->themeManager()->themes(); - for( QValueList<K3bTheme*>::const_iterator it = themes.constBegin(); it != themes.constEnd(); ++it ) { + TQValueList<K3bTheme*> themes = k3bappcore->themeManager()->themes(); + for( TQValueList<K3bTheme*>::const_iterator it = themes.constBegin(); it != themes.constEnd(); ++it ) { K3bTheme* theme = *it; ThemeViewItem* item = new ThemeViewItem( theme, m_viewTheme, m_viewTheme->lastItem() ); if( theme == k3bappcore->themeManager()->currentTheme() ) @@ -131,32 +131,32 @@ void K3bThemeOptionTab::selectionChanged() void K3bThemeOptionTab::slotInstallTheme() { - KURL themeURL = KURLRequesterDlg::getURL( QString::null, this, + KURL themeURL = KURLRequesterDlg::getURL( TQString(), this, i18n("Drag or Type Theme URL") ); if( themeURL.url().isEmpty() ) return; - QString themeTmpFile; + TQString themeTmpFile; // themeTmpFile contains the name of the downloaded file if( !KIO::NetAccess::download( themeURL, themeTmpFile, this ) ) { - QString sorryText; + TQString sorryText; if (themeURL.isLocalFile()) sorryText = i18n("Unable to find the icon theme archive %1."); else sorryText = i18n("Unable to download the icon theme archive.\n" "Please check that address %1 is correct."); - KMessageBox::sorry( this, sorryText.arg(themeURL.prettyURL()) ); + KMessageBox::sorry( this, sorryText.tqarg(themeURL.prettyURL()) ); return; } // check if the archive contains a dir with a k3b.theme file - QString themeName; + TQString themeName; KTar archive( themeTmpFile ); archive.open(IO_ReadOnly); const KArchiveDirectory* themeDir = archive.directory(); - QStringList entries = themeDir->entries(); + TQStringList entries = themeDir->entries(); bool validThemeArchive = false; if( entries.count() > 0 ) { if( themeDir->entry(entries.first())->isDirectory() ) { @@ -180,10 +180,10 @@ void K3bThemeOptionTab::slotInstallTheme() KMessageBox::error( this, i18n("The file is not a valid K3b theme archive.") ); } else { - QString themeBasePath = locateLocal( "data", "k3b/pics/" ); + TQString themeBasePath = locateLocal( "data", "k3b/pics/" ); // check if there already is a theme by that name - if( !QFile::exists( themeBasePath + '/' + themeName ) || + if( !TQFile::exists( themeBasePath + '/' + themeName ) || KMessageBox::warningYesNo( this, i18n("A theme with the name '%1' already exists. Do you want to " "overwrite it?"), @@ -206,7 +206,7 @@ void K3bThemeOptionTab::slotRemoveTheme() { ThemeViewItem* item = (ThemeViewItem*)m_viewTheme->selectedItem(); if( item ) { - QString question=i18n("<qt>Are you sure you want to remove the " + TQString question=i18n("<qt>Are you sure you want to remove the " "<strong>%1</strong> icon theme?<br>" "<br>" "This will delete the files installed by this theme.</qt>"). @@ -217,10 +217,10 @@ void K3bThemeOptionTab::slotRemoveTheme() K3bTheme* theme = item->theme; delete item; - QString path = theme->path(); + TQString path = theme->path(); // delete k3b.theme file to avoid it to get loaded - QFile::remove( path + "/k3b.theme" ); + TQFile::remove( path + "/k3b.theme" ); // reread the themes (this will also set the default theme in case we delete the // selected one) diff --git a/src/option/k3bthemeoptiontab.h b/src/option/k3bthemeoptiontab.h index bfb1d72..d247f94 100644 --- a/src/option/k3bthemeoptiontab.h +++ b/src/option/k3bthemeoptiontab.h @@ -26,9 +26,10 @@ class K3bThemeOptionTab : public base_K3bThemeOptionTab { Q_OBJECT + TQ_OBJECT public: - K3bThemeOptionTab( QWidget* parent = 0, const char* name = 0 ); + K3bThemeOptionTab( TQWidget* tqparent = 0, const char* name = 0 ); ~K3bThemeOptionTab(); void readSettings(); |