Dialog Windows. More...
Go to the source code of this file.
Functions | |
struct MuttWindow * | dialog_find (struct MuttWindow *win) |
Find the parent Dialog of a Window. More... | |
void | dialog_push (struct MuttWindow *dlg) |
Display a Window to the user. More... | |
void | dialog_pop (void) |
Hide a Window from the user. More... | |
static int | alldialogs_window_observer (struct NotifyCallback *nc) |
Notification that a Window has changed - Implements observer_t -. More... | |
struct MuttWindow * | alldialogs_new (void) |
Create the AllDialogs Window. More... | |
struct MuttWindow * | alldialogs_get_current (void) |
Get the currently active Dialog. More... | |
Variables | |
struct MuttWindow * | AllDialogsWindow = NULL |
Parent of all Dialogs. More... | |
Dialog Windows.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file dialog.c.
struct MuttWindow * dialog_find | ( | struct MuttWindow * | win | ) |
Find the parent Dialog of a Window.
win | Window |
ptr | Dialog |
Dialog Windows will be owned by a MuttWindow of type WT_ALL_DIALOGS.
Definition at line 83 of file dialog.c.
void dialog_push | ( | struct MuttWindow * | dlg | ) |
Display a Window to the user.
dlg | Window to display |
The Dialog Windows are kept in a stack. The topmost is visible to the user, whilst the others are hidden.
When a Window is pushed, the old Window is marked as not visible.
Definition at line 103 of file dialog.c.
void dialog_pop | ( | void | ) |
Hide a Window from the user.
The topmost (visible) Window is removed from the stack and the next Window is marked as visible.
Definition at line 137 of file dialog.c.
struct MuttWindow * alldialogs_new | ( | void | ) |
Create the AllDialogs Window.
ptr | New AllDialogs Window |
Create the container for all the Dialogs.
Definition at line 206 of file dialog.c.
struct MuttWindow * alldialogs_get_current | ( | void | ) |
Get the currently active Dialog.
ptr | Active Dialog |
Definition at line 223 of file dialog.c.
struct MuttWindow* AllDialogsWindow = NULL |