mirror of https://github.com/fltk/fltk
#860: FLUID: Removes Group attributes from Fl_Terminal
This commit is contained in:
parent
7a69c22bd7
commit
49dd9289b8
|
@ -58,7 +58,8 @@
|
|||
+-+ Fl_Input_Type
|
||||
| +-- Fl_Output_Type
|
||||
+-+ Fl_Text_Display_Type
|
||||
| +-- Fl_Text_Editor+Type
|
||||
| +-- Fl_Text_Editor_Type
|
||||
+-- Fl_Terminal_Type
|
||||
+-- Fl_Box_Type
|
||||
+-- Fl_Clock_Type
|
||||
+-- Fl_Progress_Type
|
||||
|
@ -70,7 +71,6 @@
|
|||
| +-- Fl_Table_Type
|
||||
| +-- Fl_Tabs_Type
|
||||
| +-- Fl_Scroll_Type
|
||||
| +-- Fl_Terminal_Type
|
||||
| +-- Fl_Tile_Type
|
||||
| +-- Fl_Wizard_Type
|
||||
| +-+ Fl_Window_Type
|
||||
|
|
|
@ -3050,9 +3050,8 @@ Fl_Double_Window* make_shell_window() {
|
|||
{ shell_run_window = new Fl_Double_Window(555, 430, "Shell Command Output");
|
||||
shell_run_window->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
|
||||
{ shell_run_terminal = new Fl_Terminal(10, 10, 535, 375);
|
||||
shell_run_terminal->ansi(1);
|
||||
shell_run_terminal->end();
|
||||
Fl_Group::current()->resizable(shell_run_terminal);
|
||||
shell_run_terminal->ansi(1);
|
||||
} // Fl_Terminal* shell_run_terminal
|
||||
{ Fl_Group* o = new Fl_Group(10, 395, 535, 25);
|
||||
{ Fl_Button* o = new Fl_Button(10, 395, 94, 25, "Clear");
|
||||
|
|
|
@ -1577,13 +1577,13 @@ Function {make_shell_window()} {open
|
|||
Fl_Terminal shell_run_terminal {
|
||||
xywh {10 10 535 375} resizable
|
||||
code0 {shell_run_terminal->ansi(1);}
|
||||
} {}
|
||||
}
|
||||
Fl_Group {} {open
|
||||
xywh {10 395 535 25}
|
||||
} {
|
||||
Fl_Button {} {
|
||||
label Clear
|
||||
callback {shell_run_terminal->append("\\e[2J\\e[H");} selected
|
||||
callback {shell_run_terminal->append("\\033[2J\\033[H");} selected
|
||||
xywh {10 395 94 25}
|
||||
}
|
||||
Fl_Box {} {
|
||||
|
|
|
@ -889,9 +889,9 @@ public:
|
|||
/**
|
||||
\brief Manage a terminal widget.
|
||||
*/
|
||||
class Fl_Terminal_Type : public Fl_Group_Type
|
||||
class Fl_Terminal_Type : public Fl_Widget_Type
|
||||
{
|
||||
typedef Fl_Group_Type super;
|
||||
typedef Fl_Widget_Type super;
|
||||
public:
|
||||
const char *type_name() FL_OVERRIDE { return "Fl_Terminal"; }
|
||||
// Older .fl files with Fl_Simple_Terminal will create a Fl_Terminal instead.
|
||||
|
@ -929,7 +929,6 @@ public:
|
|||
return 1;
|
||||
}
|
||||
Fl_Widget_Type *_make() FL_OVERRIDE {return new Fl_Terminal_Type();}
|
||||
int is_parent() const FL_OVERRIDE { return 0; }
|
||||
ID id() const FL_OVERRIDE { return ID_Terminal; }
|
||||
bool is_a(ID inID) const FL_OVERRIDE { return (inID==ID_Terminal) ? true : super::is_a(inID); }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue