/*
____________________________________________________
|                                                  |
|          author => Martin Robinson               |
|                                                  |
|          you are authorised to use               |
|          this code in the way you                |
|          like, commercial, personal,             |
|          opensource or anything else             |
|          you could imagine. But you              |
|          are not authorised to own               |
|          copyright on this work                  |
|__________________________________________________|
____________________________________________________
|                                                  |
|           Lsystem test program                   |
|           language C++                           |
|           Library Qt4.4                          |
|           turtle graphic like                    |
|__________________________________________________|
*/

#include <QtGui>
#include <QtCore>

#include <iostream>

#include "Lturtle.hpp"
#include "Lsys.hpp"
#include "gui.hpp"

#define count 5

int main(int argc, char* argv[])
{
  QApplication app(argc, argv);

  QString tree = plant;
  for (int i = 0;i<count;i++)
  {
    iterate(&tree);
  }
  //std::cout << tree.toStdString();
  
  gui window;
  window.Lsystem = tree;
  window.rotate = PI/6;
  window.magnitude = 5.0;
  window.resize(400, 400);
  window.setWindowTitle("Simple example");
  window.show();

  return app.exec();
}