Menu

[c54480]: / vymmodelwrapper.h  Maximize  Restore  History

Download this file

169 lines (159 with data), 5.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#ifndef VYMMODELWRAPPER_H
#define VYMMODELWRAPPER_H
#include <QColor>
#include <QObject>
#include <QScriptContext>
#include <QScriptable>
#include <QScriptValue>
#include <QVariant>
#include "scripting.h"
class BranchItem;
class VymModel;
class VymModelWrapper : public VymScriptContext
{
Q_OBJECT
public:
VymModelWrapper (VymModel* m);
/*
QString setResult( QString r );
bool setResult( bool r );
int setResult( int r );
*/
private:
BranchItem* getSelectedBranch();
QVariant getParameter( bool &ok, const QString &key, const QStringList &parameters);
public slots:
void addBranch();
void addBranchBefore();
void addMapCenter( qreal x, qreal y);
void addMapInsert( QString filename, int pos, int contentFilter);
void addMapInsert( const QString &filename, int pos);
void addMapInsert( const QString &filename);
void addMapReplace( QString filename);
void addSlide();
void addXLink( const QString &begin, const QString &end, int width, const QString &color, const QString &penstyle);
int branchCount();
int centerCount();
void centerOnID( const QString &id); // tested: ok
void clearFlags();
void colorBranch( const QString &color);
void colorSubtree( const QString &color);
void copy();
void cut();
void cycleTask();
bool exportMap();
QString getDestPath();
QString getFileDir();
QString getFileName();
QString getFrameType();
QString getHeadingPlainText();
QString getHeadingXML();
QString getMapAuthor();
QString getMapComment();
QString getMapTitle();
QString getNotePlainText();
QString getNoteXML();
QString getSelectionString();
int getTaskPriorityDelta();
QString getTaskSleep();
int getTaskSleepDays();
QString getURL();
QString getVymLink();
QString getXLinkColor();
int getXLinkWidth();
QString getXLinkPenStyle();
QString getXLinkStyleBegin();
QString getXLinkStyleEnd();
bool hasActiveFlag ( const QString &flag);
bool hasNote();
bool hasRichTextNote();
bool hasTask();
void importDir( const QString &path);
bool initIterator(const QString &iname, bool deepLevelsFirst = false);
bool isScrolled();
void loadImage( const QString &filename);
void loadNote( const QString &filename);
void move( qreal x, qreal y);
void moveRel( qreal x, qreal y);
void moveDown();
void moveUp();
void moveSlideDown( int n) ;
void moveSlideDown();
void moveSlideUp( int n );
void moveSlideUp();
bool nextIterator( const QString &iname);
void nop();
void note2URLs();
bool parseVymText(const QString &text);
void paste();
void redo();
bool relinkTo( const QString &parent, int num, qreal x, qreal y);
bool relinkTo( const QString &parent, int num);
bool relinkTo( const QString &parent);
void remove();
void removeChildren();
void removeKeepChildren();
void removeSlide(int n);
void saveImage( const QString &filename, const QString &format);
void saveNote( const QString &filename);
void scroll();
bool select( const QString &s );
bool selectID( const QString &s );
bool selectFirstBranch();
bool selectFirstChildBranch();
bool selectLastBranch();
bool selectLastChildBranch();
bool selectLastImage();
bool selectParent();
bool selectLatestAdded();
void setFlag( const QString &s);
void setHeadingPlainText( const QString &s );
void setHideExport( bool b);
void setHideLinkUnselected( bool b);
void setIncludeImagesHorizontally( bool b);
void setIncludeImagesVertically( bool b);
void setMapAnimCurve( int n );
void setMapAnimDuration( int n );
void setMapAuthor( const QString &s);
void setMapBackgroundColor( const QString &color);
void setMapComment( const QString &s);
void setMapDefLinkColor( const QString &color);
void setMapLinkStyle( const QString &style);
void setMapRotation( float a); // tested: ok
void setMapTitle( const QString &s);
void setMapZoom ( float z); // tested: ok
void setNotePlainText( const QString &s );
void setFrameBorderWidth( int border);
void setFrameBrushColor( const QString &color);
void setFrameIncludeChildren( bool b );
void setFramePadding( int padding);
void setFramePenColor( const QString &color);
void setFrameType( const QString &type);
void setScale( qreal x, qreal y );
void setSelectionColor( const QString &color);
void setTaskPriorityDelta( const int &n);
bool setTaskSleep( const QString &s);
void setURL( const QString &s);
void setVymLink( const QString &s );
void setXLinkColor( const QString &color);
void setXLinkStyle( const QString &style);
void setXLinkStyleBegin( const QString &style);
void setXLinkStyleEnd( const QString &style);
void setXLinkWidth( int w );
void sleep( int n);
void sortChildren( bool b);
void sortChildren();
void toggleFlag( const QString &s );
void toggleFrameIncludeChildren();
void toggleScroll();
void toggleTarget();
void toggleTask();
void undo();
bool unscroll();
void unscrollChildren();
void unselectAll();
void unsetFlag( const QString &s);
private:
VymModel *model;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.