~ubuntu-branches/ubuntu/breezy/kdemultimedia/breezy

« back to all changes in this revision

Viewing changes to arts/gui/kde/artstestgui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-03-24 04:48:58 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050324044858-8ff88o9jxej6ii3d
Tags: 4:3.4.0-0ubuntu3
Add kubuntu_02_hide_arts_menu_entries.diff to hide artsbuilder and artscontrol k-menu entries

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <connect.h>
25
25
#include <qiomanager.h>
26
26
#include <qpushbutton.h>
27
 
#include <kapp.h>
 
27
#include <kapplication.h>
28
28
#include <objectmanager.h>
29
29
 
30
30
using namespace Arts;
38
38
        ObjectManager::the()->provideCapability("kdegui");
39
39
 
40
40
        Widget w;
41
 
        w.width(300); w.height(100); w.show();
 
41
        w.width(500); w.height(350); w.show();
42
42
 
43
43
        Button b;
44
44
        b.parent(w);
62
62
        p.parent(w);
63
63
        p.x(150);
64
64
        p.y(10);
65
 
        p.text("delay (ms)");
 
65
        p.caption("delay (ms)");
66
66
        p.color("red");
67
67
        p.min(10);
68
68
        p.max(100);
73
73
        q.parent(w);
74
74
        q.x(250);
75
75
        q.y(10);
76
 
        q.text("delay (ms)");
 
76
        q.caption("delay (ms)");
77
77
        q.color("blue");
78
78
        q.min(10);
79
79
        q.max(100);
80
80
        q.value(90);
81
81
        q.show();
82
82
 
 
83
        Graph g;
 
84
        g.parent(w);
 
85
        g.x(50);
 
86
        g.y(70);
 
87
        g.width(400);
 
88
        g.height(230);
 
89
        g.caption("a graph");
 
90
        g.minx(0.0);
 
91
        g.maxx(1.0);
 
92
        g.miny(0.0);
 
93
        g.maxy(1.0);
 
94
        g.show();
 
95
 
 
96
        GraphLine gline;
 
97
        gline.graph(g);
 
98
        std::vector<GraphPoint> points;
 
99
        points.push_back(GraphPoint(0, 1.0));
 
100
        points.push_back(GraphPoint(0.5, 1.0));
 
101
        points.push_back(GraphPoint(0.501, 0.0));
 
102
        points.push_back(GraphPoint(1.0, 0.0));
 
103
        gline.points(points);
 
104
        gline.color("red");
 
105
        gline.editable(true);
 
106
 
83
107
        /* moves q if p is moved */
84
108
        connect(p,"value_changed",q,"value");
85
109