Added universal support for Mac
authorinsilmaril
Thu Sep 21 13:48:05 2006 +0000 (2006-09-21)
changeset 389bb94eec7c8f3
parent 388 3a58c9ef4a18
child 390 0e1aeb21cb78
Added universal support for Mac
demos/liveform.vym
demos/todo.vym
mainwindow.cpp
texteditor.cpp
vym.pro
     1.1 Binary file demos/liveform.vym has changed
     2.1 Binary file demos/todo.vym has changed
     3.1 --- a/mainwindow.cpp	Thu Sep 14 11:38:18 2006 +0000
     3.2 +++ b/mainwindow.cpp	Thu Sep 21 13:48:05 2006 +0000
     3.3 @@ -1952,7 +1952,7 @@
     3.4  void Main::fileLoad(const LoadMode &lmode)
     3.5  {
     3.6  	QStringList filters;
     3.7 -	filters <<"XML (*.xml)"<<"VYM map (*.vym *.vyp)";
     3.8 +	filters <<"VYM map (*.vym *.vyp)"<<"XML (*.xml)";
     3.9  	QFileDialog *fd=new QFileDialog( this);
    3.10  	fd->setDir (lastFileDir);
    3.11  	fd->setFileMode (QFileDialog::ExistingFiles);
     4.1 --- a/texteditor.cpp	Thu Sep 14 11:38:18 2006 +0000
     4.2 +++ b/texteditor.cpp	Thu Sep 21 13:48:05 2006 +0000
     4.3 @@ -210,6 +210,7 @@
     4.4  void TextEditor::setupFileActions()
     4.5  {
     4.6      QToolBar *tb = addToolBar ( tr("Note Actions") );
     4.7 +	tb->setObjectName ("noteEditorFileActions");
     4.8      QMenu *fileMenu = menuBar()->addMenu( tr( "&Note" ));
     4.9  
    4.10      QAction *a;
    4.11 @@ -256,6 +257,7 @@
    4.12  void TextEditor::setupEditActions()
    4.13  {
    4.14      QToolBar *tb = addToolBar ( tr( "Edit Actions" ));
    4.15 +	tb->setObjectName ("noteEditorEditActions");
    4.16      QMenu *editMenu = menuBar()->addMenu ( tr( "&Edit" ));
    4.17  
    4.18      QAction *a;
    4.19 @@ -319,6 +321,7 @@
    4.20  void TextEditor::setupFormatActions()
    4.21  {
    4.22      QToolBar *tb = addToolBar ( tr("Format Actions" ));
    4.23 +	tb->setObjectName ("noteEditorFormatActions");
    4.24      QMenu *formatMenu = menuBar()->addMenu ( tr( "F&ormat" ));
    4.25  
    4.26      QAction *a;
    4.27 @@ -433,20 +436,6 @@
    4.28  	tb->addAction (a);
    4.29  	formatMenu->addAction (a);
    4.30      actionAlignJustify=a;
    4.31 -
    4.32 -
    4.33 -    
    4.34 -		 /* FIXME
    4.35 -    connect( e, SIGNAL( currentFontChanged( const QFont & ) ),
    4.36 -	     this, SLOT( fontChanged( const QFont & ) ) );
    4.37 -    connect( e, SIGNAL( currentColorChanged( const QColor & ) ),
    4.38 -	     this, SLOT( colorChanged( const QColor & ) ) );
    4.39 -    connect( e, SIGNAL( currentAlignmentChanged( int ) ),
    4.40 -	     this, SLOT( alignmentChanged( int ) ) );
    4.41 -    connect( e, SIGNAL( currentVerticalAlignmentChanged(int)),
    4.42 -	     this, SLOT( verticalAlignmentChanged(int)));
    4.43 -		 */
    4.44 -
    4.45  }
    4.46  
    4.47  void TextEditor::setupSettingsActions()
     5.1 --- a/vym.pro	Thu Sep 14 11:38:18 2006 +0000
     5.2 +++ b/vym.pro	Thu Sep 21 13:48:05 2006 +0000
     5.3 @@ -2,6 +2,8 @@
     5.4  LANGUAGE	= C++
     5.5  
     5.6  CONFIG	+= qt warn_on release
     5.7 +CONFIG += x86 ppc
     5.8 +
     5.9  QT += qt3support
    5.10  
    5.11  HEADERS	+= \