summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/imunge
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:07 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:07 -0600
commit3ed7c09d22a5f310a97516f5bab6068e5688a813 (patch)
tree23ba07d28f7fad17824db1fc40e9cf1ad4942480 /kjsembed/docs/examples/imunge
parent3a8473ba2620b85b165b5a2fa1a6b153f5945800 (diff)
downloadtdebindings-3ed7c09d22a5f310a97516f5bab6068e5688a813.tar.gz
tdebindings-3ed7c09d22a5f310a97516f5bab6068e5688a813.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kjsembed/docs/examples/imunge')
-rw-r--r--kjsembed/docs/examples/imunge/effectbrowser.ui2
-rwxr-xr-xkjsembed/docs/examples/imunge/imunge.js12
-rwxr-xr-xkjsembed/docs/examples/imunge/imunge_actions.js28
3 files changed, 21 insertions, 21 deletions
diff --git a/kjsembed/docs/examples/imunge/effectbrowser.ui b/kjsembed/docs/examples/imunge/effectbrowser.ui
index d088d18e..10eb2d79 100644
--- a/kjsembed/docs/examples/imunge/effectbrowser.ui
+++ b/kjsembed/docs/examples/imunge/effectbrowser.ui
@@ -85,7 +85,7 @@
<set>AlignVCenter</set>
</property>
</widget>
- <widget class="KListView" row="2" column="0" rowspan="2" colspan="1">
+ <widget class="TDEListView" row="2" column="0" rowspan="2" colspan="1">
<column>
<property name="text">
<string>Effect Name</string>
diff --git a/kjsembed/docs/examples/imunge/imunge.js b/kjsembed/docs/examples/imunge/imunge.js
index 137cb272..96924670 100755
--- a/kjsembed/docs/examples/imunge/imunge.js
+++ b/kjsembed/docs/examples/imunge/imunge.js
@@ -3,7 +3,7 @@
//
// Setup main window
//
-mw = new KMainWindow();
+mw = new TDEMainWindow();
ac = mw.actionCollection();
mb = mw.menuBar();
sb = mw.statusBar();
@@ -162,12 +162,12 @@ mw.setup_actions = function()
saveas_action = StdAction.saveAs( null, '', ac );
saveas_action.connect( saveas_action, 'activated()', this, 'saveFileAs' );
- savecopyas_action = new KAction( ac, 'save_copy_as_action' );
+ savecopyas_action = new TDEAction( ac, 'save_copy_as_action' );
savecopyas_action.text = 'Save Copy As...';
savecopyas_action.icon = 'filesaveas';
savecopyas_action.connect( savecopyas_action, 'activated()', this, 'saveCopyAs' );
- fileproperties_action = new KAction( ac, 'file_properties_action' );
+ fileproperties_action = new TDEAction( ac, 'file_properties_action' );
fileproperties_action.text = 'Properties...';
fileproperties_action.connect( fileproperties_action, 'activated()', this, 'fileProperties' );
@@ -186,7 +186,7 @@ mw.setup_actions = function()
// StdAction.redisplay( null, '', ac );
// Effects
- browseeffects_action = new KAction( ac, 'browseeffects_action' );
+ browseeffects_action = new TDEAction( ac, 'browseeffects_action' );
browseeffects_action.text = 'Browse Effects...';
browseeffects_action.shortcut = 'Ctrl+E';
browseeffects_action.connect( browseeffects_action, 'activated()', this, 'browse_effects' );
@@ -196,12 +196,12 @@ mw.setup_actions = function()
this.create_image_operations( mw, ac );
// Tools
- ksnapshot_action = new KAction( ac, 'ksnapshot_action' );
+ ksnapshot_action = new TDEAction( ac, 'ksnapshot_action' );
ksnapshot_action.text = 'KSnapshot';
ksnapshot_action.icon = 'ksnapshot';
ksnapshot_action.connect( ksnapshot_action, 'activated()', this, 'run_ksnapshot' );
- scriptconsole_action = new KToggleAction( ac, 'scriptconsole_action' );
+ scriptconsole_action = new TDEToggleAction( ac, 'scriptconsole_action' );
scriptconsole_action.text = 'Script Console';
scriptconsole_action.icon = 'konsole';
scriptconsole_action.connect( scriptconsole_action, 'toggled(bool)', part.view(), 'setShown(bool)' );
diff --git a/kjsembed/docs/examples/imunge/imunge_actions.js b/kjsembed/docs/examples/imunge/imunge_actions.js
index e07d01d4..abc967d0 100755
--- a/kjsembed/docs/examples/imunge/imunge_actions.js
+++ b/kjsembed/docs/examples/imunge/imunge_actions.js
@@ -38,7 +38,7 @@ mw.create_all_effects = function( mw, ac )
//
// Water color
//
- var action = new KAction( ac, 'watercolor_action' );
+ var action = new TDEAction( ac, 'watercolor_action' );
action.text = '&Water Color';
action.icon = 'imageeffect';
@@ -61,7 +61,7 @@ mw.create_all_effects = function( mw, ac )
//
// To Gray
//
- action = new KAction( ac, 'togray_action' );
+ action = new TDEAction( ac, 'togray_action' );
action.text = '&Grayscale';
action.icon = 'imageeffect';
@@ -77,7 +77,7 @@ mw.create_all_effects = function( mw, ac )
//
// Charcoal
//
- action = new KAction( ac, 'charcoal_action' );
+ action = new TDEAction( ac, 'charcoal_action' );
action.text = '&Charcoal';
action.icon = 'imageeffect';
@@ -93,7 +93,7 @@ mw.create_all_effects = function( mw, ac )
//
// Implode
//
- var action = new KAction( ac, 'implode_action' );
+ var action = new TDEAction( ac, 'implode_action' );
action.text = '&Implode';
action.icon = 'imageeffect';
@@ -109,7 +109,7 @@ mw.create_all_effects = function( mw, ac )
//
// Emboss
//
- action = new KAction( ac, 'emboss_action' );
+ action = new TDEAction( ac, 'emboss_action' );
action.text = '&Emboss';
action.icon = 'imageeffect';
@@ -125,7 +125,7 @@ mw.create_all_effects = function( mw, ac )
//
// Normalize
//
- action = new KAction( ac, 'normalize_action' );
+ action = new TDEAction( ac, 'normalize_action' );
action.text = '&Normalize';
action.icon = 'imageeffect';
@@ -141,7 +141,7 @@ mw.create_all_effects = function( mw, ac )
//
// Equalize
//
- action = new KAction( ac, 'equalize_action' );
+ action = new TDEAction( ac, 'equalize_action' );
action.text = 'Equa&lize';
action.icon = 'imageeffect';
@@ -157,7 +157,7 @@ mw.create_all_effects = function( mw, ac )
//
// Despeckle
//
- action = new KAction( ac, 'despeckle_action' );
+ action = new TDEAction( ac, 'despeckle_action' );
action.text = '&Despeckle';
action.icon = 'imageeffect';
@@ -178,7 +178,7 @@ mw.create_image_operations = function( mw, ac )
//
// Crop
//
- action = new KAction( ac, 'crop_action' );
+ action = new TDEAction( ac, 'crop_action' );
action.text = 'Crop...';
action.icon = 'crop';
@@ -243,7 +243,7 @@ mw.create_image_operations = function( mw, ac )
//
// Resize
//
- action = new KAction( ac, 'resize_action' );
+ action = new TDEAction( ac, 'resize_action' );
action.text = 'Resize...';
action.icon = 'transform';
@@ -263,7 +263,7 @@ mw.create_image_operations = function( mw, ac )
//
// Rotate right
//
- action = new KAction( ac, 'rotate_right_action' );
+ action = new TDEAction( ac, 'rotate_right_action' );
action.text = 'Rotate &Right';
action.icon = 'rotate_cw';
@@ -278,7 +278,7 @@ mw.create_image_operations = function( mw, ac )
//
// Rotate left
//
- action = new KAction( ac, 'rotate_left_action' );
+ action = new TDEAction( ac, 'rotate_left_action' );
action.text = 'Rotate &Left';
action.icon = 'rotate';
@@ -293,7 +293,7 @@ mw.create_image_operations = function( mw, ac )
//
// Mirror Vertical
//
- action = new KAction( ac, 'mirror_vertical_action' );
+ action = new TDEAction( ac, 'mirror_vertical_action' );
action.text = 'Mirror &Vertical';
mw.apply_mirror_vertical = function()
@@ -307,7 +307,7 @@ mw.create_image_operations = function( mw, ac )
//
// Mirror Horizontal
//
- action = new KAction( ac, 'mirror_horizontal_action' );
+ action = new TDEAction( ac, 'mirror_horizontal_action' );
action.text = 'Mirror &Horizontal';
mw.apply_mirror_horizontal = function()