Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/gui.stetic @ 64:e3fe48c4d794
Re #60: Add UI to add/remove/edit weapons in GTK
* Add most of basic "edit" interface, based on "add" interface
TODO:
* Set initial values
* Warn when setting to 0
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 02 Sep 2010 20:12:21 +0000 |
parents | e7ad676a7344 |
children | 77448375d2f9 |
comparison
equal
deleted
inserted
replaced
63:c2d79b4209e3 | 64:e3fe48c4d794 |
---|---|
897 <property name="Sensitive">False</property> | 897 <property name="Sensitive">False</property> |
898 <property name="CanFocus">True</property> | 898 <property name="CanFocus">True</property> |
899 <property name="Type">TextOnly</property> | 899 <property name="Type">TextOnly</property> |
900 <property name="Label" translatable="yes">Edit</property> | 900 <property name="Label" translatable="yes">Edit</property> |
901 <property name="UseUnderline">True</property> | 901 <property name="UseUnderline">True</property> |
902 <signal name="Clicked" handler="HandleEditButtonClicked" /> | |
902 </widget> | 903 </widget> |
903 <packing> | 904 <packing> |
904 <property name="Position">1</property> | 905 <property name="Position">1</property> |
905 <property name="AutoSize">True</property> | 906 <property name="AutoSize">True</property> |
906 <property name="Expand">False</property> | 907 <property name="Expand">False</property> |
1121 <child> | 1122 <child> |
1122 <widget class="Gtk.RadioButton" id="rbEquipAll"> | 1123 <widget class="Gtk.RadioButton" id="rbEquipAll"> |
1123 <property name="MemberName" /> | 1124 <property name="MemberName" /> |
1124 <property name="CanFocus">True</property> | 1125 <property name="CanFocus">True</property> |
1125 <property name="Label" translatable="yes" /> | 1126 <property name="Label" translatable="yes" /> |
1126 <property name="Active">True</property> | |
1127 <property name="DrawIndicator">True</property> | 1127 <property name="DrawIndicator">True</property> |
1128 <property name="HasLabel">True</property> | 1128 <property name="HasLabel">True</property> |
1129 <property name="UseUnderline">True</property> | 1129 <property name="UseUnderline">True</property> |
1130 <property name="Group">group1</property> | 1130 <property name="Group">group1</property> |
1131 </widget> | 1131 </widget> |
1306 </packing> | 1306 </packing> |
1307 </child> | 1307 </child> |
1308 </widget> | 1308 </widget> |
1309 </child> | 1309 </child> |
1310 </widget> | 1310 </widget> |
1311 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmEditEquipment" design-size="280 175"> | |
1312 <property name="MemberName" /> | |
1313 <property name="WindowPosition">CenterOnParent</property> | |
1314 <property name="Buttons">2</property> | |
1315 <property name="HelpButton">False</property> | |
1316 <child internal-child="VBox"> | |
1317 <widget class="Gtk.VBox" id="dialog1_VBox"> | |
1318 <property name="MemberName" /> | |
1319 <property name="BorderWidth">2</property> | |
1320 <child> | |
1321 <widget class="Gtk.Table" id="table1"> | |
1322 <property name="MemberName" /> | |
1323 <property name="NColumns">2</property> | |
1324 <property name="RowSpacing">6</property> | |
1325 <property name="ColumnSpacing">6</property> | |
1326 <child> | |
1327 <widget class="Gtk.HBox" id="hbox2"> | |
1328 <property name="MemberName" /> | |
1329 <property name="Spacing">6</property> | |
1330 <child> | |
1331 <widget class="Gtk.Table" id="table2"> | |
1332 <property name="MemberName" /> | |
1333 <property name="NRows">3</property> | |
1334 <property name="NColumns">3</property> | |
1335 <property name="RowSpacing">6</property> | |
1336 <property name="ColumnSpacing">6</property> | |
1337 <child> | |
1338 <placeholder /> | |
1339 </child> | |
1340 <child> | |
1341 <placeholder /> | |
1342 </child> | |
1343 <child> | |
1344 <widget class="Gtk.Label" id="lblEquipAll"> | |
1345 <property name="MemberName" /> | |
1346 <property name="LabelProp" translatable="yes">equip all</property> | |
1347 </widget> | |
1348 <packing> | |
1349 <property name="TopAttach">2</property> | |
1350 <property name="BottomAttach">3</property> | |
1351 <property name="LeftAttach">1</property> | |
1352 <property name="RightAttach">2</property> | |
1353 <property name="AutoSize">False</property> | |
1354 <property name="YOptions">Fill</property> | |
1355 <property name="XExpand">True</property> | |
1356 <property name="XFill">True</property> | |
1357 <property name="XShrink">False</property> | |
1358 <property name="YExpand">False</property> | |
1359 <property name="YFill">True</property> | |
1360 <property name="YShrink">False</property> | |
1361 </packing> | |
1362 </child> | |
1363 <child> | |
1364 <widget class="Gtk.Label" id="lblPercent"> | |
1365 <property name="MemberName" /> | |
1366 <property name="LabelProp" translatable="yes">%</property> | |
1367 </widget> | |
1368 <packing> | |
1369 <property name="TopAttach">1</property> | |
1370 <property name="BottomAttach">2</property> | |
1371 <property name="LeftAttach">2</property> | |
1372 <property name="RightAttach">3</property> | |
1373 <property name="AutoSize">True</property> | |
1374 <property name="XOptions">Fill</property> | |
1375 <property name="YOptions">Fill</property> | |
1376 <property name="XExpand">False</property> | |
1377 <property name="XFill">True</property> | |
1378 <property name="XShrink">False</property> | |
1379 <property name="YExpand">False</property> | |
1380 <property name="YFill">True</property> | |
1381 <property name="YShrink">False</property> | |
1382 </packing> | |
1383 </child> | |
1384 <child> | |
1385 <widget class="Gtk.SpinButton" id="numericAmount"> | |
1386 <property name="MemberName" /> | |
1387 <property name="CanFocus">True</property> | |
1388 <property name="Upper">100</property> | |
1389 <property name="PageIncrement">10</property> | |
1390 <property name="StepIncrement">1</property> | |
1391 <property name="ClimbRate">1</property> | |
1392 <property name="Numeric">True</property> | |
1393 <signal name="ValueChanged" handler="SpinButtonValueChanged" /> | |
1394 </widget> | |
1395 <packing> | |
1396 <property name="LeftAttach">1</property> | |
1397 <property name="RightAttach">2</property> | |
1398 <property name="AutoSize">False</property> | |
1399 <property name="XOptions">0</property> | |
1400 <property name="YOptions">Fill</property> | |
1401 <property name="XExpand">False</property> | |
1402 <property name="XFill">False</property> | |
1403 <property name="XShrink">False</property> | |
1404 <property name="YExpand">False</property> | |
1405 <property name="YFill">True</property> | |
1406 <property name="YShrink">False</property> | |
1407 </packing> | |
1408 </child> | |
1409 <child> | |
1410 <widget class="Gtk.SpinButton" id="percentageAmount"> | |
1411 <property name="MemberName" /> | |
1412 <property name="CanFocus">True</property> | |
1413 <property name="Upper">100</property> | |
1414 <property name="PageIncrement">10</property> | |
1415 <property name="StepIncrement">1</property> | |
1416 <property name="ClimbRate">1</property> | |
1417 <property name="Digits">1</property> | |
1418 <property name="Numeric">True</property> | |
1419 <signal name="ValueChanged" handler="SpinButtonValueChanged" /> | |
1420 </widget> | |
1421 <packing> | |
1422 <property name="TopAttach">1</property> | |
1423 <property name="BottomAttach">2</property> | |
1424 <property name="LeftAttach">1</property> | |
1425 <property name="RightAttach">2</property> | |
1426 <property name="AutoSize">False</property> | |
1427 <property name="XOptions">0</property> | |
1428 <property name="YOptions">Fill</property> | |
1429 <property name="XExpand">False</property> | |
1430 <property name="XFill">False</property> | |
1431 <property name="XShrink">False</property> | |
1432 <property name="YExpand">False</property> | |
1433 <property name="YFill">True</property> | |
1434 <property name="YShrink">False</property> | |
1435 </packing> | |
1436 </child> | |
1437 <child> | |
1438 <widget class="Gtk.RadioButton" id="rbEquipAll"> | |
1439 <property name="MemberName" /> | |
1440 <property name="CanFocus">True</property> | |
1441 <property name="Label" translatable="yes" /> | |
1442 <property name="DrawIndicator">True</property> | |
1443 <property name="HasLabel">True</property> | |
1444 <property name="UseUnderline">True</property> | |
1445 <property name="Group">group1</property> | |
1446 </widget> | |
1447 <packing> | |
1448 <property name="TopAttach">2</property> | |
1449 <property name="BottomAttach">3</property> | |
1450 <property name="AutoSize">True</property> | |
1451 <property name="XOptions">Fill</property> | |
1452 <property name="YOptions">Fill</property> | |
1453 <property name="XExpand">False</property> | |
1454 <property name="XFill">True</property> | |
1455 <property name="XShrink">False</property> | |
1456 <property name="YExpand">False</property> | |
1457 <property name="YFill">True</property> | |
1458 <property name="YShrink">False</property> | |
1459 </packing> | |
1460 </child> | |
1461 <child> | |
1462 <widget class="Gtk.RadioButton" id="rbEquipNumeric"> | |
1463 <property name="MemberName" /> | |
1464 <property name="CanFocus">True</property> | |
1465 <property name="Label" translatable="yes" /> | |
1466 <property name="DrawIndicator">True</property> | |
1467 <property name="HasLabel">True</property> | |
1468 <property name="UseUnderline">True</property> | |
1469 <property name="Group">group1</property> | |
1470 <signal name="Clicked" handler="RadioButtonClicked" /> | |
1471 </widget> | |
1472 <packing> | |
1473 <property name="AutoSize">False</property> | |
1474 <property name="XOptions">Fill</property> | |
1475 <property name="YOptions">Fill</property> | |
1476 <property name="XExpand">False</property> | |
1477 <property name="XFill">True</property> | |
1478 <property name="XShrink">False</property> | |
1479 <property name="YExpand">False</property> | |
1480 <property name="YFill">True</property> | |
1481 <property name="YShrink">False</property> | |
1482 </packing> | |
1483 </child> | |
1484 <child> | |
1485 <widget class="Gtk.RadioButton" id="rbEquipPercent"> | |
1486 <property name="MemberName" /> | |
1487 <property name="CanFocus">True</property> | |
1488 <property name="Label" translatable="yes" /> | |
1489 <property name="DrawIndicator">True</property> | |
1490 <property name="HasLabel">True</property> | |
1491 <property name="UseUnderline">True</property> | |
1492 <property name="Group">group1</property> | |
1493 </widget> | |
1494 <packing> | |
1495 <property name="TopAttach">1</property> | |
1496 <property name="BottomAttach">2</property> | |
1497 <property name="AutoSize">True</property> | |
1498 <property name="XOptions">Fill</property> | |
1499 <property name="YOptions">Fill</property> | |
1500 <property name="XExpand">False</property> | |
1501 <property name="XFill">True</property> | |
1502 <property name="XShrink">False</property> | |
1503 <property name="YExpand">False</property> | |
1504 <property name="YFill">True</property> | |
1505 <property name="YShrink">False</property> | |
1506 </packing> | |
1507 </child> | |
1508 </widget> | |
1509 <packing> | |
1510 <property name="Position">0</property> | |
1511 <property name="AutoSize">True</property> | |
1512 <property name="Expand">False</property> | |
1513 <property name="Fill">False</property> | |
1514 </packing> | |
1515 </child> | |
1516 <child> | |
1517 <placeholder /> | |
1518 </child> | |
1519 </widget> | |
1520 <packing> | |
1521 <property name="LeftAttach">1</property> | |
1522 <property name="RightAttach">2</property> | |
1523 <property name="AutoSize">True</property> | |
1524 <property name="YOptions">Fill</property> | |
1525 <property name="XExpand">True</property> | |
1526 <property name="XFill">True</property> | |
1527 <property name="XShrink">False</property> | |
1528 <property name="YExpand">False</property> | |
1529 <property name="YFill">True</property> | |
1530 <property name="YShrink">False</property> | |
1531 </packing> | |
1532 </child> | |
1533 <child> | |
1534 <widget class="Gtk.Label" id="lblEquipAmount"> | |
1535 <property name="MemberName" /> | |
1536 <property name="LabelProp" translatable="yes">amount:</property> | |
1537 </widget> | |
1538 <packing> | |
1539 <property name="AutoSize">True</property> | |
1540 <property name="XOptions">Fill</property> | |
1541 <property name="YOptions">Fill</property> | |
1542 <property name="XExpand">False</property> | |
1543 <property name="XFill">True</property> | |
1544 <property name="XShrink">False</property> | |
1545 <property name="YExpand">False</property> | |
1546 <property name="YFill">True</property> | |
1547 <property name="YShrink">False</property> | |
1548 </packing> | |
1549 </child> | |
1550 </widget> | |
1551 <packing> | |
1552 <property name="Position">0</property> | |
1553 <property name="AutoSize">True</property> | |
1554 <property name="Expand">False</property> | |
1555 <property name="Fill">False</property> | |
1556 </packing> | |
1557 </child> | |
1558 </widget> | |
1559 </child> | |
1560 <child internal-child="ActionArea"> | |
1561 <widget class="Gtk.HButtonBox" id="dialog1_ActionArea"> | |
1562 <property name="MemberName" /> | |
1563 <property name="Spacing">10</property> | |
1564 <property name="BorderWidth">5</property> | |
1565 <property name="Size">2</property> | |
1566 <property name="LayoutStyle">End</property> | |
1567 <child> | |
1568 <widget class="Gtk.Button" id="buttonCancel"> | |
1569 <property name="MemberName" /> | |
1570 <property name="CanDefault">True</property> | |
1571 <property name="CanFocus">True</property> | |
1572 <property name="UseStock">True</property> | |
1573 <property name="Type">StockItem</property> | |
1574 <property name="StockId">gtk-cancel</property> | |
1575 <property name="ResponseId">-6</property> | |
1576 <signal name="Clicked" handler="CancelButtonClicked" /> | |
1577 <property name="label">gtk-cancel</property> | |
1578 </widget> | |
1579 <packing> | |
1580 <property name="Expand">False</property> | |
1581 <property name="Fill">False</property> | |
1582 </packing> | |
1583 </child> | |
1584 <child> | |
1585 <widget class="Gtk.Button" id="buttonOk"> | |
1586 <property name="MemberName" /> | |
1587 <property name="CanDefault">True</property> | |
1588 <property name="CanFocus">True</property> | |
1589 <property name="UseStock">True</property> | |
1590 <property name="Type">StockItem</property> | |
1591 <property name="StockId">gtk-ok</property> | |
1592 <property name="ResponseId">-5</property> | |
1593 <signal name="Clicked" handler="OkayButtonClicked" /> | |
1594 <property name="label">gtk-ok</property> | |
1595 </widget> | |
1596 <packing> | |
1597 <property name="Position">1</property> | |
1598 <property name="Expand">False</property> | |
1599 <property name="Fill">False</property> | |
1600 </packing> | |
1601 </child> | |
1602 </widget> | |
1603 </child> | |
1604 </widget> | |
1311 </stetic-interface> | 1605 </stetic-interface> |