Mercurial > octave-nkf
annotate src/DLD-FUNCTIONS/__fltk_uigetfile__.cc @ 12286:45c97076c161 release-3-4-x
__fltk_uigetfile__.cc: style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 29 Jan 2011 13:05:18 -0500 |
parents | db14b8095edd |
children | 67f98480b181 |
rev | line source |
---|---|
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
1 /* |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
2 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
3 Copyright (C) 2010-2011 Kai Habel |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
4 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
5 This file is part of Octave. |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
6 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
7 Octave is free software; you can redistribute it and/or modify it |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
9 Free Software Foundation; either version 3 of the License, or (at your |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
10 option) any later version. |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
11 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
15 for more details. |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
16 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
18 along with Octave; see the file COPYING. If not, see |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
19 <http://www.gnu.org/licenses/>. |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
20 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
21 */ |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
22 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
23 #ifdef HAVE_CONFIG_H |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
24 #include <config.h> |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
25 #endif |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
26 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
27 #if defined (HAVE_FLTK) |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
28 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
29 #include <FL/Fl.H> |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
30 #include <Fl/Fl_File_Chooser.H> |
12285
db14b8095edd
#undef Complex after including FLTK headers
John W. Eaton <jwe@octave.org>
parents:
12273
diff
changeset
|
31 |
db14b8095edd
#undef Complex after including FLTK headers
John W. Eaton <jwe@octave.org>
parents:
12273
diff
changeset
|
32 // FLTK headers may include X11/X.h which defines Complex, and that |
db14b8095edd
#undef Complex after including FLTK headers
John W. Eaton <jwe@octave.org>
parents:
12273
diff
changeset
|
33 // conflicts with Octave's Complex typedef. We don't need the X11 |
db14b8095edd
#undef Complex after including FLTK headers
John W. Eaton <jwe@octave.org>
parents:
12273
diff
changeset
|
34 // Complex definition in this file, so remove it before including Octave |
db14b8095edd
#undef Complex after including FLTK headers
John W. Eaton <jwe@octave.org>
parents:
12273
diff
changeset
|
35 // headers which may require Octave's Complex typedef. |
db14b8095edd
#undef Complex after including FLTK headers
John W. Eaton <jwe@octave.org>
parents:
12273
diff
changeset
|
36 #undef Complex |
db14b8095edd
#undef Complex after including FLTK headers
John W. Eaton <jwe@octave.org>
parents:
12273
diff
changeset
|
37 |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
38 #include "defun-dld.h" |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
39 #include "file-ops.h" |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
40 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
41 DEFUN_DLD (__fltk_uigetfile__, args, , |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
42 "-*- texinfo -*-\n\ |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
43 @deftypefn {Built-in Function} {} __fltk_uigetfile__ (@dots{})\n\ |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
44 Undocumented internal function.\n\ |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
45 @end deftypefn") |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
46 { |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
47 // Expected argument list: |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
48 // |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
49 // args(0) ... FileFilter in fltk format |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
50 // args(1) ... Title |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
51 // args(2) ... Default Filename |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
52 // args(3) ... PostionValue [x,y] |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
53 // args(4) ... SelectValue "on"/"off"/"dir"/"create" |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
54 |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
55 octave_value_list retval (3, octave_value (0)); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
56 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
57 std::string file_filter = args(0).string_value(); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
58 std::string title = args(1).string_value(); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
59 std::string default_name = args(2).string_value(); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
60 Matrix pos = args(3).matrix_value(); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
61 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
62 int multi_type = Fl_File_Chooser::SINGLE; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
63 std::string flabel = "Filename:"; |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
64 |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
65 std::string multi = args(4).string_value(); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
66 if (multi == "on") |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
67 multi_type = Fl_File_Chooser::MULTI; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
68 else if (multi == "dir") |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
69 { |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
70 multi_type = Fl_File_Chooser::DIRECTORY; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
71 flabel = "Directory:"; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
72 } |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
73 else if (multi == "create") |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
74 multi_type = Fl_File_Chooser::CREATE; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
75 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
76 Fl_File_Chooser::filename_label = flabel.c_str (); |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
77 |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
78 Fl_File_Chooser fc (default_name.c_str (), file_filter.c_str (), |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
79 multi_type, title.c_str ()); |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
80 |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
81 fc.preview (0); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
82 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
83 if (multi_type == Fl_File_Chooser::CREATE) |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
84 fc.ok_label ("Save"); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
85 |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
86 fc.show (); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
87 |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
88 while (fc.shown ()) |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
89 Fl::wait (); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
90 |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
91 if (fc.value()) |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
92 { |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
93 int file_count = fc.count (); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
94 std::string fname; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
95 std::string sep = file_ops::dir_sep_str (); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
96 std::size_t idx; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
97 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
98 if (file_count == 1 && multi_type != Fl_File_Chooser::DIRECTORY) |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
99 { |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
100 fname = fc.value (); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
101 idx = fname.find_last_of (sep); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
102 retval(0) = fname.substr (idx + 1); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
103 } |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
104 else |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
105 { |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
106 Cell file_cell = Cell(file_count, 1); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
107 for (octave_idx_type n = 1; n <= file_count; n++) |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
108 { |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
109 fname = fc.value (n); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
110 idx = fname.find_last_of (sep); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
111 file_cell(n - 1) = fname.substr (idx + 1); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
112 } |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
113 retval(0) = file_cell; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
114 } |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
115 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
116 if (multi_type == Fl_File_Chooser::DIRECTORY) |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
117 retval(0) = std::string (fc.value ()); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
118 else |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
119 { |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
120 retval(1) = std::string (fc.directory ()) + sep; |
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
121 retval(2) = fc.filter_value () + 1; |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
122 } |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
123 } |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
124 |
12286
45c97076c161
__fltk_uigetfile__.cc: style fixes
John W. Eaton <jwe@octave.org>
parents:
12285
diff
changeset
|
125 fc.hide (); |
12263
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
126 Fl::flush (); |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
127 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
128 return retval; |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
129 } |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
130 |
c626741871a0
Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
Kai Habel <kai.habel@gmx.de>
parents:
diff
changeset
|
131 #endif |