//--------------------------------------------------------------------------- GUI_Main_Easy::GUI_Main_Easy(Core* _C, wxWindow* parent) : wxPanel(parent, 26981, wxPoint(0, 0), wxSize(parent->GetClientSize().GetWidth()-0, parent->GetClientSize().GetHeight()-0)), GUI_Main_Easy_Core(_C) { //Creation - Select Select=new wxChoice(this, 26981); //Creation - Other Boxes.resize(Stream_Max); for (size_t StreamPos=0; StreamPos<Stream_Max; StreamPos++) { Boxes[StreamPos].resize(Boxes_Count_Get(StreamPos)); for (size_t Pos=0; Pos<Boxes[StreamPos].size(); Pos++) Boxes[StreamPos][Pos]=new GUI_Main_Easy_Box(C, this, Pos==0?NULL:Boxes[StreamPos][Pos-1], StreamPos==0?(wxWindow*)Select:(wxWindow*)Boxes[StreamPos-1][0], (stream_t)StreamPos, Pos); } //Drag and Drop #if wxUSE_DRAG_AND_DROP && defined(__WXMAC__) SetDropTarget(new FileDrop(C)); Select->SetDropTarget(new FileDrop(C)); #endif //wxUSE_DRAG_AND_DROP //Update GUI_Resize(); GUI_Refresh(); }
//--------------------------------------------------------------------------- GUI_Main_Easy_Box::GUI_Main_Easy_Box(Core* _C, GUI_Main_Easy* Parent, wxWindow* Left, wxWindow* Top, stream_t StreamKind, size_t StreamPos) : wxPanel(Parent, 26991, wxPoint(0, 0), wxSize(Parent->GetClientSize().GetWidth()-0, Parent->GetClientSize().GetHeight()-0)), GUI_Main_Easy_Box_Core(_C, Parent, StreamKind, StreamPos) { //Internal GUI_Main_Easy_Box::Parent=Parent; GUI_Main_Easy_Box::Left=Left; GUI_Main_Easy_Box::Top=Top; //Creation Box=new wxStaticBox (this, 26991, wxEmptyString); Text=new wxStaticText(this, 26991, wxEmptyString); Tags=new wxStaticText(this, 26991, wxEmptyString); Button=new wxButton (this, 26991, wxEmptyString); //Drag and Drop #if wxUSE_DRAG_AND_DROP && defined(__WXMAC__) SetDropTarget(new FileDrop(_C)); Box->SetDropTarget(new FileDrop(_C)); Text->SetDropTarget(new FileDrop(_C)); Tags->SetDropTarget(new FileDrop(_C)); Button->SetDropTarget(new FileDrop(_C)); #endif //wxUSE_DRAG_AND_DROP //Update GUI_Resize(); GUI_Refresh(); }
//--------------------------------------------------------------------------- GUI_Main_Easy_Box::GUI_Main_Easy_Box(Core* _C, GUI_Main_Easy* Parent, wxWindow* Left, wxWindow* Top, stream_t StreamKind, size_t StreamPos) : wxPanel(Parent, 26991, wxPoint(0, 0), wxSize(Parent->GetClientSize().GetWidth()-0, Parent->GetClientSize().GetHeight()-0)), GUI_Main_Easy_Box_Core(_C, Parent, StreamKind, StreamPos) { //Internal GUI_Main_Easy_Box::Parent=Parent; GUI_Main_Easy_Box::Left=Left; GUI_Main_Easy_Box::Top=Top; //Creation Box=new wxStaticBox (this, 26991, wxEmptyString); Text=new wxStaticText(this, 26991, wxEmptyString); Tags=new wxStaticText(this, 26991, wxEmptyString); Button=new wxButton (this, 26991, wxEmptyString); //Update GUI_Resize(); GUI_Refresh(); }
//--------------------------------------------------------------------------- GUI_Main_Easy::GUI_Main_Easy(Core* _C, wxWindow* parent) : wxPanel(parent, 26981, wxPoint(0, 0), wxSize(parent->GetClientSize().GetWidth()-0, parent->GetClientSize().GetHeight()-0)), GUI_Main_Easy_Core(_C) { //Creation - Select Select=new wxChoice(this, 26981); //Creation - Other Boxes.resize(Stream_Max); for (size_t StreamPos=0; StreamPos<Stream_Max; StreamPos++) { Boxes[StreamPos].resize(Boxes_Count_Get(StreamPos)); for (size_t Pos=0; Pos<Boxes[StreamPos].size(); Pos++) Boxes[StreamPos][Pos]=new GUI_Main_Easy_Box(C, this, Pos==0?NULL:Boxes[StreamPos][Pos-1], StreamPos==0?(wxWindow*)Select:(wxWindow*)Boxes[StreamPos-1][0], (stream_t)StreamPos, Pos); } //Update GUI_Resize(); GUI_Refresh(); }