~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to Fltk/messageWindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme
  • Date: 2009-09-02 18:12:15 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090902181215-yla8zvcas2ucvkm9
[Christophe Prud'homme]
* New upstream release
  + fixed surface mesh orientation bug introduced in 2.4.0;
  + mesh and graphics code refactoring;
  + small usability enhancements and bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
// See the LICENSE.txt file for license information. Please report all
4
4
// bugs and problems to <gmsh@geuz.org>.
5
5
 
 
6
#include <stdio.h>
6
7
#include <string.h>
7
8
#include <FL/Fl_Box.H>
8
9
#include <FL/Fl_Return_Button.H>
9
10
#include <FL/fl_ask.H>
10
 
#include "GUI.h"
 
11
#include "FlGui.h"
11
12
#include "messageWindow.h"
12
13
#include "paletteWindow.h"
13
14
#include "fileDialogs.h"
17
18
 
18
19
void message_cb(Fl_Widget *w, void *data)
19
20
{
20
 
  GUI::instance()->messages->show();
 
21
  FlGui::instance()->messages->show();
21
22
}
22
23
 
23
24
static void message_auto_scroll_cb(Fl_Widget *w, void *data)
24
25
{
25
 
  CTX::instance()->msgAutoScroll = GUI::instance()->messages->butt->value();
 
26
  CTX::instance()->msgAutoScroll = FlGui::instance()->messages->butt->value();
26
27
}
27
28
 
28
29
static void message_copy_cb(Fl_Widget *w, void *data)
29
30
{
30
31
  std::string buff;
31
 
  for(int i = 1; i <= GUI::instance()->messages->browser->size(); i++) {
32
 
    if(GUI::instance()->messages->browser->selected(i)) {
33
 
      const char *c = GUI::instance()->messages->browser->text(i);
 
32
  for(int i = 1; i <= FlGui::instance()->messages->browser->size(); i++) {
 
33
    if(FlGui::instance()->messages->browser->selected(i)) {
 
34
      const char *c = FlGui::instance()->messages->browser->text(i);
34
35
      if(strlen(c) > 5 && c[0] == '@')
35
36
        buff += std::string(&c[5]);
36
37
      else
45
46
 
46
47
static void message_clear_cb(Fl_Widget *w, void *data)
47
48
{
48
 
  GUI::instance()->messages->browser->clear();
 
49
  FlGui::instance()->messages->browser->clear();
49
50
}
50
51
 
51
52
static void message_save_cb(Fl_Widget *w, void *data)
59
60
                      "Cancel", "Replace", NULL, name.c_str()))
60
61
          goto test;
61
62
    }
62
 
    GUI::instance()->messages->save(name.c_str());
 
63
    FlGui::instance()->messages->save(name.c_str());
63
64
  }
64
65
}
65
66