43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
|
/***************************************************************************
|
||
|
|
||
|
source::worx xtree
|
||
|
Copyright © 2024-2025 c.holzheuer
|
||
|
christoph.holzheuer@gmail.com
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation; either version 2 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
***************************************************************************/
|
||
|
|
||
|
|
||
|
#ifndef XQSIMPLECLIPBOARD_H
|
||
|
#define XQSIMPLECLIPBOARD_H
|
||
|
|
||
|
#include <xqitem.h>
|
||
|
|
||
|
using XQItemRowList = QVector<XQItemList>;
|
||
|
|
||
|
class XQSimpleClipBoard
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
|
||
|
XQSimpleClipBoard() = default;
|
||
|
virtual ~XQSimpleClipBoard();
|
||
|
|
||
|
bool isEmpty() const;
|
||
|
bool canPaste( const QModelIndex& curIdx ) const;
|
||
|
|
||
|
void createContentNodeList( QModelIndexList& indexList );
|
||
|
const XQNodeList& dataNodeList();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
XQNodeList _nodeList;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // XQSIMPLECLIPBOARD_H
|