Changeset 480

Show
Ignore:
Timestamp:
02/05/10 15:57:44 (7 months ago)
Author:
ibboard
Message:

Re #247: Implement menu options in Qt# app

  • Hook up army close (can now create, save and close armies)

Re #242: Create Qt# UI for WarFoundry

  • Fix initial window title
Location:
IBBoard.WarFoundry.GUI.QtSharp/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • IBBoard.WarFoundry.GUI.QtSharp/trunk/MainWindow.cs

    r479 r480  
    3030            layout.SetupUi(this); 
    3131            WindowIcon = new QIcon("icons/App.png"); 
     32            SetAppTitle(); 
    3233            saveArmyDialog = new QFileDialog(this); 
    3334            saveArmyDialog.acceptMode = QFileDialog.AcceptMode.AcceptSave; 
     
    6162            QObject.Connect(layout.actionSaveArmyAs, SIGNAL("triggered()"), DoSaveCurrentArmyAs); 
    6263            QObject.Connect(layout.actionSaveArmy, SIGNAL("triggered()"), DoSaveCurrentArmy); 
     64            QObject.Connect(layout.actionCloseArmy, SIGNAL("triggered()"), CloseArmy); 
    6365        } 
    6466         
     
    362364            //TODO enable category buttons 
    363365        } 
     366         
     367        private void CloseArmy() 
     368        { 
     369            CurrentArmy = null; 
     370        } 
    364371    } 
    365372} 
  • IBBoard.WarFoundry.GUI.QtSharp/trunk/qt-gui/MainWindowLayout.cs

    r464 r480  
    22** Form generated from reading ui file 'MainWindowLayout.ui' 
    33** 
    4 ** Created: Sat Jan 23 19:54:08 2010 
    5 **      by: Qt User Interface Compiler for C# version 4.5.3 
     4** Created: Fri Feb 5 20:56:11 2010 
     5**      by: Qt User Interface Compiler for C# version 4.6.0 
    66** 
    77** WARNING! All changes made in this file will be lost when recompiling ui file! 
     
    122122    toolBar.ToolButtonStyle = Qt.ToolButtonStyle.ToolButtonIconOnly; 
    123123    MainWindowLayout.AddToolBar(Qt.ToolBarArea.TopToolBarArea, toolBar); 
    124     MainWindowLayout.InsertToolBarBreak(toolBar); 
    125124 
    126125    menubar.AddAction(menuFile.MenuAction()); 
     
    153152    public void RetranslateUi(QMainWindow MainWindowLayout) 
    154153    { 
    155     MainWindowLayout.WindowTitle = QApplication.Translate("MainWindowLayout", "MainWindow", null, QApplication.Encoding.UnicodeUTF8); 
     154    MainWindowLayout.WindowTitle = QApplication.Translate("MainWindowLayout", "WarFoundry", null, QApplication.Encoding.UnicodeUTF8); 
    156155    actionCreateArmy.Text = QApplication.Translate("MainWindowLayout", "&create army", null, QApplication.Encoding.UnicodeUTF8); 
    157156    actionOpenArmy.Text = QApplication.Translate("MainWindowLayout", "&open army", null, QApplication.Encoding.UnicodeUTF8); 
  • IBBoard.WarFoundry.GUI.QtSharp/trunk/qt-gui/MainWindowLayout.ui

    r461 r480  
    1212  </property> 
    1313  <property name="windowTitle"> 
    14    <string>MainWindow</string> 
     14   <string>WarFoundry</string> 
    1515  </property> 
    1616  <property name="windowIcon"> 
     
    116116   </attribute> 
    117117   <attribute name="toolBarBreak"> 
    118     <bool>true</bool> 
     118    <bool>false</bool> 
    119119   </attribute> 
    120120  </widget>