m_Battles[name]["Friendly"]["Home Planet"];
m_Battles[name]["Hostile"];
+ modified = true;
emit documentChanged();
return 0;
}
protected:
bool modified;
+ /**This is the main datastructure of the battlecalc, it's more or less the
+ * core that everything else works around. A short explanation of the fields:
+ * -# The name of the battle (usually coordinates)
+ * -# The name of the group (ie. Friendly/Hostile)
+ * -# The fleetname (Home Planet, coordinates, irc nicks and so on)
+ * - and in the end you got the actual Fleet object with it's data.
+ */
std::map<QString, std::map<QString, std::map<QString, Fleet> > > m_Battles;
};
//setting up the listview
m_NumberView = new QListView(m_LeftSplit);
+ m_NumberView->setRootIsDecorated(true);
m_NumberView->addColumn("Name");
m_NumberView->addColumn("Number");
m_NumberView->addColumn("ETA");
- addBattle("test");
+ //addBattle("NO BATTLES");
m_InfoView = new InfoView(m_LeftSplit);
void BSView::addBattle(QString name)
{
QListViewItem* battle = new QListViewItem(m_NumberView, name);
- QListViewItem* def = new QListViewItem(battle, tr("Defenders"),"", "","1");
- (void) new QListViewItem(battle, tr("Attackers"),"", "","2");
+ QListViewItem* def = new QListViewItem(battle, tr("Friendly"),"", "","1");
+ (void) new QListViewItem(battle, tr("Hostile"),"", "","2");
(void) new QListViewItem(def, tr("Home Planet"), "","","1");
}
\section intro Introduction
Going to write something nice here.. (maybe ;)
\section cvs Getting CVS access
- Yes I got anonymous cvs access, might right how you reach it one day.. ;)
+ Yes I got anonymous cvs access, might write how you reach it one day.. ;)
*/
</rect>
</property>
<property name="caption">
- <string>Form1</string>
+ <string>Harvalen's Battlesystem</string>
</property>
</widget>
<menubar>
<separator/>
<action name="editFindAction"/>
</item>
+ <item text="Battle" name="PopupMenu">
+ <action name="battleNewAction"/>
+ </item>
<item text="&Help" name="helpMenu">
<action name="helpContentsAction"/>
<action name="helpIndexAction"/>
<separator/>
<action name="helpAboutAction"/>
</item>
- <item text="Battle" name="PopupMenu">
- <action name="battleNewAction"/>
- </item>
</menubar>
<toolbars>
<toolbar dock="2">
<property name="text">
<string>New</string>
</property>
+ <property name="toolTip">
+ <string>Create what's needed to add fleets to a battle</string>
+ </property>
+ <property name="statusTip">
+ <string>Create a new battle with initial groups and home planet</string>
+ </property>
<property name="accel">
<number>4194382</number>
</property>