--- a/ginebra2/EditorSnippet.h Thu Sep 23 15:32:11 2010 -0400
+++ b/ginebra2/EditorSnippet.h Fri Oct 15 17:30:59 2010 -0400
@@ -40,24 +40,33 @@
Q_PROPERTY( QString text READ text WRITE setText)
void setText( const QString & text );
QString text();
+#ifdef BROWSER_LAYOUT_TENONE
+ void setTextFont(QFont & font);
+#endif
public slots:
int charCount();
void setCursorPosition(int pos);
void selectAll();
void unselect();
void onFocusChanged(bool in);
- void onTapped(QPointF& pos);
int getTextOptions();
// Calling this function will overwrite the existing options
- void setTextOptions(int flag);
- void setMaxTextLength(int length);
+ void setTextOptions(int flag); void setMaxTextLength(int length);
+ bool editable() { return true; }
+ void cut();
+ void copy();
+ void paste();
+ void sendContextMenuEvent(bool isContentSelected);
+ void setContextMenuStatus(bool on);
signals:
void activated();
void lostFocus();
void gainedFocus();
void textChanged();
+ void contextEvent(bool isContentSelected, QString snippetId);
private:
void connectAll();
+ TextEditItem *textEditItem();
};
}