106 changed files with 2496 additions and 1088 deletions
@ -0,0 +1,41 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
// Xinx header
|
||||
#include "conclusionwizardpage.h" |
||||
|
||||
// Qt header
|
||||
#include <QVBoxLayout> |
||||
#include <QLabel> |
||||
|
||||
/* ConclusionWizardPage */ |
||||
|
||||
ConclusionWizardPage::ConclusionWizardPage(QWidget * parent) : QWizardPage(parent) |
||||
{ |
||||
setTitle(tr("Conversion finished")); |
||||
setSubTitle(tr("The conversion is terminated, you can now reopen the project.")); |
||||
|
||||
QVBoxLayout * layout = new QVBoxLayout(this); |
||||
layout->addWidget(new QLabel(tr("The project is now converted. XINX can now open the project file normally."), this)); |
||||
// layout->addWidget( m_openCheck = new QCheckBox( tr("Re-open the project with XINX automatically"), this ) );
|
||||
|
||||
// m_openCheck->setChecked( true );
|
||||
|
||||
// registerField( "project.open", m_openCheck );
|
||||
} |
@ -0,0 +1,37 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#ifndef PROJECTWIZARDCONCLUSION_H_ |
||||
#define PROJECTWIZARDCONCLUSION_H_ |
||||
|
||||
// Qt header
|
||||
#include <QWizardPage> |
||||
|
||||
class QCheckBox; |
||||
|
||||
class ConclusionWizardPage : public QWizardPage |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
ConclusionWizardPage(QWidget * parent = 0); |
||||
private: |
||||
QCheckBox * m_openCheck; |
||||
}; |
||||
|
||||
#endif // PROJECTWIZARDCONCLUSION_H_
|
@ -0,0 +1,71 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
// Xinx header
|
||||
#include "filewizardpage.h" |
||||
#include <directoryedit.h> |
||||
#include <directoryeditwidget.h> |
||||
#include "projectconverter.h" |
||||
#include "projectwizard.h" |
||||
|
||||
// Qt header
|
||||
#include <QLabel> |
||||
#include <QVBoxLayout> |
||||
#include <QMessageBox> |
||||
#include <QVariant> |
||||
|
||||
/* FileWizardPage */ |
||||
|
||||
FileWizardPage::FileWizardPage(QString filename, QWidget * parent) : QWizardPage(parent), m_filename(filename) |
||||
{ |
||||
setTitle(tr("Project file selection")); |
||||
setSubTitle(tr("This wizard will help you to migrate your project file to " |
||||
"the current version of XINX. Please fill all fields.")); |
||||
|
||||
QLabel * directoryLabel; |
||||
QVBoxLayout * layout = new QVBoxLayout(this); |
||||
layout->addWidget(directoryLabel = new QLabel(tr("&Project file : "), this)); |
||||
layout->addWidget(m_projectEdit = new DirectoryEditWidget(false, this)); |
||||
directoryLabel->setBuddy(m_projectEdit->lineEdit()); |
||||
|
||||
registerField("project.name*", m_projectEdit->lineEdit()); |
||||
} |
||||
|
||||
void FileWizardPage::initializePage() |
||||
{ |
||||
m_projectEdit->lineEdit()->setText(m_filename); |
||||
} |
||||
|
||||
bool FileWizardPage::validatePage() |
||||
{ |
||||
try |
||||
{ |
||||
ProjectConverter * converter = dynamic_cast<ProjectWizard*>(wizard())->converter(); |
||||
delete converter; |
||||
converter = new ProjectConverter(field("project.name").toString()); |
||||
dynamic_cast<ProjectWizard*>(wizard())->setConverter(converter); |
||||
} |
||||
catch (XinxException & e) |
||||
{ |
||||
QMessageBox::critical(this, tr("Project Wizard"), e.getMessage()); |
||||
return false; |
||||
} |
||||
return true; |
||||
} |
||||
|
@ -0,0 +1,41 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#ifndef PROJECTWIZARDFILE_H_ |
||||
#define PROJECTWIZARDFILE_H_ |
||||
|
||||
// Qt header
|
||||
#include <QWizardPage> |
||||
|
||||
class DirectoryEditWidget; |
||||
|
||||
class FileWizardPage : public QWizardPage |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
FileWizardPage(QString filename, QWidget * parent = 0); |
||||
|
||||
virtual void initializePage(); |
||||
virtual bool validatePage(); |
||||
private: |
||||
QString m_filename; |
||||
DirectoryEditWidget * m_projectEdit; |
||||
}; |
||||
|
||||
#endif // PROJECTWIZARDFILE_H_
|
@ -0,0 +1,59 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
// Xinx header
|
||||
#include "progresswizardpage.h" |
||||
#include "projectconverter.h" |
||||
#include "projectwizard.h" |
||||
|
||||
// Qt header
|
||||
#include <QApplication> |
||||
#include <QVBoxLayout> |
||||
#include <QProgressBar> |
||||
|
||||
/* ProgressWizardPage */ |
||||
|
||||
ProgressWizardPage::ProgressWizardPage(QWidget * parent) : QWizardPage(parent) |
||||
{ |
||||
setTitle(tr("Progress of the conversion")); |
||||
setSubTitle(tr("Please wait ...")); |
||||
|
||||
QVBoxLayout * layout = new QVBoxLayout(this); |
||||
m_progressBar = new QProgressBar(this); |
||||
layout->addWidget(m_progressBar); |
||||
} |
||||
|
||||
void ProgressWizardPage::initializePage() |
||||
{ |
||||
if (dynamic_cast<ProjectWizard*>(wizard())->converter()) |
||||
{ |
||||
ProjectConverter * converter = dynamic_cast<ProjectWizard*>(wizard())->converter(); |
||||
connect(converter, SIGNAL(setValue(int)), m_progressBar, SLOT(setValue(int))); |
||||
connect(converter, SIGNAL(setValue(int)), this, SLOT(processMessages())); |
||||
connect(converter, SIGNAL(setMaximum(int)), m_progressBar, SLOT(setMaximum(int))); |
||||
converter->process(); |
||||
m_progressBar->setMaximum(converter->nbSession() + XINX_PROJECT_VERSION - converter->version()); |
||||
} |
||||
} |
||||
|
||||
void ProgressWizardPage::processMessages() |
||||
{ |
||||
qApp->processEvents(); |
||||
} |
||||
|
@ -0,0 +1,41 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#ifndef PROJECTWIZARDPROGRESS_H_ |
||||
#define PROJECTWIZARDPROGRESS_H_ |
||||
|
||||
// Qt header
|
||||
#include <QWizardPage> |
||||
|
||||
class QProgressBar; |
||||
|
||||
class ProgressWizardPage : public QWizardPage |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
ProgressWizardPage(QWidget * parent = 0); |
||||
|
||||
virtual void initializePage(); |
||||
private slots: |
||||
void processMessages(); |
||||
private: |
||||
QProgressBar * m_progressBar; |
||||
}; |
||||
|
||||
#endif // PROJECTWIZARDPROGRESS_H_
|
@ -0,0 +1,56 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
// Xinx header
|
||||
#include "versionwizardpage.h" |
||||
#include "projectwizard.h" |
||||
#include "projectconverter.h" |
||||
|
||||
// Qt header
|
||||
#include <QVBoxLayout> |
||||
#include <QLabel> |
||||
|
||||
/* VersionWizardPage */ |
||||
|
||||
VersionWizardPage::VersionWizardPage(QWidget * parent) : QWizardPage(parent) |
||||
{ |
||||
setTitle(tr("Version informations")); |
||||
setSubTitle(tr("This page show you some informations about the selected project file.")); |
||||
setCommitPage(true); |
||||
|
||||
QVBoxLayout * layout = new QVBoxLayout(this); |
||||
m_resume = new QLabel(this); |
||||
m_resume->setWordWrap(true); |
||||
|
||||
layout->addWidget(m_resume); |
||||
} |
||||
|
||||
void VersionWizardPage::initializePage() |
||||
{ |
||||
if (dynamic_cast<ProjectWizard*>(wizard())->converter()) |
||||
{ |
||||
m_resume->setText( |
||||
tr("You want convert a %1 (version %2).\nThis wizard will convert the project to the last version of XINX. Wizard must convert %3 opened file.") |
||||
.arg(dynamic_cast<ProjectWizard*>(wizard())->converter()->type()) |
||||
.arg(dynamic_cast<ProjectWizard*>(wizard())->converter()->version()) |
||||
.arg(dynamic_cast<ProjectWizard*>(wizard())->converter()->nbSession()) |
||||
); |
||||
|
||||
} |
||||
} |
@ -0,0 +1,39 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#ifndef PROJECTWIZARDVERSION_H_ |
||||
#define PROJECTWIZARDVERSION_H_ |
||||
|
||||
// Qt header
|
||||
#include <QWizardPage> |
||||
|
||||
class QLabel; |
||||
|
||||
class VersionWizardPage : public QWizardPage |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
VersionWizardPage(QWidget * parent = 0); |
||||
|
||||
virtual void initializePage(); |
||||
private: |
||||
QLabel * m_resume; |
||||
}; |
||||
|
||||
#endif // PROJECTWIZARDVERSION_H_
|
@ -0,0 +1,60 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#include "actionitem.h" |
||||
|
||||
namespace CodeCompletion |
||||
{ |
||||
|
||||
/* ActionItem */ |
||||
|
||||
/*!
|
||||
* \class ActionItem |
||||
* \ingroup codecompletion |
||||
* \since 0.10.1 |
||||
* |
||||
* \brief Item of a code completion list used for action. |
||||
* |
||||
* Item in a code completion list, that call an action. This can be the case of |
||||
* calling snipet, or other type of action (like adding a new template at the end |
||||
* of the stylesheet ...) |
||||
*/ |
||||
|
||||
/*!
|
||||
* \brief Create a new action item |
||||
* |
||||
* \param libelle The libelle of the action (show in the completion list) |
||||
* \param code The code to write in the editor to show this action. |
||||
*/ |
||||
ActionItem::ActionItem(const QString& libelle, const QString & code) |
||||
{ |
||||
setCompletionText(code); |
||||
setText(libelle); |
||||
setForeground(Qt::gray); |
||||
setKeyString(code); |
||||
setCompletionType(tr("Action")); |
||||
} |
||||
|
||||
//! Destroy the action item
|
||||
ActionItem::~ActionItem() |
||||
{ |
||||
|
||||
} |
||||
|
||||
} |
@ -0,0 +1,42 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#ifndef CODECOMPLETION_ACTIONITEM_H |
||||
#define CODECOMPLETION_ACTIONITEM_H |
||||
|
||||
// Xinx header
|
||||
#include <codecompletion/item.h> |
||||
|
||||
// Qt header
|
||||
#include <QApplication> |
||||
|
||||
namespace CodeCompletion |
||||
{ |
||||
|
||||
class LIBEXPORT ActionItem : public Item |
||||
{ |
||||
Q_DECLARE_TR_FUNCTIONS(ActionItem) |
||||
public: |
||||
explicit ActionItem(const QString & libelle, const QString & code); |
||||
virtual ~ActionItem(); |
||||
}; |
||||
|
||||
} |
||||
|
||||
#endif // CODECOMPLETION_ACTIONITEM_H
|
@ -0,0 +1,58 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#include "contentviewnodeitem.h" |
||||
#include <contentview3/node.h> |
||||
|
||||
namespace CodeCompletion |
||||
{ |
||||
|
||||
/* PrivateContentViewNodeItem */ |
||||
|
||||
class PrivateContentViewNodeItem |
||||
{ |
||||
public: |
||||
ContentView3::NodePtr _node; |
||||
}; |
||||
|
||||
/* ContentViewNodeItem */ |
||||
|
||||
ContentViewNodeItem::ContentViewNodeItem(const ContentView3::NodePtr & node) : d(new PrivateContentViewNodeItem) |
||||
{ |
||||
d->_node = node; |
||||
|
||||
setIcon(QIcon(node->icon())); |
||||
setText(node->displayName()); |
||||
setCompletionText(node->name()); |
||||
setCompletionHelper(node->completionString()); |
||||
setCompletionType(node->type()); |
||||
setKeyString(node->keyString()); |
||||
} |
||||
|
||||
ContentViewNodeItem::~ContentViewNodeItem() |
||||
{ |
||||
|
||||
} |
||||
|
||||
const ContentView3::NodePtr & ContentViewNodeItem::node() const |
||||
{ |
||||
return d->_node; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,45 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#ifndef CODECOMPLETION_CONTENTVIEWNODEITEM_H |
||||
#define CODECOMPLETION_CONTENTVIEWNODEITEM_H |
||||
|
||||
// Xinx header
|
||||
#include <codecompletion/item.h> |
||||
#include <contentview3/definitions.h> |
||||
|
||||
namespace CodeCompletion |
||||
{ |
||||
|
||||
class PrivateContentViewNodeItem; |
||||
|
||||
class LIBEXPORT ContentViewNodeItem : public Item |
||||
{ |
||||
public: |
||||
ContentViewNodeItem(const ContentView3::NodePtr & node); |
||||
virtual ~ContentViewNodeItem(); |
||||
|
||||
const ContentView3::NodePtr & node() const; |
||||
private: |
||||
QScopedPointer<PrivateContentViewNodeItem> d; |
||||
}; |
||||
|
||||
} |
||||
|
||||
#endif // CODECOMPLETION_CONTENTVIEWNODEITEM_H
|
@ -0,0 +1,46 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
// Xinx header
|
||||
#include "contexttype.h" |
||||
|
||||
// Std header
|
||||
#include <typeinfo> |
||||
|
||||
namespace CodeCompletion |
||||
{ |
||||
|
||||
/* ContextType */ |
||||
|
||||
ContextType::ContextType() |
||||
{ |
||||
|
||||
} |
||||
|
||||
ContextType::~ContextType() |
||||
{ |
||||
|
||||
} |
||||
|
||||
bool ContextType::operator==(const CodeCompletion::ContextType& other) const |
||||
{ |
||||
return typeid(*this) == typeid(other); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,45 @@
|
||||
/*
|
||||
XINX |
||||
Copyright (C) 2007-2011 by Ulrich Van Den Hekke |
||||
xinx@shadoware.org |
||||
|
||||
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 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful. |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
#ifndef CODECOMPLETION_CONTEXTTYPE_H |
||||
#define CODECOMPLETION_CONTEXTTYPE_H |
||||
|
||||
// Xinx header
|
||||
#include <core/lib-config.h> |
||||
|
||||
namespace CodeCompletion |
||||
{ |
||||
|
||||