Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MRoc committed Jan 30, 2022
1 parent e8681b0 commit 5fc2e1c
Show file tree
Hide file tree
Showing 896 changed files with 94,316 additions and 0 deletions.
Binary file added backup/InstallerProject.old.zip
Binary file not shown.
Binary file added backup/Loopmachine.Binary.zip
Binary file not shown.
Binary file added backup/Loopmachine.Source.zip
Binary file not shown.
Binary file added backup/MSynth.1.5.0.Doc.Alpha.zip
Binary file not shown.
Binary file added backup/MSynth.1.5.0.Installer.Alpha.zip
Binary file not shown.
Binary file added backup/MSynth.Doc.0.3.zip
Binary file not shown.
Binary file added backup/MSynth.Doc.0.8c.zip
Binary file not shown.
Binary file added backup/MSynth.Doc.0.9.beta.zip
Binary file not shown.
Binary file added backup/MSynth.Doc.1.1.0.zip
Binary file not shown.
Binary file added backup/MSynth.Doc.1.1.beta.zip
Binary file not shown.
Binary file added backup/MSynth.Doc.1.2.zip
Binary file not shown.
Binary file added backup/MSynth.Doc.zip
Binary file not shown.
Binary file added backup/MSynth.Installer.old.zip
Binary file not shown.
Binary file added backup/MSynth.Songs2.zip
Binary file not shown.
Binary file added backup/MSynth.Uml.Test.zip
Binary file not shown.
Binary file added releases/HELP.ZIP
Binary file not shown.
Binary file added releases/MSynth.1.5.0.alpha.msi
Binary file not shown.
Binary file added releases/MSynth1.0.0DEMO.zip
Binary file not shown.
Binary file added releases/MSynth1.0.0FULL.zip
Binary file not shown.
Binary file added releases/MSynth1.0.0beta1.zip
Binary file not shown.
Binary file added releases/MSynth1.0.0beta2.zip
Binary file not shown.
Binary file added releases/MSynth1.0.0beta3.zip
Binary file not shown.
Binary file added releases/MSynth1.0.0beta5b.zip
Binary file not shown.
Binary file added releases/MSynth1.0.0beta6.zip
Binary file not shown.
Binary file added releases/MSynth1.0.1DEMO.msi
Binary file not shown.
Binary file added releases/MSynth1.0.1FULL.msi
Binary file not shown.
Binary file added releases/MSynth1.0.2DEMO.msi
Binary file not shown.
Binary file added releases/MSynth1.0.2FULL.msi
Binary file not shown.
Binary file added releases/MSynth1.0.2LE.msi
Binary file not shown.
Binary file added releases/MSynth1.0beta1.zip
Binary file not shown.
Binary file added releases/MSynth1.0beta2.zip
Binary file not shown.
Binary file added releases/MSynth1.0beta3.zip
Binary file not shown.
Binary file added releases/MSynth1.0beta5b.zip
Binary file not shown.
Binary file added releases/MSynth1.0beta6.zip
Binary file not shown.
Binary file added releases/MSynth1.1.0BETA.msi
Binary file not shown.
Binary file added releases/MSynth1.1.0beta2.msi
Binary file not shown.
Binary file added releases/MSynth1.2.1demo.msi
Binary file not shown.
Binary file added releases/MSynth1.2.2.msi
Binary file not shown.
Binary file added releases/MSynth1.2beta.msi
Binary file not shown.
Binary file added releases/MSynth1.3.0.msi
Binary file not shown.
Binary file added releases/Msynth1.0.0beta8.zip
Binary file not shown.
Binary file added releases/msynth1.0beta8.zip
Binary file not shown.
62 changes: 62 additions & 0 deletions source/MUiAppTest/MTestApp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#include "MTestApp.h"
#include <framework/io/MIoException.h>
#include <framework/io/MLogger.h>
#include <framework/resource/MResourceManager.h>
#include <framework/treedocument/MTreeDocumentUtils.h>

MTestApp::MTestApp() :
ivPtWindow( 0 )
{
}

MTestApp::~MTestApp()
{
}

MApp* createApp()
{
return new MTestApp();
}


bool MTestApp::onInit()
{
#ifndef _DEBUG
String appDir = getAppDir();
#else
String appDir = "D:/code/msynth/msynth/";
#endif
appDir.Replace( "\\", "/" );

try
{
MResourceManager::getInstance()->loadArchive( appDir, "app" );
MResourceManager::getInstance()->loadArchive( appDir + "resource", "resource" );
}
catch( MIoException ae )
{
MLogger::logError( ae.getExceptionDescripton() );
return false;
}

ivPtWindow = new MTestWindow();
ivPtWindow->create( MRect( 10,10, 640, 480 ), 0 );
ivPtWindow->setText( "MRoc widget systems" );

return true;
}

/** invoked when app exists */
bool MTestApp::onExit()
{
try
{
MResourceManager::release();
}
catch( MIoException ae )
{
MLogger::logWarning( ae.getExceptionDescripton() );
return false;
}
return true;
}
33 changes: 33 additions & 0 deletions source/MUiAppTest/MTestApp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#ifndef __MTestApp
#define __MTestApp

#include <gui\MApp.h>
#include "MTestWindow.h"

class MTestApp :
public MApp
{
protected:

/** the test window */
MTestWindow* ivPtWindow;

public:

/** constructor */
MTestApp();

/** destructor */
virtual ~MTestApp();

/** invoked when app is coming up */
virtual bool onInit();

/** invoked when app exists */
virtual bool onExit();

/** returns the application's name */
virtual String getAppName(){ return "MTestApp"; };
};

#endif
47 changes: 47 additions & 0 deletions source/MUiAppTest/MTestDialog.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#include "MTestDialog.h"
#include <framework/io/MLogger.h>

/** constructor */
MTestDialog::MTestDialog() :
ivPtButton( 0 )
{
ivPtButton =
new MButton(
"open new modal",
MColorMap::create( 32, 32, 64 ),
MColorMap::create( 64, 64, 64 ),
MColorMap::create( 180, 180, 210 ) );
ivPtButton->setRect( MRect( 10, 10, 170, 20 ) );
ivPtButton->addActionListener( this );
addChild( ivPtButton );

if( create( MRect( 100, 100, 200, 200 ), 0 ) == false )
MLogger::logError( "MTestDialog::create failed" );

setText( "MTestDialog" );

doModal();
}

/** destructor */
MTestDialog::~MTestDialog()
{
ivPtButton->removeActionListener( this );
}

/** invoked when button was pressed */
void MTestDialog::onActionPerformed( void* ptSrc )
{
MTestDialog dlg;
}

/** query interface */
void* MTestDialog::getInterface( const String& className ) const
{
if( className == "MTestDialog" )
return (void*) ((MTestDialog*)this);
else if( className == "IActionListener" )
return (void*) ((IActionListener*)this);
else
return MDialog::getInterface( className );
}
31 changes: 31 additions & 0 deletions source/MUiAppTest/MTestDialog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef __MTestDialog
#define __MTestDialog

#include <gui/dialog/MDialog.h>
#include <gui/button/MButton.h>

class MTestDialog :
public MDialog,
public IActionListener
{
protected:

/** the button which opens a new testdialog */
MButton* ivPtButton;

public:

/** constructor */
MTestDialog();

/** destructor */
virtual ~MTestDialog();

/** invoked when button was pressed */
virtual void onActionPerformed( void* ptSrc );

/** query interface */
virtual void* getInterface( const String& className ) const;
};

#endif
Loading

0 comments on commit 5fc2e1c

Please sign in to comment.