diff --git a/dialog-warning.svg b/dialog-warning.svg
new file mode 100644
index 0000000..56a34c2
--- /dev/null
+++ b/dialog-warning.svg
@@ -0,0 +1,95 @@
+
+
+
\ No newline at end of file
diff --git a/folder.svg b/folder.svg
new file mode 100644
index 0000000..79b25c3
--- /dev/null
+++ b/folder.svg
@@ -0,0 +1,424 @@
+
+
+
diff --git a/help-browser.svg b/help-browser.svg
new file mode 100644
index 0000000..599c488
--- /dev/null
+++ b/help-browser.svg
@@ -0,0 +1,68 @@
+
+
+
\ No newline at end of file
diff --git a/mainwindow.cpp b/mainwindow.cpp
index fb71c21..b7efacb 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -37,6 +37,34 @@ MainWindow::MainWindow(QWidget *parent) :
setCentralWidget(m_graphicsView);
m_graphicsView->hide();
+
+ // why can't I do this with qtcreator?
+ /// @bug or a feature? no underline here
+ m_trash = new QAction(QIcon(":/user-trash-full.svg"), "&Trash it", this);
+ m_trash->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_T));
+ m_ui->mainToolBar->addAction(m_trash);
+
+ m_info = new QAction(QIcon(":/folder.svg"), "&Reference it", this);
+ m_info->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_R));
+ m_ui->mainToolBar->addAction(m_info);
+
+ m_blocked = new QAction(QIcon(":/dialog-warning.svg"), tr("&Blocked"), this);
+ m_blocked->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_B));
+ m_ui->mainToolBar->addAction(m_blocked);
+
+ m_question = new QAction(QIcon(":/help-browser.svg"), tr("&What shall be done?"), this);
+// m_question->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
+ m_ui->mainToolBar->addAction(m_question);
+
+ m_postpone = new QAction(QIcon(":/x-office-calendar.svg"), tr("&Postpone it"), this);
+ m_postpone->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_P));
+ m_ui->mainToolBar->addAction(m_postpone);
+
+ m_delegate = new QAction(QIcon(":/system-users.svg"), tr("&Delegate it"), this);
+ m_delegate->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_D));
+ m_ui->mainToolBar->addAction(m_delegate);
+
+ m_ui->mainToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
}
MainWindow::~MainWindow()
diff --git a/mainwindow.h b/mainwindow.h
index 43472a3..0debcdb 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -46,6 +46,12 @@ private:
QString m_fileName;
bool m_contentChanged;
+ QAction *m_trash;
+ QAction *m_info;
+ QAction *m_blocked;
+ QAction *m_question;
+ QAction *m_postpone;
+ QAction *m_delegate;
};
#endif // MAINWINDOW_H
diff --git a/node.cpp b/node.cpp
index 55769b4..8b5b848 100644
--- a/node.cpp
+++ b/node.cpp
@@ -463,5 +463,5 @@ QPainterPath Node::shape () const
double Node::doubleModulo(const double &devided, const double &devisor)
{
return devided - static_cast(devisor * static_cast(devided
- / devisor));
+ / devisor));
}
diff --git a/qtmindmap-0.2.ebuild b/qtmindmap-0.2.ebuild
index c0c3e3f..80e2f3d 100644
--- a/qtmindmap-0.2.ebuild
+++ b/qtmindmap-0.2.ebuild
@@ -24,12 +24,10 @@ src_configure() {
}
src_install() {
- echo "hello"
- ls
- ls -R
- ls ../ -R
# do normal installation
- # qt4-r2_src_install
+# qt4-r2_src_install
+# cp qtmindmap /usr/bin/
+ emake INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "emake install failed"
# Install translations
# TODO how?
}
\ No newline at end of file
diff --git a/qtmindmap.qrc b/qtmindmap.qrc
index 220e364..5093996 100644
--- a/qtmindmap.qrc
+++ b/qtmindmap.qrc
@@ -1,5 +1,11 @@
qtmindmap.svg
+ help-browser.svg
+ user-trash-full.svg
+ x-office-calendar.svg
+ folder.svg
+ system-users.svg
+ dialog-warning.svg
diff --git a/system-users.svg b/system-users.svg
new file mode 100644
index 0000000..7d628b8
--- /dev/null
+++ b/system-users.svg
@@ -0,0 +1,539 @@
+
+
+
diff --git a/user-trash-full.svg b/user-trash-full.svg
new file mode 100644
index 0000000..393285f
--- /dev/null
+++ b/user-trash-full.svg
@@ -0,0 +1,728 @@
+
+
+
diff --git a/x-office-calendar.svg b/x-office-calendar.svg
new file mode 100644
index 0000000..5f1159b
--- /dev/null
+++ b/x-office-calendar.svg
@@ -0,0 +1,984 @@
+
+
+