-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate documentation command (#172)
* Create command for generating documentation files. * Fix reference resolution on top level. * Add about dialog. * Remove logo background.
- Loading branch information
Showing
13 changed files
with
294 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import os | ||
import aclib | ||
|
||
rootFolder = os.path.dirname (os.path.dirname (os.path.dirname (os.path.abspath (__file__)))) | ||
docFolder = os.path.join (rootFolder, 'docs', 'archicad-addon') | ||
|
||
commandName = 'GenerateDocumentation' | ||
commandParameters = { | ||
'destinationFolder' : docFolder | ||
} | ||
|
||
response = aclib.RunTapirCommand (commandName, commandParameters) | ||
print (response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "AboutDialog.hpp" | ||
|
||
#include "AddOnVersion.hpp" | ||
#include "ResourceIds.hpp" | ||
|
||
#include "ACAPinc.h" | ||
|
||
AboutDialog::AboutDialog () : | ||
DG::ModalDialog (ACAPI_GetOwnResModule (), ID_ABOUT_DIALOG, ACAPI_GetOwnResModule ()), | ||
okButton (GetReference (), 1), | ||
versionText (GetReference (), 4) | ||
{ | ||
AttachToAllItems (*this); | ||
Attach (*this); | ||
|
||
GS::UniString versionTextContent = versionText.GetText (); | ||
versionText.SetText (GS::UniString::SPrintf (versionTextContent, GS::UniString (ADDON_VERSION).ToPrintf ())); | ||
} | ||
|
||
void AboutDialog::ButtonClicked (const DG::ButtonClickEvent& ev) | ||
{ | ||
if (ev.GetSource () == &okButton) { | ||
PostCloseRequest (DG::ModalDialog::Accept); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include "DGModule.hpp" | ||
|
||
class AboutDialog : | ||
public DG::ModalDialog, | ||
public DG::PanelObserver, | ||
public DG::ButtonItemObserver, | ||
public DG::CompoundItemObserver | ||
{ | ||
public: | ||
AboutDialog (); | ||
|
||
private: | ||
virtual void ButtonClicked (const DG::ButtonClickEvent& ev) override; | ||
|
||
DG::Button okButton; | ||
DG::CenterText versionText; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#include "ResourceIds.hpp" | ||
|
||
'MDID' ID_ADDON_ID "Add-On Identifier" { | ||
'MDID' 32500 "Add-On Identifier" { | ||
826567491 | ||
368333322 | ||
} | ||
|
||
'GICN' ID_TAPIR_LOGO "TapirLogo" { | ||
"TapirLogo" | ||
} |
Oops, something went wrong.