Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
hehe you're welcome
I could just add the 3D buffer parent window in a global variable for editor, but you should restore the initial setup on plugIT stop.
in the deleteObj function?
Offline
/* ----------------------------------------------------------------------------- This source file is part of OpenSpace3D For the latest info, see http://www.openspace3d.com Copyright (c) 2012 I-maginer This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, or go to http://www.gnu.org/copyleft/lesser.txt ----------------------------------------------------------------------------- */
You are not I-maginer ! You don't work to i-maginer.
Apply from the start your own copyright : your name and your mail. You are the author !
The mail allows any user/developer to contact you, for any reasons, about your work. Otherwise, give at least a link to this forum.
For example :
/*
-----------------------------------------------------------------------------
This source file is part of the plugIt < Name of this plugIt > for OpensSpace3D
For the latest info, see http://www.openspace3d.com (and to your url, if any !)
Copyright (c) 2014 Your Name < yourmail@domain.tld >
Your license, can be the same than os3d if you want
It's also important.
Offline
hebdemnobad wrote:/* ----------------------------------------------------------------------------- This source file is part of OpenSpace3D For the latest info, see http://www.openspace3d.com Copyright (c) 2012 I-maginer This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, or go to http://www.gnu.org/copyleft/lesser.txt ----------------------------------------------------------------------------- */
You are not I-maginer ! You don't work to i-maginer.
Apply from the start your own copyright : your name and your mail. You are the author !The mail allows any user/developer to contact you, for any reasons, about your work. Otherwise, give at least a link to this forum.
For example :/* ----------------------------------------------------------------------------- This source file is part of the plugIt < Name of this plugIt > for OpensSpace3D For the latest info, see http://www.openspace3d.com (and to your url, if any !) Copyright (c) 2014 Your Name < yourmail@domain.tld > Your license, can be the same than os3d if you want
It's also important.
I will make corrections as instructed.
Offline
arkeon I made a destroy function to restore the size of the 3d buffer to the full width and size of DMSwin and to destroy the container:
declaration of destroy callback:
setPluginInstanceCbDel inst mkfun2 @deleteOb twodguicontainer;
destroy function:
fun deleteOb(inst, guicontainer)=
//get size of main window so we can resize 3d buffer
let _GETwindowPositionSize DMSwin -> [dmsx dmsy dmsw dmsh] in
(
let V3DgetSessionView c3dXsession -> viewstr in
//restore v3dview to full width ane height
(
V3DresizeView viewstr 0 0 dmsw dmsh;
);
);
_DScontainer guicontainer;
0;;
I think I will make a new plugit since I've commented out most of the mainwindow code.
Last edited by hebdemnobad (12-Oct-2014 13:48:03)
Offline
One remark : if you are some 2d resources which no longer used, you should also destroy them (after _DScontainer guicontainer;).
Offline