Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » WISH: "Execute" Button & "Rebuild package only" Button
WISH: "Execute" Button & "Rebuild package only" Button [message #25276] |
Tue, 16 February 2010 12:04  |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
hi there
in many other IDEs there is a execute button directly on the toolbar, near/next to Build or Rebuild.. TheIDE should have it also. the functinality is already there using "Debug-Execute" or Ctrl+F5, but why not via Mouse button?
second, the Rebuild All button is with reason pictured as a bomb. it rebuilds the *entire* environment. build rebuilds only changes. there should also be something in between. "Rebuild Main Package" i.e, ehich really rebuilds only the main package or a selected one. cause rightklicking on a package one only can do a "Build" or "Clean". a build only would build changes, but wouldnt rebuild.
so best would be: a functionality to trigger a rebuild of a single package, when rightclicking it..and a function "rebuild main" next to Rebuild All, which triggers this same behaviour for the main package only.
is that possible?
[Updated on: Tue, 16 February 2010 12:06] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: WISH: "Execute" Button & "Rebuild package only" Button [message #25293 is a reply to message #25288] |
Tue, 16 February 2010 15:54   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
clean is not that good, cause it really wipes out everything, but many times one has put things inside the output/execution forlder, so the stuff is gone as well.
a clean rebuild trigger is prefered, as of my part, just in the same way of Rebuild All, it neither "cleans" the output destinations before building (as far as i know). cleaning is done upon explicit whish of user
[Updated on: Tue, 16 February 2010 15:55] Report message to a moderator
|
|
|
|
Re: WISH: "Execute" Button & "Rebuild package only" Button [message #25305 is a reply to message #25296] |
Tue, 16 February 2010 20:58   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
again, you are absolutely right.
i was talking of a different clean. the uppout clean. ofcorse, the package clean & package rebuild would obviously do the effect, since it would only clean the specified package's compile folder.
shouldnt be hard then, to implement something similar..
JUST FOR TERMS OF UNDERSTANDING:
3 types of clean (build) (all in Build submenu)
1) clean UPPOUT,
cleans the final application's destination/execution folder, all content deletet. may have more than just the own executable if other applications compile wirh same config, say GUI MT
2) clean package (build package),
cleans (builds) the (via right click) selected package, or the main package if triggered from build menu.
3) clean (build)
cleans (builds) the entire workspace, including all sub packageds in any dependancy line.
so rebuild all is defined Clean/Build in ide/Builders/Build.cpp:600, so same way we could use the rebuild package only stuff.
[Updated on: Tue, 16 February 2010 21:07] Report message to a moderator
|
|
|
Re: WISH: "Execute" Button & "Rebuild package only" Button [message #25309 is a reply to message #25305] |
Tue, 16 February 2010 21:29   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
ok seems to have worked, here comes the mini patch for the "Rebuild Package" feature
ide.h:848
void PackageClean();
void PackageRebuild();
ide.key:59
KEY(CLEANPACKAGE, "Clean package", 0)
KEY(REBUILDPACKAGE, "Rebuild package", 0)
Build.cpp:113
void Ide::PackageRebuild()
{
PackageClean();
PackageBuild();
}
idebar.cpp:389
menu.Add(b, AK_CLEANPACKAGE, THISBACK(PackageClean))
.Help("Remove all intermediate files of the current package");
menu.Add(b, AK_REBUILDPACKAGE, THISBACK(PackageRebuild))
.Help("Rebuild of the current package");
|
|
|
Re: WISH: "Execute" Button & "Rebuild package only" Button [message #25310 is a reply to message #25309] |
Tue, 16 February 2010 21:53   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
to have it all together: the execute (and more stuff) in the toolbar feature..
execute
idebar.cpp:536
void Ide::MainTool(Bar& bar)
{
Edit(bar);
// if(debugger)
// DebugMenu(bar);
// else
// if(!designer)
// bar.Separator();
Project(bar);
BuildMenu(bar);
DebugMenu(bar);
BrowseMenu(bar);
}
open output directory
idebar.cpp:445
menu.Add(!IsNull(target), "Open output directory", IdeImg::opposite(), THISBACK(OpenOutputFolder));
run in debuger, i used own recolored Navigator image from ide.iml, named debug_debug()
idebar.cpp:464
menu.Add(b, AK_DEBUG, IdeImg::debug_debug(), THISBACK1(BuildAndDebug, false))
.Help("Build application & run debugger");
seems as if everything having an image will be displayed also in the toolbar, so what ever you like to have in toolbar, give it an icon for..
[Updated on: Tue, 16 February 2010 21:54] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 08:26:14 CEST 2025
Total time taken to generate the page: 0.02709 seconds
|