- // Note: Enabling wrap will make isSingleLine() not work correctly, so only use this if minHeight() > 1!
- void setWordWrapEnabled(bool enable = true);
+ inline QString mircColorFromRGB(QString rgbColor) const { return _mircColorMap.key(rgbColor); }
+ inline QString rgbColorFromMirc(QString mircColor) const { return _mircColorMap[mircColor]; }
+ inline QMap<QString, QString> mircColorMap() const { return _mircColorMap; }
+
+ inline QStringList history() const { return _history; }
+ inline QHash<int, QString> tempHistory() const { return _tempHistory; }
+ inline qint32 idx() const { return _idx; }
+ inline bool emacsMode() const { return _emacsMode; }
+
+public slots:
+ void setMode(Mode mode);
+ void setMinHeight(int numLines);
+ void setMaxHeight(int numLines);
+ void setEmacsMode(bool enable = true);
+ void setScrollBarsEnabled(bool enable = true);
+ void setSpellCheckEnabled(bool enable = true);
+ void setPasteProtectionEnabled(bool enable = true, QWidget *msgBoxParent = 0);
+ void setLineWrapEnabled(bool enable = false);
+
+ inline void setHistory(QStringList history) { _history = history; }
+ inline void setTempHistory(QHash<int, QString> tempHistory) { _tempHistory = tempHistory; }
+ inline void setIdx(qint32 idx) { _idx = idx; }