| Revision 1 (by moose, 2006/03/06 10:35:57) |
Initial Import
|
#include "SciQWorkspace.h"
#include <qdebug.h>
#include "SciQApp.h"
#include "SciQUtil.h"
#include "SciQWorkspace.h"
SciQWorkspaceFileItem::~SciQWorkspaceFileItem()
{
// Technically, no clean up is nesesary, saving or not saving of the file should have been done by now.
}
SciQWorkspaceFileItem::SciQWorkspaceFileItem(QString n, SciQWorkspaceItem *p, SciQWorkspace *w) :
SciQWorkspaceItem(SciQWorkspaceItem::File, n, p, w), docType(0)
{
// FIXME: Implement SciQApp::getDocType();
/* docType = SciQApp::getDocType(n); */
}
void SciQWorkspaceFileItem::update()
{
SciQWorkspaceItem::update();
// TODO: Scan for API/tag changes.
if(flags & SciQWorkspaceItem::Modified) {
// ws->updateTags() ??
}
}
QIcon SciQWorkspaceFileItem::getIcon() { return docType ? docType->icon() : SciQApp::getIcon("unknown"); }