Mutabor Frame. Mehr ...
#include "Defs.h"
#include "wx/wxprec.h"
#include "wx/wx.h"
#include "wx/mdi.h"
#include "wx/toolbar.h"
#include "Icon/Mutabor.xpm"
#include "Icon/Document.xpm"
#include "Icon/Route.xpm"
#include "Icon/KeyTextBox.xpm"
#include "Icon/TSTextBox.xpm"
#include "Icon/ActTextBox.xpm"
#include "bitmaps/new.xpm"
#include "bitmaps/open.xpm"
#include "bitmaps/save.xpm"
#include "bitmaps/copy.xpm"
#include "bitmaps/cut.xpm"
#include "bitmaps/paste.xpm"
#include "bitmaps/print.xpm"
#include "bitmaps/help.xpm"
#include "wx/filename.h"
#include "wx/config.h"
#include "wx/confbase.h"
#include "wx/fileconf.h"
#include "wx/ffile.h"
#include "MutFrame.h"
#include "MutDocument.h"
#include "MutView.h"
#include "MutChild.h"
#include "MutApp.h"
#include "mhDefs.h"
#include "Runtime.h"
#include "GrafKern.h"
#include "Action.h"
#include "MutRouteWnd.h"
#include "MutLogicWnd.h"
#include "MutTextBox.h"
#include "MutBitmaps.h"
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | OPENMENU menu = new wxMenu; |
#define | CLOSEMENU(name) menuBar->Append(menu, name); |
#define | MENUITEM(name, id, help) menu->Append(id, name, help) |
#define | MENUCHECKITEM(name, id, help) menu->AppendCheckItem(id, name, help) |
#define | MENUITEM_ADD(name, id, help, add) menu->Append(id, name, help, add) |
#define | MENUITEM_SEPARATOR menu->AppendSeparator() |
#define | PACKAGE_NAME "Mutabor" |
#define | APPNAME _(PACKAGE_NAME) |
#define | SG_NOTHING 1 |
#define | SG_LOGIC 0 |
#define | SG_RECORD 2 |
#define | SG_PLAY 3 |
#define | SG_PAUSE 4 |
#define | Compiled (!CompiledFile.IsEmpty()) |
Funktionen | |
BEGIN_EVENT_TABLE (MutFrame, wxDocChildFrame) EVT_ERASE_BACKGROUND(MutFrame | |
void | UpdateUIcallback (int box, bool logic_changed) |
void | CheckBoxesUsed () |
synchronizes BoxUsed with the routes | |
int | SmallestBoxUsed () |
Variablen | |
MutFrame * | theFrame = 0 |
bool | demo = false |
bool | asTS = true |
bool | SaveEditor = true |
bool | UseColorBars = true |
bool | OWM = false |
bool | CAW = false |
bool | LogicOn = false |
int | curBox = 0 |
wxWindow * | ChildToClose = NULL |
wxString | CompiledFile |
wxString | curLogic [MAX_BOX] |
wxString | curTS [MAX_BOX] |
int | curTaste [MAX_BOX][2] |
bool | TextBoxWanted [MAX_BOX][3] |
char | WinName [5][12] = { "KEYWIN", "TONSYSTWIN", "ACTIONWIN", "LOGICWIN", "ROUTEWIN" } |
wxSize | subSize = wxDefaultSize |
int | WSize [4][3] |
bool | BoxUsed [MAX_BOX] |
which mutabor boxes are used at all? |
Mutabor Frame.
Copyright: (c) 2005,2006,2007 TU Dresden
GPL
Revision 1.36 2011-08-20 17:50:39 keinstein use wxSTC for the editor windows
Revision 1.35 2011-08-16 20:20:03 keinstein Fix compiling on Mac OS X 10.5
Revision 1.34 2011-08-14 18:32:18 keinstein Use of m_childView of wxDocChildFrame instead of own view fixes a bad access. Use wxDocChildFrame::OnCloseWindow remove some unneeded code
Revision 1.33 2011-08-11 19:00:48 keinstein get Document/View running. Needs further testing (possible segfaults).
Revision 1.32 2011-08-06 09:21:23 keinstein activated and debugged document manager
Revision 1.31 2011-07-31 21:32:21 keinstein Slightly improved window positioning Suppress route window, when a Window is opened from the command line
Revision 1.30 2011-07-31 20:16:04 keinstein Implemented opening files from command line using Document/View framework
Revision 1.29 2011-07-31 12:40:42 keinstein Added classes and functions for Document/View support
Revision 1.28 2011-03-06 13:15:41 keinstein some rearrangement for update callback kernel->GUI
Revision 1.27 2011-02-20 22:35:57 keinstein updated license information; some file headers have to be revised, though
Revision 1.26 2011-02-13 17:20:46 keinstein Implemented missing toolbar icons (except search and edit funcitons)
Revision 1.25 2011-01-13 21:12:37 keinstein reactivate config restore on Activate in debug mode
Revision 1.24 2010-12-11 02:10:09 keinstein make 2.9.1 build but Mutabor crashes still at runtime in an infinite recursion :-(
Revision 1.23 2010-11-21 13:15:47 keinstein merged experimental_tobias
Revision 1.21.2.10 2010-11-20 21:58:16 keinstein reactivate midi playback
Revision 1.21.2.9 2010-11-18 21:46:14 keinstein MutFrame: get rid of OnIdle (this may break something, but saves much more CPU cycles Some further steps to get rid of EDevice*
Revision 1.21.2.8 2010-11-14 22:29:53 keinstein Remvoed EDevice.cpp and EDevice.h from the sources list They still reside in the source tree, since they have been used for Midi/GMN file playing. That funcitonality has been disabled so far. After reimplementation the files can be removed.
Revision 1.21.2.7 2010-09-30 16:26:26 keinstein remove global variables routewindow and frame move route loading and route saving into MutRouteWnd implement MutRouteWnd::InitShapes. Destroy Route children before loading new route configuration (still some crashes)
Revision 1.21.2.6 2010/04/20 17:41:38 keinstein One step towards using Mutabor: Activation of a logic now honours the state of the Device Editor.
Revision 1.21.2.5 2010/04/15 09:28:43 keinstein changing routes works, but is not honoured by MIDI, yet
Revision 1.21.2.4 2010/03/30 08:38:26 keinstein added rudimentary command line support changed debug system to allow selection of messages via command line further enhancements to the route dialogs
Revision 1.21.2.3 2010/02/15 12:08:21 keinstein intermediate update for backup progress
Revision 1.21.2.2 2010/01/14 09:34:24 keinstein Checkin searching for a bug
Revision 1.21.2.1 2009/08/10 11:23:12 keinstein merged from wrong tree
Revision 1.22 2009/08/10 11:15:46 keinstein some steps towards new route window
Revision 1.21 2008/10/09 15:14:02 keinstein make compile on mingw
Revision 1.20 2008/10/01 09:33:49 keinstein fixed inclution for XCode build
Revision 1.19 2008/08/18 15:10:37 keinstein Fix subwindow creation when on other window
Revision 1.18 2008/08/01 16:24:30 keinstein Fix some segfaults on stopping Mutabor
Revision 1.17 2008/07/22 07:57:06 keinstein solved some valgrind issues
Revision 1.16 2008/07/21 09:25:29 keinstein RcfFile: removed TextBoxWanted: one variable per box and type removed ROUTE_WIN and REPAINT_ROUTE definitions reformatted debug logging Implement box selection Menu MutFrame::repaint_route(): New function
Revision 1.15 2008/06/30 08:57:17 keinstein Fix UPDATE_UI for CM_PANIC and CM_EXECUTE MurFileData: new struct theFrame: new variable ~MutFrame(): empty event loop PassEventToEditor(): Runtime Class check for client OnClose(): implement Veto if logic is active stop logic if running close all clients before deletion to make AUI on reopening happy CmDoActivate(): Separate Logic window creation from other windows Create box selection submenu ClearMenuItem(), ClearSubMenu(), RaiseLogic(), CmStop(), CeActivate(): New functions. CmRoutes(): Raise window and return if we have a route window already. Set window ID. LogicWinOpen(): remove close button Set unique name TextBoxOpen(): don't destroy on close set unique window name StopInDev(): new function. CmInDevStop(): sooutsourcing to StopInDev(). CmRouteLoad(): New function. CmRouteSave(), CmRouteSaveAs(): New funcitons. CloseAll(): Some reorganization. ActiveWindow, BoxCommandIds: new Attributes.
Revision 1.14 2008/06/02 16:25:26 keinstein don't include Mutabor.rh implement CM_EXECUTE action disable CM_COMPILE, CM_EXECUTE, CM_DOACTIVATE if logic is active implement CM_SETTITLE for setting the window title FileNameDialog(): reimplemented CmFileOpen() and other: correct Event Skipping. MutFrame::ToggleTextBox(), CloseAll(): use DetachPane and Close instead of ClosePane
Revision 1.13 2008/04/28 08:21:33 keinstein Silence a warning since it is issued every normal start.
Revision 1.12 2008/03/11 10:37:34 keinstein Holyday edition put CM_xxx in an enum use wx constants document mutframe some white space formattings make route saving more system specific many other fixes
Revision 1.11 2008/01/25 09:37:11 keinstein Enable CM_ACTIVATE, CM_FILENEW and CM_FILEOPEN in event table Inherit wxFrame Use AUIManager Let Application handle CM_FILENEW/CM_FILEOPEN if we have already a client New titles for Subframes Some Debug output use wxConfig
MutFrame::CloseAll, MutFrame::OnSize, MutFrame::OnEraseBackground, MutFrame::OnActivate: New Functions.
Revision 1.10 2007/10/09 14:56:13 keinstein MutFrame::DetermineFrameSize: New Function. MutFrame::MutFrame: Automagic Frame size detection.
Revision 1.9 2007/10/08 12:21:50 keinstein Moved major Handling of file opening and new file to MutApp event handler.
Revision 1.8 2007/10/05 12:41:44 keinstein first steps towards a real mac version:
Revision 1.7 2006/01/18 15:37:02 kewxWindows licenseinstein no MDI Windows in some environments
Revision 1.6 2005/11/07 19:42:54 keinstein Some additional changes
Definiert in Datei MutFrame.cpp.