Rev 1767 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1803 | subik | 1 | /* $Id: colorwheel.cpp 1803 2005-03-30 13:15:05Z subik $ */ |
1767 | subik | 2 | #include "colorwheel.h" |
3 | #include "cwdialog.h" |
||
4 | #include "pluginmanager.h" |
||
5 | #include <qcursor.h> |
||
6 | #include <qlistview.h> |
||
7 | |||
8 | QString name() |
||
9 | { |
||
10 | return QObject::tr("&Color Wheel"); |
||
11 | } |
||
12 | |||
13 | PluginManager::PluginType type() |
||
14 | { |
||
15 | return PluginManager::Standard; |
||
16 | } |
||
17 | |||
18 | int ID() |
||
19 | { |
||
20 | return 66; |
||
21 | } |
||
22 | |||
23 | |||
24 | QString actionName() |
||
25 | { |
||
26 | return "ColorWheel"; |
||
27 | } |
||
28 | |||
29 | QString actionKeySequence() |
||
30 | { |
||
31 | return ""; |
||
32 | } |
||
33 | |||
34 | QString actionMenu() |
||
35 | { |
||
36 | return "Extras"; |
||
37 | } |
||
38 | |||
39 | QString actionMenuAfterName() |
||
40 | { |
||
41 | return ""; |
||
42 | } |
||
43 | |||
44 | bool actionEnabledOnStartup() |
||
45 | { |
||
46 | return true; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | Create dialog and insert font into Style menu when user accepts. |
||
51 | */ |
||
52 | void run(QWidget *d, ScribusApp */*plug*/) |
||
53 | { |
||
54 | ColorWheelDialog *dlg = new ColorWheelDialog(d, "dlg", TRUE, 0); |
||
55 | // run it and wait for user's reaction |
||
56 | if (dlg->exec() == QDialog::Accepted) |
||
57 | { |
||
58 | qDebug("exec"); |
||
59 | /* |
||
60 | if (plug->pluginManager->dllInput == "") |
||
61 | plug->SetNewFont(dlg->fontList->currentItem()->text(0)); |
||
62 | else |
||
63 | plug->pluginManager->dllReturn = dlg->fontList->currentItem()->text(0); |
||
64 | */ |
||
65 | } |
||
66 | delete dlg; |
||
67 | } |