Ignore:
Timestamp:
Aug 15, 2011 10:29:14 PM (13 years ago)
Author:
nanang
Message:

Re #1327, some fixes on the simple GUI app:

  • Removed timer usage in resizing window, window resizing can be done real-time now (see r3698).
  • Fixed linking problem on Windows platform: undefined 'main' function.
  • Fixed build problem on Mac, compiling .cpp file containing objective C/C++ codes with g++ needs '-ObjC++' flag.
  • Minor changes in vidgui, e.g: function/variable rename, cleaning up unused/junk lines.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/vidgui/vidwin.h

    r3686 r3699  
    1010 
    1111public: 
    12     // hwnd         Handle of the video rendering window. 
    13     VidWin(pjmedia_vid_dev_hwnd *hwnd = NULL,  
     12    VidWin(const pjmedia_vid_dev_hwnd *hwnd, 
    1413           QWidget* parent = 0, 
    1514           Qt::WindowFlags f = 0); 
    1615    virtual ~VidWin(); 
     16    QSize sizeHint() const { return size_hint; } 
    1717 
    1818protected: 
    19     void resizeEvent(QResizeEvent *e); 
     19    virtual bool event(QEvent *e); 
    2020 
    2121private: 
    2222    pjmedia_vid_dev_hwnd hwnd; 
    23     //pjmedia_vid_dev_hwnd old_parent_hwnd; 
    24     pj_timer_entry timer_entry; 
     23    void *orig_parent; 
     24    QSize size_hint; 
    2525 
    26     static void timer_cb(pj_timer_heap_t *timer_heap, 
    27                          struct pj_timer_entry *entry); 
    28  
    29     void embed(); 
    30     void resize(); 
     26    void attach(); 
     27    void detach(); 
     28    void set_size(); 
     29    void get_size(); 
    3130}; 
    3231 
    3332#endif 
     33 
Note: See TracChangeset for help on using the changeset viewer.