~ubuntu-branches/debian/squeeze/freeciv/squeeze

« back to all changes in this revision

Viewing changes to client/gui-ftwl/dialogs.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2010-02-23 22:09:02 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100223220902-kiyrmr9i4152cka5
Tags: 2.2.0-1
[ Karl Goetz ]
* Remove civserver files in /etc/ggzd/ (Closes: 523772, 517787)
* Adding ${misc:Depends} to all binary packages (lintian warnings)

[ Clint Adams ]
* New upstream version.
  - Drop data_dsc_use_bindir.diff (binary pathnames have changed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <config.h>
16
16
#endif
17
17
 
 
18
/* common & utility */
18
19
#include "fcintl.h"
19
20
#include "game.h"
20
21
#include "government.h"
23
24
#include "shared.h"
24
25
#include "support.h"
25
26
 
 
27
/* client */
26
28
#include "chatline_common.h"
27
 
#include "clinet.h"
 
29
#include "client_main.h"
28
30
#include "gui_main.h"
29
31
#include "widget.h"
30
32
 
45
47
  location.
46
48
**************************************************************************/
47
49
void popup_notify_goto_dialog(const char *headline, const char *lines,
48
 
                              struct tile *ptile)
 
50
                              const struct text_tag_list *tags,
 
51
                              struct tile *ptile)
49
52
{
50
53
  /* PORTME */
51
54
}
52
55
 
53
56
/**************************************************************************
 
57
  Popup a dialog to display connection message from server.
 
58
**************************************************************************/
 
59
void popup_connect_msg(const char *headline, const char *message)
 
60
{
 
61
  /* FIXME: Needs proper implementation.
 
62
   *        Now just puts to chat window so message is not completely lost. */
 
63
 
 
64
  output_window_append(ftc_client, message);
 
65
}
 
66
 
 
67
/**************************************************************************
54
68
  Popup a generic dialog to display some generic information.
55
69
**************************************************************************/
56
70
void popup_notify_dialog(const char *caption, const char *headline,
69
83
  struct nation_leader *leaders = get_nation_leaders(selected_nation, &leader_count);
70
84
 
71
85
  if (strlen(leaders[leader].name) == 0) {
72
 
    append_output_window(_("You must type a legal name."));
 
86
    output_window_append(ftc_client, _("You must type a legal name."));
73
87
    return;
74
88
  }
75
89
 
76
 
  dsend_packet_nation_select_req(&aconnection, selected_nation,
 
90
  dsend_packet_nation_select_req(&client.conn, selected_nation,
77
91
                                 sw_list_get_selected_row(leaders_sex_list)==0,
78
92
                                 leaders[leader].name,1);
79
93
}
268
282
/**************************************************************************
269
283
  Popup a dialog giving a player choices when their caravan arrives at
270
284
  a city (other than its home city).  Example:
271
 
    - Establish traderoute.
 
285
    - Establish trade route.
272
286
    - Help build wonder.
273
287
    - Keep moving.
274
288
**************************************************************************/
353
367
  Popup a dialog asking the unit which improvement they would like to
354
368
  pillage.
355
369
**************************************************************************/
356
 
void popup_pillage_dialog(struct unit *punit, bv_special may_pillage)
 
370
void popup_pillage_dialog(struct unit *punit, bv_special may_pillage,
 
371
                          bv_bases bases)
357
372
{
358
373
  /* PORTME */
359
374
}