Logo Search packages:      
Sourcecode: csound version File versions  Download package

CsoundGUIConsole_FLTK.cpp

// generated by Fast Light User Interface Designer (fluid) version 1.0107

#include "CsoundGUI.hpp"

CsoundGUIConsole::CsoundGUIConsole() : mutex_(0) {
  Fl_Double_Window* w;
  {
  firstMsg = (Csound_Message*) 0;
  lastMsg = (Csound_Message*) 0;
  buf = new Fl_Text_Buffer();
  styleBuf = new Fl_Text_Buffer();
  msgNotifyLock.TryLock();
  clearLock.TryLock();
  quitLock.TryLock();
  consoleThread = csoundCreateThread(&CsoundGUIConsole::consoleThreadFunc, (void*) this);
}
  { Fl_Double_Window* o = window = new Fl_Double_Window(585, 320, "Csound console messages");
    w = o;
    o->user_data((void*)(this));
    { Fl_Text_Display* o = textDisplay = new Fl_Text_Display(0, 0, 585, 320);
      o->box(FL_DOWN_BOX);
      o->color(FL_WHITE);
      o->labelsize(12);
      o->textfont(4);
      o->textsize(12);
      Fl_Group::current()->resizable(o);
      o->buffer(buf);
    }
    window = (Fl_Double_Window*) o;
    o->end();
  }
  textDisplay->highlight_data(styleBuf, (Fl_Text_Display::Style_Table_Entry*) &(styleTable[0]), 18, (char) 0, (Fl_Text_Display::Unfinished_Style_Cb) 0, (void*) 0);
}

CsoundGUIConsole::~CsoundGUIConsole() {
  {
  clearLock.TryLock();
  quitLock.Unlock();
  msgNotifyLock.Unlock();
  csoundJoinThread(consoleThread);
  consoleThread = (void*) 0;
  delete window;
  window = (Fl_Double_Window*) 0;
  delete buf;
  buf = (Fl_Text_Buffer*) 0;
  delete styleBuf;
  styleBuf = (Fl_Text_Buffer*) 0;
  msgNotifyLock.Unlock();
  clearLock.Unlock();
  quitLock.Unlock();
}
}

Generated by  Doxygen 1.6.0   Back to index