"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2bClipEdit.h" between
cb2bib-1.9.9.tar.gz and cb2bib-2.0.0.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

c2bClipEdit.h  (cb2bib-1.9.9):c2bClipEdit.h  (cb2bib-2.0.0)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2018 by Pere Constans * Copyright (C) 2004-2019 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* cb2Bib version 1.9.9. Licensed under the GNU GPL version 3. * cb2Bib version 2.0.0. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
***************************************************************************/ ***************************************************************************/
#ifndef C2BCLIPEDIT_H #ifndef C2BCLIPEDIT_H
#define C2BCLIPEDIT_H #define C2BCLIPEDIT_H
#include <QPlainTextEdit> #include <QPlainTextEdit>
/** /**
@author Pere Constans @author Pere Constans
*/ */
class c2bClipEdit : public QPlainTextEdit class c2bClipEdit : public QPlainTextEdit
{ {
Q_OBJECT Q_OBJECT
public: public:
enum Mode {Editor, Browser}; enum Mode
{
Editor,
Browser
};
c2bClipEdit(const Mode mode, QWidget* parentw = 0); c2bClipEdit(const Mode mode, QWidget* parentw = 0);
~c2bClipEdit(); ~c2bClipEdit();
void setText(const QString& text, const QString& tagged_text = QString()); void setText(const QString& text, const QString& tagged_text = QString());
void setTaggedViewMode(bool tagged_view); void setTaggedViewMode(bool tagged_view);
void insertTag(const QString& tag); void insertTag(const QString& tag);
void updatePlainText(const QString& text); void updatePlainText(const QString& text);
signals: signals:
skipping to change at line 48 skipping to change at line 52
virtual void mouseReleaseEvent(QMouseEvent* qevent); virtual void mouseReleaseEvent(QMouseEvent* qevent);
private slots: private slots:
virtual void selectionHasChanged(); virtual void selectionHasChanged();
private: private:
QString _tagged_text; QString _tagged_text;
QString _text; QString _text;
bool _has_selecting_ended; bool _has_selecting_ended;
bool _is_tagged_view; bool _is_tagged_view;
}; };
#endif #endif
 End of changes. 4 change blocks. 
4 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)