[Aptitude-svn-commit] r3552 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows@costa.debian.org
Sat, 02 Jul 2005 17:37:47 +0000


Author: dburrows
Date: Sat Jul  2 17:37:44 2005
New Revision: 3552

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/ui.h
Log:
Add wstring variants of some functions.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Jul  2 17:37:44 2005
@@ -1,5 +1,9 @@
 2005-07-02  Daniel Burrows  <dburrows@debian.org>
 
+	* src/ui.h:
+
+	  Add wstring variants of some interface functions.
+
 	* src/pkg_sortpolicy.h:
 
 	  Make operator() non-const; the new sort policy protocol

Modified: branches/aptitude-0.3/aptitude/src/ui.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/ui.h	(original)
+++ branches/aptitude-0.3/aptitude/src/ui.h	Sat Jul  2 17:37:44 2005
@@ -183,6 +183,13 @@
 		   slotarg<sigc::slot1<void, string> > changed_slot,
 		   vs_editline::history_list *history);
 
+void prompt_string(const std::wstring &prompt,
+		   const std::wstring &text,
+		   slotarg<sigc::slot1<void, string> > slot,
+		   slotarg<sigc::slot0<void> > cancel_slot,
+		   slotarg<sigc::slot1<void, string> > changed_slot,
+		   vs_editline::history_list *history);
+
 void prompt_yesno(const std::string &prompt,
 		  bool deflt,
 		  slot0arg yesslot,
@@ -207,6 +214,19 @@
  *  need a scrollbar on a 'reasonable' terminal); it will be
  *  paragraph-wrapped as necessary.
  *
+ *  \param msg the message to display
+ *  \param okslot an optional slot to be called when the message is dismissed
+ */
+void show_message(const std::wstring &msg,
+		  slot0arg okslot=NULL,
+		  const style &st=style());
+
+/** Display the given message, either in a popup dialog box or as a
+ *  "transient" message at the bottom of the screen.  The message
+ *  should be expected to be relatively short (ie, short enough to not
+ *  need a scrollbar on a 'reasonable' terminal); it will be
+ *  paragraph-wrapped as necessary.
+ *
  *  \param msg the message to display; will be transcoded
  *  \param okslot an optional slot to be called when the message is dismissed
  */