Example #1
0
        public CDoubleDecorator(CEditField decoratee)
            : base(null)
        {
            // create list that will hold two controls (text and edit)
            CComponentList list = new CComponentList();

            // set list position
            list.PosY = decoratee.PosY;

            // take prompt data from decoratee and put it into text control
            int pos = decoratee.PosY;

            _text      = new CText(decoratee.Prompt);
            _text.PosY = pos;

            // put decoratee (edit) under text control and erase prompt
            decoratee.PosY   = pos + 1;
            decoratee.Prompt = "";

            // add both controls
            list.add(_text);
            list.add(decoratee);
            // set list as decoratee
            _component = list;
        }
Example #2
0
        public CXferDialingPage()
            : base(ECallPages.P_XFERDIAL, "Transfer...")
        {
            this.clearHistory(false);

            CLink phbookLink = new CLink("Phonebook", (int)EPages.P_PHONEBOOK);

            phbookLink.PosY = 9;
            this.add(phbookLink);

            CLink callRegLink = new CLink("Calls", (int)EPages.P_CALLLOG);

            callRegLink.Align = EAlignment.justify_right;
            callRegLink.PosY  = 8;
            this.add(callRegLink);

            _editField      = new CEditField(">", "", EEditMode.numeric, true);
            _editField.PosY = 2;
            _editField.Ok  += new VoidDelegate(_editField_Ok);
            this.add(_editField);

            // remove unneeded controls
            remove(this._name);
            remove(this._sessions);
        }
Example #3
0
        public CRedirectPage()
            : base((int)EPages.P_REDIRECT, "Redirections")
        {
            _checkCFU      = new CCheckBox("Unconditional");
            _checkCFU.PosY = 5;
            add(_checkCFU);

            _editCFUNumber      = new CEditField("Number>", "", true);
            _editCFUNumber.PosY = 6;
            add(_editCFUNumber);

            _checkCFNR      = new CCheckBox("On No Reply");
            _checkCFNR.PosY = 7;
            add(_checkCFNR);

            _editCFNRNumber      = new CEditField("Number>", "");
            _editCFNRNumber.PosY = 8;
            add(_editCFNRNumber);


            _checkCFB      = new CCheckBox("On Busy");
            _checkCFB.PosY = 9;
            add(_checkCFB);

            _editCFBNumber      = new CEditField("Number>", "");
            _editCFBNumber.PosY = 10;
            add(_editCFBNumber);

            this.Ok += new VoidDelegate(CRedirectPage_Ok);
        }
Example #4
0
        public CPhonebookEditPage()
            : base((int)EPages.P_PHONEBOOKEDIT, "Editing")
        {
            _fname         = new CEditField("First Name>", "", EEditMode.alphanum_high, true);
            _fname.PosY    = 3;
            _fname.LinkKey = _fname.PosY;
            add(_fname);

            _lname         = new CEditField("Last Name>", "", EEditMode.alphanum_high, false);
            _lname.PosY    = 5;
            _lname.LinkKey = _lname.PosY;
            add(_lname);

            _number         = new CEditField("Number>", "", EEditMode.numeric);
            _number.PosY    = 7;
            _number.LinkKey = _number.PosY;
            add(_number);

            CLink saveLink = new CLink("Save!");

            saveLink.PosY     = 8;
            saveLink.LinkKey  = saveLink.PosY;
            saveLink.Align    = EAlignment.justify_right;
            saveLink.Softkey += new BoolIntDelegate(saveLink_Softkey);
            add(saveLink);

            CLink deleteLink = new CLink("Delete!");

            deleteLink.PosY     = 10;
            deleteLink.Align    = EAlignment.justify_right;
            deleteLink.LinkKey  = deleteLink.PosY;
            deleteLink.Softkey += new BoolIntDelegate(deleteLink_Softkey);
            add(deleteLink);
        }
Example #5
0
        public CPhonebookPage() : base((int)EPages.P_PHONEBOOK, "Phonebook")
        {
            _criteria           = new CEditField(">", "", EEditMode.alphanum_low, true);
            _criteria.PosY      = 1;
            _criteria.Digitkey += new BoolIntDelegate(_criteria_Digitkey);
            add(_criteria);

            _list      = new CSelectList(7);
            _list.PosY = 3;
            add(_list);

            CLink addNewLink = new CLink("Add New", (int)EPages.P_PHONEBOOKEDIT);

            addNewLink.PosY = 9;
            //addNewLink.Align = EAlignment.justify_right;
            add(addNewLink);

            CLink modifyLink = new CLink("Modify");

            modifyLink.PosY     = 10;
            modifyLink.Softkey += new BoolIntDelegate(modifyLink_Softkey);
            modifyLink.Align    = EAlignment.justify_right;
            add(modifyLink);

            CLink messageLink = new CLink("Message");

            messageLink.Align    = EAlignment.justify_right;
            messageLink.PosY     = 8;
            messageLink.Softkey += new BoolIntDelegate(messageLink_Softkey);
            add(messageLink);

            Menu += new VoidDelegate(CPhonebookPage_Menu);
        }
Example #6
0
        public CSIPProxySettings2nd()
            : base((int)EPages.P_SIPPROXYSETTINGS_2nd, "Settings")
        {
            this.forgetPage(true);
            ////////////
            // 2nd page
            _editUserName         = new CEditField("Username>", "", true);
            _editUserName.PosY    = 5;
            _editUserName.LinkKey = _editUserName.PosY;
            this.add(_editUserName);

            _editPassword         = new CEditField("Password>", "");
            _editPassword.PosY    = 7;
            _editPassword.LinkKey = _editPassword.PosY;
            this.add(_editPassword);

            CLink linkNext = new CLink("More...");

            linkNext.PosY     = 10;
            linkNext.Align    = EAlignment.justify_right;
            linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
            add(linkNext);

            this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
        }
Example #7
0
        public CSIPProxySettings()
            : base((int)EPages.P_SIPPROXYSETTINGS, "Settings")
        {
            // create 1st page
            _editDisplayName         = new CEditField("Name>", "", true);
            _editDisplayName.PosY    = 3;
            _editDisplayName.LinkKey = _editDisplayName.PosY;
            this.add(_editDisplayName);

            _editId         = new CEditField("Id>", "");
            _editId.PosY    = 5;
            _editId.LinkKey = _editId.PosY;
            this.add(_editId);

            //_editProxyAddress = new CIpAddressEdit("Proxy>");
            _editProxyAddress         = new CEditField("Proxy>", "");
            _editProxyAddress.PosY    = 7;
            _editProxyAddress.LinkKey = _editProxyAddress.PosY;
            this.add(_editProxyAddress);

            _editProxyPort         = new CEditField("Port>", "", EEditMode.numeric);
            _editProxyPort.PosY    = 9;
            _editProxyPort.LinkKey = _editProxyPort.PosY;
            this.add(_editProxyPort);

            CLink linkNext = new CLink("More...");

            linkNext.PosY     = 10;
            linkNext.Align    = EAlignment.justify_right;
            linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
            add(linkNext);

            this.Ok  += new VoidDelegate(CSIPProxySettings_Ok);
            this.Esc += new VoidDelegate(CSIPProxySettings_Esc);
        }
Example #8
0
        public CDeflectPage()
            : base(ECallPages.P_DEFLECT, "Deflect to...")
        {
            clearHistory(false);

            this.remove(_name);
            this.remove(_digits);

            _editField      = new CEditField(">", "", EEditMode.numeric, true);
            _editField.PosY = 1;
            _editField.Ok  += new VoidDelegate(_editField_Ok);
            this.add(_editField);
        }
Example #9
0
        public CSIPSettings()
            : base((int)EPages.P_SIPSETTINGS, "SIP Settings")
        {
            _list      = new CSelectList(3);
            _list.PosY = 2;
            add(_list);

            _editport         = new CEditField("Local Port>", "", EEditMode.numeric);
            _editport.PosY    = 7;
            _editport.LinkKey = _editport.PosY;
            add(_editport);

            _accountsLink         = new CLink("Accounts", (int)EPages.P_ACCOUNTS);
            _accountsLink.Align   = EAlignment.justify_right;
            _accountsLink.PosY    = 8;
            _accountsLink.LinkKey = _accountsLink.PosY;
            add(_accountsLink);

            // ok handler
            this.Ok += new VoidDelegate(CSIPSettings_Ok);
        }
Example #10
0
        public CPreDialPage()
            : base(ECallPages.P_PREDIALING, "Dialing...")
        {
            clearHistory(false);

            CLink linkHide = new CLink("Hide Number", 0);

            linkHide.PosY = 7;
            this.add(linkHide);

            CLink dialing_phbook = new CLink("Phonebook" /*, P_PBOOK*/);

            dialing_phbook.PosY = 9;
            this.add(dialing_phbook);

            CLink linkCall = new CLink("Calls");

            linkCall.Align    = EAlignment.justify_right;
            linkCall.Softkey += new BoolIntDelegate(callHandler);
            linkCall.PosY     = 8;
            this.add(linkCall);

            CLink linkSave = new CLink("Save");

            linkSave.Align = EAlignment.justify_right;
            linkSave.PosY  = 10;
            this.add(linkSave);

            _editField      = new CEditField(">", "", EEditMode.numeric, true);
            _editField.PosY = 2;
            this.add(_editField);

            // page handlers
            //this->OnOkKeyFPtr = &this->okHandlerFctr;
            //this->OnOffhookKeyFPtr = &this->okHandlerFctr;
            //this->OnSpeakerKeyFPtr = &this->okHandlerFctr;

            this.Ok += new VoidDelegate(okHandler);
            Offhook += new VoidDelegate(CPreDialPage_Offhook);
        }
Example #11
0
        public CDoubleDecorator(CEditField decoratee)
            : base(null)
        {
            // create list that will hold two controls (text and edit)
            CComponentList list = new CComponentList();
            // set list position
            list.PosY = decoratee.PosY;

            // take prompt data from decoratee and put it into text control
            int pos = decoratee.PosY;
            _text = new CText(decoratee.Prompt);
            _text.PosY = pos;

            // put decoratee (edit) under text control and erase prompt
            decoratee.PosY = pos + 1;
            decoratee.Prompt = "";

            // add both controls
            list.add(_text);
            list.add(decoratee);
            // set list as decoratee
            _component = list;
        }
Example #12
0
        public CSIPProxySettings3rd()
            : base((int)EPages.P_SIPPROXYSETTINGS_3rd, "Settings")
        {
            this.forgetPage(true);

            _editDomain         = new CEditField("Domain>", "", true);
            _editDomain.PosY    = 5;
            _editDomain.LinkKey = _editDomain.PosY;
            this.add(_editDomain);

            _editperiod         = new CEditField("Reg. Period>", "", EEditMode.numeric);
            _editperiod.PosY    = 7;
            _editperiod.LinkKey = _editperiod.PosY;
            this.add(_editperiod);

            CLink linkNext = new CLink("More...");

            linkNext.PosY     = 10;
            linkNext.Align    = EAlignment.justify_right;
            linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
            add(linkNext);

            this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
        }
Example #13
0
        public CSIPProxySettings2nd()
            : base((int)EPages.P_SIPPROXYSETTINGS_2nd, "Settings")
        {
            this.forgetPage(true);
              ////////////
              // 2nd page
              _editUserName = new CEditField("Username>", "", true);
              _editUserName.PosY = 5;
              _editUserName.LinkKey = _editUserName.PosY;
              this.add(_editUserName);

              _editPassword = new CEditField("Password>", "");
              _editPassword.PosY = 7;
              _editPassword.LinkKey = _editPassword.PosY;
              this.add(_editPassword);

              CLink linkNext = new CLink("More...");
              linkNext.PosY = 10;
              linkNext.Align = EAlignment.justify_right;
              linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
              add(linkNext);

              this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
        }
Example #14
0
        public CRedirectPage()
            : base((int)EPages.P_REDIRECT, "Redirections")
        {
            _checkCFU = new CCheckBox("Unconditional");
              _checkCFU.PosY = 5;
              add(_checkCFU);

              _editCFUNumber = new CEditField("Number>", "", true);
              _editCFUNumber.PosY = 6;
              add(_editCFUNumber);

              _checkCFNR = new CCheckBox("On No Reply");
              _checkCFNR.PosY = 7;
              add(_checkCFNR);

              _editCFNRNumber = new CEditField("Number>", "");
              _editCFNRNumber.PosY = 8;
              add(_editCFNRNumber);

              _checkCFB = new CCheckBox("On Busy");
              _checkCFB.PosY = 9;
              add(_checkCFB);

              _editCFBNumber = new CEditField("Number>", "");
              _editCFBNumber.PosY = 10;
              add(_editCFBNumber);

              this.Ok += new VoidDelegate(CRedirectPage_Ok);
        }
Example #15
0
        public CSIPProxySettings()
            : base((int)EPages.P_SIPPROXYSETTINGS,"Settings")
        {
            // create 1st page
              _editDisplayName = new CEditField("Name>", "",true);
              _editDisplayName.PosY = 3;
              _editDisplayName.LinkKey = _editDisplayName.PosY;
              this.add(_editDisplayName);

              _editId = new CEditField("Id>", "");
              _editId.PosY = 5;
              _editId.LinkKey = _editId.PosY;
              this.add(_editId);

              //_editProxyAddress = new CIpAddressEdit("Proxy>");
              _editProxyAddress = new CEditField("Proxy>","");
              _editProxyAddress.PosY = 7;
              _editProxyAddress.LinkKey = _editProxyAddress.PosY;
              this.add(_editProxyAddress);

              _editProxyPort = new CEditField("Port>", "", EEditMode.numeric);
              _editProxyPort.PosY = 9;
              _editProxyPort.LinkKey = _editProxyPort.PosY;
              this.add(_editProxyPort);

              CLink linkNext = new CLink("More...");
              linkNext.PosY = 10;
              linkNext.Align = EAlignment.justify_right;
              linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
              add(linkNext);

              this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
              this.Esc += new VoidDelegate(CSIPProxySettings_Esc);
        }
Example #16
0
        public CPhonebookPage()
            : base((int)EPages.P_PHONEBOOK,"Phonebook")
        {
            _criteria = new CEditField(">", "", EEditMode.alphanum_low, true);
              _criteria.PosY = 1;
              _criteria.Digitkey += new BoolIntDelegate(_criteria_Digitkey);
              add(_criteria);

              _list = new CSelectList(7);
              _list.PosY = 3;
              add(_list);

              CLink addNewLink = new CLink("Add New", (int)EPages.P_PHONEBOOKEDIT);
              addNewLink.PosY = 9;
              //addNewLink.Align = EAlignment.justify_right;
              add(addNewLink);

              CLink modifyLink = new CLink("Modify");
              modifyLink.PosY = 10;
              modifyLink.Softkey += new BoolIntDelegate(modifyLink_Softkey);
              modifyLink.Align = EAlignment.justify_right;
              add(modifyLink);

              CLink messageLink = new CLink("Message");
              messageLink.Align = EAlignment.justify_right;
              messageLink.PosY = 8;
              messageLink.Softkey += new BoolIntDelegate(messageLink_Softkey);
              add(messageLink);

              Menu += new VoidDelegate(CPhonebookPage_Menu);
        }
Example #17
0
        public CPhonebookEditPage()
            : base((int)EPages.P_PHONEBOOKEDIT, "Editing")
        {
            _fname = new CEditField("First Name>", "", EEditMode.alphanum_high, true);
              _fname.PosY = 3;
              _fname.LinkKey = _fname.PosY;
              add(_fname);

              _lname = new CEditField("Last Name>", "", EEditMode.alphanum_high, false);
              _lname.PosY = 5;
              _lname.LinkKey = _lname.PosY;
              add(_lname);

              _number = new CEditField("Number>", "", EEditMode.numeric);
              _number.PosY = 7;
              _number.LinkKey = _number.PosY;
              add(_number);

              CLink saveLink = new CLink("Save!");
              saveLink.PosY = 8;
              saveLink.LinkKey = saveLink.PosY;
              saveLink.Align = EAlignment.justify_right;
              saveLink.Softkey += new BoolIntDelegate(saveLink_Softkey);
              add(saveLink);

              CLink deleteLink = new CLink("Delete!");
              deleteLink.PosY = 10;
              deleteLink.Align = EAlignment.justify_right;
              deleteLink.LinkKey = deleteLink.PosY;
              deleteLink.Softkey += new BoolIntDelegate(deleteLink_Softkey);
              add(deleteLink);
        }
Example #18
0
        public CPreDialPage()
            : base(ECallPages.P_PREDIALING, "Dialing...")
        {
            clearHistory(false);

              CLink linkHide = new CLink("Hide Number", 0);
              linkHide.PosY = 7;
              this.add(linkHide);

              CLink dialing_phbook = new CLink("Phonebook"/*, P_PBOOK*/);
              dialing_phbook.PosY = 9;
              this.add(dialing_phbook);

              CLink linkCall = new CLink("Calls");
              linkCall.Align = EAlignment.justify_right;
              linkCall.Softkey += new BoolIntDelegate(callHandler);
              linkCall.PosY = 8;
              this.add(linkCall);

              CLink linkSave = new CLink("Save");
              linkSave.Align = EAlignment.justify_right;
              linkSave.PosY = 10;
              this.add(linkSave);

              _editField = new CEditField(">", "", EEditMode.numeric, true);
              _editField.PosY = 2;
              this.add(_editField);

              // page handlers
              //this->OnOkKeyFPtr = &this->okHandlerFctr;
              //this->OnOffhookKeyFPtr = &this->okHandlerFctr;
              //this->OnSpeakerKeyFPtr = &this->okHandlerFctr;

              this.Ok += new VoidDelegate(okHandler);
              Offhook += new VoidDelegate(CPreDialPage_Offhook);
        }
Example #19
0
        public CDeflectPage()
            : base(ECallPages.P_DEFLECT, "Deflect to...")
        {
            clearHistory(false);

              this.remove(_name);
              this.remove(_digits);

              _editField = new CEditField(">", "", EEditMode.numeric, true);
              _editField.PosY = 1;
              _editField.Ok += new VoidDelegate(_editField_Ok);
              this.add(_editField);
        }
Example #20
0
        public CSIPProxySettings3rd()
            : base((int)EPages.P_SIPPROXYSETTINGS_3rd, "Settings")
        {
            this.forgetPage(true);

              _editDomain = new CEditField("Domain>", "", true);
              _editDomain.PosY = 5;
              _editDomain.LinkKey = _editDomain.PosY;
              this.add(_editDomain);

              _editperiod = new CEditField("Reg. Period>", "", EEditMode.numeric);
              _editperiod.PosY = 7;
              _editperiod.LinkKey = _editperiod.PosY;
              this.add(_editperiod);

              CLink linkNext = new CLink("More...");
              linkNext.PosY = 10;
              linkNext.Align = EAlignment.justify_right;
              linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
              add(linkNext);

              this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
        }
Example #21
0
        public CXferDialingPage()
            : base(ECallPages.P_XFERDIAL, "Transfer...")
        {
            this.clearHistory(false);

              CLink phbookLink = new CLink("Phonebook", (int)EPages.P_PHONEBOOK);
              phbookLink.PosY = 9;
              this.add(phbookLink);

              CLink callRegLink = new CLink("Calls", (int)EPages.P_CALLLOG);
              callRegLink.Align = EAlignment.justify_right;
              callRegLink.PosY = 8;
              this.add(callRegLink);

              _editField = new CEditField(">", "", EEditMode.numeric, true);
              _editField.PosY = 2;
              _editField.Ok += new VoidDelegate(_editField_Ok);
              this.add(_editField);

              // remove unneeded controls
              remove(this._name);
              remove(this._sessions);
        }
Example #22
0
        public CSIPSettings()
            : base((int)EPages.P_SIPSETTINGS, "SIP Settings")
        {
            _list = new CSelectList(3);
              _list.PosY = 2;
              add(_list);

              _editport = new CEditField("Local Port>", "", EEditMode.numeric);
              _editport.PosY = 7;
              _editport.LinkKey = _editport.PosY;
              add(_editport);

              _accountsLink = new CLink("Accounts", (int)EPages.P_ACCOUNTS);
              _accountsLink.Align = EAlignment.justify_right;
              _accountsLink.PosY = 8;
              _accountsLink.LinkKey = _accountsLink.PosY;
              add(_accountsLink);

              // ok handler
              this.Ok += new VoidDelegate(CSIPSettings_Ok);
        }