Ignore:
Timestamp:
02/28/14 07:34:45 (8 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
28f8495
Parents:
082a859
Message:

Add a popup-message ppolicy setting to the life preserver tray so that you can select to show popups for all messages, errors only, or none. This will not touch "critical" messages, which will cause an actual window to appear that requires attention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/life-preserver/lp-tray/LPTray.h

    r6a2483b rcbe0295  
    66#include <QString> 
    77#include <QMessageBox> 
     8#include <QRadioButton> 
     9#include <QWidgetAction> 
     10#include <QSettings> 
    811 
    912#include "LPWatcher.h" 
     
    1922        LPWatcher *watcher; 
    2023        LPMessages *msgdlg; 
    21         QMenu *menu; 
     24        QMenu *menu, *notificationMenu; 
     25        QRadioButton *nShowAll, *nShowError, *nShowNone; //notification popup messages 
     26        QWidgetAction *naAll, *naErr, *naNone; //widget-action containers for the readio buttons 
     27        QSettings *settings; 
     28        int popupPolicy; 
    2229 
    2330        void updateTrayIcon(); 
     
    3340        void startMessageDialog(); 
    3441        void refreshStatus(); 
     42        void changePopupPolicy(); 
    3543 
    3644}; 
Note: See TracChangeset for help on using the changeset viewer.