~zulcss/ubuntu/lucid/likewise-open/likewise-open-sru

« back to all changes in this revision

Viewing changes to domainjoin/domainjoin-gui/carbon/DomainJoin/HIFramework/TSheet.cp

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-08-27 08:56:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080827085620-5q0f58b9qtog9myq
Tags: 4.1.0.2956-0ubuntu1
* missing-likewise-logo.diff: removed
* fixed copyright notice
* updated Standards-Version to 3.8.0
* removed path from command in prerm
* removed stop in S runlevel

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  TSheet.cpp
 
3
 *  DomainJoin
 
4
 *
 
5
 *  Created by Sriram Nambakam on 8/13/07.
 
6
 *  Copyright 2007 Centeris Corporation. All rights reserved.
 
7
 *
 
8
 */
 
9
 
 
10
#include "TSheet.h"
 
11
 
 
12
TSheet::TSheet(int inAppSignature,
 
13
               CFStringRef inName,
 
14
                           CFStringRef inNibName,
 
15
                           TWindow& parentWindow)
 
16
: TWindow(inAppSignature, inName, inNibName),
 
17
  _parent(parentWindow)
 
18
{
 
19
}
 
20
 
 
21
void
 
22
TSheet::Show()
 
23
{
 
24
    ::ShowSheetWindow(GetWindowRef(), _parent.GetWindowRef());
 
25
        ::AdvanceKeyboardFocus(GetWindowRef());
 
26
}
 
27
 
 
28
void
 
29
TSheet::Hide()
 
30
{
 
31
    if (::IsWindowVisible(GetWindowRef()))
 
32
           ::HideSheetWindow(GetWindowRef());
 
33
}