aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-06-27 11:48:31 +0000
committerdos-reis <gdr@axiomatics.org>2011-06-27 11:48:31 +0000
commitff5149e28f06c4d681b496c27043f9eb61711f34 (patch)
tree04e94e02d959c7c93e64fe341f8fb35cd4fa7d9e /src/gui
parent9aafe6c5ce226436c5fe69fb05d309d3a95843e0 (diff)
downloadopen-axiom-ff5149e28f06c4d681b496c27043f9eb61711f34.tar.gz
* utils/Makefile.in (libOpenAxiom_SOURCES): Include filesystem.cc
* include/open-axiom.h (Filesystem): New. * gui/debate.cc (Debate::Debate): Initialize fs data member. * gui/debate.h (Debate): Declare it.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/debate.cc2
-rw-r--r--src/gui/debate.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/debate.cc b/src/gui/debate.cc
index 101dae1d..407d3208 100644
--- a/src/gui/debate.cc
+++ b/src/gui/debate.cc
@@ -49,7 +49,7 @@ namespace OpenAxiom {
}
Debate::Debate(QWidget* parent, Command& cmd)
- : QScrollArea(parent), conv(*this) {
+ : QScrollArea(parent), conv(*this), fs(cmd.root_dir) {
setWidget(&conv);
setViewportMargins(0, 0, 0, 0);
viewport()->setAutoFillBackground(true);
diff --git a/src/gui/debate.h b/src/gui/debate.h
index fa875c5b..6fc9b84d 100644
--- a/src/gui/debate.h
+++ b/src/gui/debate.h
@@ -48,6 +48,7 @@ namespace OpenAxiom {
~Debate();
Conversation* exchanges() { return &conv; }
+ Filesystem* filesystem() { return &fs; }
protected:
void resizeEvent(QResizeEvent*);
@@ -57,6 +58,7 @@ namespace OpenAxiom {
private:
Conversation conv;
+ Filesystem fs;
};
}