first reCommit
This commit is contained in:
59
application/xqdocumentstore.h
Normal file
59
application/xqdocumentstore.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/***************************************************************************
|
||||
|
||||
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 XQDOCUMENTSTORE_H
|
||||
#define XQDOCUMENTSTORE_H
|
||||
|
||||
#include <xqmaptor.h>
|
||||
#include <xqnode.h>
|
||||
|
||||
class XQModel;
|
||||
class XQItem;
|
||||
|
||||
// should this be internal??
|
||||
struct XQDocument
|
||||
{
|
||||
|
||||
XQDocument() = default;
|
||||
XQDocument( const QString& aFileName, const QString& aFriendlyName, XQItem* aTreeItem, XQModel* aModelView );
|
||||
|
||||
virtual ~XQDocument();
|
||||
|
||||
QString fileName; // also used as key
|
||||
QString friendlyName;
|
||||
XQItem* treeItem{};
|
||||
XQModel* modelView{};
|
||||
|
||||
};
|
||||
|
||||
|
||||
class XQDocumentStore : public XQMaptor<XQDocument>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
XQDocumentStore() = default;
|
||||
virtual ~ XQDocumentStore();
|
||||
|
||||
void addDocument( const QString& aFileName, const QString& aFriendlyName, XQItem* aTreeItem, XQModel* aModelView );
|
||||
|
||||
protected:
|
||||
|
||||
//?? needed?
|
||||
//XQNodePtr _treeRootNode;//{ "treeRootNode" };
|
||||
XQNode _treeRootNode{ "treeRootNode" };
|
||||
|
||||
};
|
||||
|
||||
#endif // XQDOCUMENTSTORE_H
|
Reference in New Issue
Block a user